/v1/accounts/{address}/module/{module_name}

Retrieves an individual module from a given account and at a specific ledger version. If the ledger version is not specified, 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.

⚠ This endpoint is only available with Blast access.

Path parameters

addressstringRequired
Address of account with or without a 0x prefix.
module_namestringRequired
Name of the module to retrieve.

Query parameters

ledger_versionstringOptional
Ledger version to get the state of the account.

Response

A single Move module (bytecode + ABI).

bytecodestring or null

Hex-encoded bytecode of the module.

abiobject or null