v1

latestOpenAPI 3.0.3Apache-2.02026-07-1348142206.6 KB
accounts

List hooks for an account

Returns a list of hooks associated with a given account ID, alias, or EVM address.

get/api/v1/accounts/{idOrAliasOrEvmAddress}/hooks

Path parameters

idOrAliasOrEvmAddressstring required

Account alias or account id or evm address

Query parameters

hook.idinteger

The ID of the hook

limitinteger

The maximum number of items to return

order'asc' | 'desc'

The order in which items are listed

Response

OK

Example response

{
  "hooks": [
    {
      "admin_key": {
        "_type": "ProtobufEncoded",
        "key": "15706b229b3ba33d4a5a41ff54ce1cfe0a3d308672a33ff382f81583e02bd743"
      },
      "contract_id": "0.0.2",
      "created_timestamp": "1586567700.453054000",
      "extension_point": "ACCOUNT_ALLOWANCE_HOOK",
      "hook_id": 1,
      "owner_id": "0.0.2",
      "timestamp_range": {
        "from": "1586567700.453054000",
        "to": "1586567700.453054000"
      },
      "type": "EVM"
    }
  ]
}