Example code for the /v1/accounts/{account_hash}/module/{module_name} JSON-RPC method. Сomplete guide on how to use /v1/accounts/{account_hash}/module/{module_name}json-rpc in GetBlock.io Web3 documen
This endpoint fetches detailed information about a single smart contract (module) deployed under a specific Aptos account. The response contains the module's bytecode and ABI, providing a complete description of its functions, structs, and on-chain logic.
Supported Network
Mainnet
Parameters
Parameter
Data type
Description
Required
In
account_hash
string
Aptos account address.
Yes
Path
module_name
string
The name of the smart contract module.
Yes
Path
ledger_version
string
The ledger version to retrieve the module state. Optional parameter.