Node 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.
Path Parameters
addressstring
Address of account with or without a 0x
prefix
Format
hex
module_namestring
Name of module to retrieve e.g. coin
Query Parameters
ledger_version?string
Ledger version to get state of account
If not provided, it will be the latest version
Format
uint64
Response Body
curl -X GET "https://full.mainnet.movementinfra.xyz/v1/accounts/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 /module/string?ledger_version=32425224034"
{
"bytecode": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 ",
"abi": {
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 ",
"name": "string",
"friends": [
"0x1::aptos_coin"
],
"exposed_functions": [
{
"name": "string",
"visibility": "private",
"is_entry": true,
"is_view": true,
"generic_type_params": [
{
"constraints": [
"string"
]
}
],
"params": [
"string"
],
"return": [
"string"
]
}
],
"structs": [
{
"name": "string",
"is_native": true,
"is_event": true,
"abilities": [
"string"
],
"generic_type_params": [
{
"constraints": [
"string"
]
}
],
"fields": [
{
"name": "string",
"type": "string"
}
]
}
]
}
}
{
"message": "string",
"error_code": "account_not_found",
"vm_error_code": 0
}
{
"message": "string",
"error_code": "account_not_found",
"vm_error_code": 0
}
{
"message": "string",
"error_code": "account_not_found",
"vm_error_code": 0
}
{
"message": "string",
"error_code": "account_not_found",
"vm_error_code": 0
}
{
"message": "string",
"error_code": "account_not_found",
"vm_error_code": 0
}
{
"message": "string",
"error_code": "account_not_found",
"vm_error_code": 0
}