events by handle - Movement
Example code for the events by handle JSON-RPC method. Complete guide on how to use events by handle JSON-RPC in GetBlock Web3 documentation.
Returns events from an event handle addressed by the account, the handle's resource struct type, and the field within that struct, paginated.
Endpoint
GET /v1/accounts/{address}/events/{event_handle}/{field_name}Path Parameters
address
string
Account that owns the resource
event_handle
string
Fully-qualified struct type that holds the event handle
field_name
string
Field within the struct that is the EventHandle
Query Parameters
start
string
Sequence number to start from
limit
string
Max events to return
Example
export 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
Response Fields
type
string
Event type
data
object
Decoded event payload
Use Cases
Token Activity: Read an account's coin deposit/withdraw events
dApp Feeds: Stream events from a specific handle
Error Handling
400 / Bad request
Bad request
A path, query, or body parameter was invalid
404 / Not found
Not found
The account, block, transaction, or resource does not exist
403 / RBAC: access denied
Access denied
The GetBlock access token is missing or incorrect
Was this helpful?