/v1/accounts/{address}/modules

Retrieves all account modules’ bytecode for a given account 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.

Query parameters

ledger_versionstringOptional
Ledger version to get the state of the account.

Response

List of Move modules (bytecode + ABI)

bytecodestring or null

Hex-encoded bytecode of the module.

abiobject or null