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
— the smart contract address in hexadecimal format
Response
bytecode
— compiled contract bytecode in hexadecimal formatname
— human-readable name of the smart contractorigin_address
— address of the account that deployed the contractcontract_address
— the contract’s address in hexadecimal formatabi
— Application Binary Interface defining contract methods and eventsorigin_energy_limit
— maximum energy limit set during contract deploymentconsume_user_resource_percent
— percentage of caller’s resources used for contract execution (0-100)code_hash
— unique hash identifier of the contract’s bytecodetrx_hash
— transaction hash of the original contract deployment transaction
Use case
Thewallet/getcontract
method is used for:
- Retrieving comprehensive information about deployed smart contracts.
- Obtaining contract ABI for building user interfaces and interaction tools.
- Analyzing contract resource configuration and deployment details.
- Verifying contract bytecode and comparing with expected implementations.
- Building block explorers and contract verification tools.
- Understanding contract resource consumption settings for optimization.
Body
application/json
Contract address in hex format
Response
200 - application/json
Smart contract information
Contract bytecode in hex format
Contract name
Address that deployed the contract
Contract address in hex format
Contract ABI (Application Binary Interface)
Original energy limit set for the contract
Percentage of user resources consumed by contract calls
Hash of the contract code
Transaction hash of the contract deployment