Aptos RPC API
Get account module
Retrieves an individual module from a given account and 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.
GET
Path Parameters
Address of account with or without a 0x
prefix
Name of module to retrieve e.g. coin
Query Parameters
Ledger version to get state of account
If not provided, it will be the latest version
Response
200 - application/json
Move module bytecode along with it's ABI
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