Get account modules
Retrieves all account modules' bytecode for a given account at a specific ledger version.
The Aptos nodes prune account state history, via a configurable time window. If the requested ledger version has been pruned, the server responds with a 410.
Path Parameters:
address string <hex> required
Address of account with or without a 0x
prefix
Query Parameters:
ledger_version string<uint64>
Ledger version to get state of account. If not provided, it will be the latest version
limit integer
Max number of account resources to retrieve. If not provided, defaults to default page size
start string
Cursor specifying where to start for pagination. This cursor cannot be derived manually client-side. Instead, you must call this endpoint once without this query parameter specified, and then use the cursor returned in the X-Aptos-Cursor header in the response.
Response Header:
X-APTOS-BLOCK-HEIGHT integer
Current block height of the chain
X-APTOS-CHAIN-ID integer
Chain ID of the current chain
X-APTOS-EPOCH integer
Current epoch of the chain
X-APTOS-LEDGER-OLDEST-VERSION integer
Oldest non-pruned ledger version of the chain
X-APTOS-LEDGER-TIMESTAMPUSEC integer
Current timestamp of the chain
X-APTOS-LEDGER-VERSION integer
Current ledger version of the chain
X-APTOS-OLDEST-BLOCK-HEIGHT integer
Oldest non-pruned block height of the chain
Response Body:
array of:
bytecode string<hex>
All bytes (Vec) data is represented as hex-encoded string prefixed with 0x
and fulfilled with two hex digits per byte.
abi object
A Move module
address string<hex>
A hex encoded 32 byte Aptos account address.
name string
friends array[string]
Friends of the module
exposed_functions array[object]
Public functions of the module
structs array[object]
Structs of the module
Example:
Last updated