events by handle - Movement

Returns events from an event handle addressed by the account, the handle's resource struct type, and the field within that struct, paginated.

Endpoint

httpGET /v1/accounts/{address}/events/{event_handle}/{field_name}

Path Parameters

ParameterTypeDescription
addressstringAccount that owns the resource
event_handlestringFully-qualified struct type that holds the event handle
field_namestringField within the struct that is the EventHandle

Query Parameters

ParameterTypeDescription
startstringSequence number to start from
limitstringMax events to return

Example

bashexport MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${MOVEMENT_REST}v1/accounts/0x1/events/0x1::coin::CoinStore%3C0x1::aptos_coin::AptosCoin%3E/deposit_events?limit=2"

Response

json[
    {
        "version": "285000000",
        "guid": {
            "creation_number": "2",
            "account_address": "0x1"
        },
        "sequence_number": "5",
        "type": "0x1::coin::DepositEvent",
        "data": {
            "amount": "1000000000"
        }
    }
]

Response Fields

FieldTypeDescription
typestringEvent type
dataobjectDecoded event payload

Use Cases

  • Token Activity: Read an account's coin deposit/withdraw events
  • dApp Feeds: Stream events from a specific handle

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, block, transaction, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect