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