Get account modules
Retrieves all account modules’ bytecode for a given account at a specific ledger 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. If the requested ledger version has been pruned, the server responds with a 410.
https://aptos-mainnet.s.chainbase.online/{api-key}/v1
Path Parameters
Address of account with or without a 0x
prefix
Query Parameters
Ledger version to get state of account
If not provided, it will be the latest version
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.
Max number of account modules to retrieve
If not provided, defaults to default page size.
Response
All bytes (Vec<u8>) data is represented as hex-encoded string prefixed with 0x
and fulfilled with
two hex digits per byte.
Unlike the Address
type, HexEncodedBytes will not trim any zeros.
A Move module