Events
Get events by event handle
This API extracts event key from the account resource identified by the event_handle_struct and field_name, then returns events identified by the event key.
get/accounts/{address}/events/{event_handle}/{field_name}
Path parameters
addressstring hex required
Hex encoded 32 byte Aptos account address
event_handlestring required
String representation of a MoveStructTag (on-chain Move struct type). This exists so you can specify MoveStructTags as path / query parameters, e.g. for get_events_by_event_handle.
It is a combination of:
- move_module_address, module_name and struct_name, all joined by ::
- struct generic type parameters joined by ,
Examples:
- 0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>
- 0x1::account::Account
Note:
- Empty chars should be ignored when comparing 2 struct tag ids.
- When used in an URL path, should be encoded by url-encoding (AKA percent-encoding).
See doc for more details.
Example:0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>
field_namestring required
Query parameters
startstring uint64
A string containing a 64-bit unsigned integer.
We represent u64 values as a string to ensure compatability with languages such as JavaScript that do not parse u64s in JSON natively.
Example:32425224034
limitinteger
Response
Example response
[
{
"version": "32425224034",
"sequence_number": "32425224034"
}
]