Get specific account resource
This endpoint returns the resource of a specific type residing at a given account at a specified ledger version (AKA transaction version). If the ledger version is not specified in the request, the latest ledger version is used.
The Aptos nodes prune account state history, via a configurable time window (link). If the requested data has been pruned, the server responds with a 404.
Path parameters
Hex encoded 32 byte Aptos account address
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.
Query parameters
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.
Response
Example response
{
"data": {
"authentication_key": "0x0000000000000000000000000000000000000000000000000000000000000001",
"coin_register_events": {
"counter": "0",
"guid": {
"id": {
"addr": "0x1",
"creation_num": "0"
}
}
},
"self_address": "0x1",
"sequence_number": "0"
}
}