Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
value
— contract address to retrieve information forvisible
— boolean indicating whether to use visible (Base58) address format instead of hex
Response
contract_address
— the contract addressbytecode
— contract bytecode in hex formatname
— contract name if availableabi
— Application Binary Interface defining contract functions and eventssource_map
— source code mapping for debugging purposessource_code
— original contract source code if availablecompiler_version
— Solidity compiler version usedconsume_user_resource_percent
— percentage of user resources consumedorigin_address
— address that deployed the contractorigin_energy_limit
— energy limit set by contract creatorcontract_state
— current state of the contractcode_hash
— hash of the contract code
Use case
Thewallet/getcontractinfo
method is used for:
- Retrieving contract ABI for building function calls and parsing events.
- Verifying contract source code and understanding contract functionality.
- Building contract explorers and analysis tools for developers.
- Debugging contract deployments and understanding energy consumption settings.
- Implementing contract interaction interfaces in wallets and dApps.
- Auditing smart contracts and understanding their implementation details.
Body
application/json
Response
200 - application/json
Detailed contract information
The contract address
Contract bytecode in hex format
Contract name if available
Application Binary Interface
Source code mapping for debugging
Original contract source code
Solidity compiler version used
Percentage of user resources consumed
Address that deployed the contract
Energy limit set by contract creator
Current state of the contract
Hash of the contract code