accounts

List hooks for an account

Changed on

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

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

Request

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/accounts/{idOrAliasOrEvmAddress}/hooks
  • Auth
    none declared

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"
    }
  ]
}

Changes

    • warning

      added the new EVM enum value to the // response property for the response status

    • info

      removed the LAMBDA enum value from the // response property for the response status

    • info

      endpoint added