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.
https://aptos-mainnet.s.chainbase.online/{api-key}/v1
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
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