/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
address
Address of account with or without a 0x prefix.
module_name
Name of the module to retrieve.
Query parameters
ledger_version
Ledger version to get the state of the account.
Response
A single Move module (bytecode + ABI).
bytecode
Hex-encoded bytecode of the module.
abi