Alchemy Logo

/v1/accounts/{address}/modules

GET
https://aptos-mainnet.g.alchemy.com/v2/docs-demo/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.

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.

Responses

200

List of Move modules (bytecode + ABI)

Was this page helpful?