/v1/accounts/{address}/modules
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.
Parameters
address REQUIRED:
(string)
- Address of account with or without a0x
prefixledger_version OPTIONAL:
(string)
- Ledger version to get the state of the account
Returns
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>) REQUIRED
A hex encoded 32 byte Aptos account address.
name (string) REQUIRED
friends array[string] REQUIRED
Friends of the module
exposed_functions array[object] REQUIRED
Public functions of the module
structs array[object] REQUIRED
Structs of the module
Example
Request
Result
Last updated