curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getcontract \
--header 'Content-Type: application/json' \
--data '
{
"value": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c"
}
'{
"bytecode": "<string>",
"name": "<string>",
"origin_address": "<string>",
"contract_address": "<string>",
"abi": {},
"origin_energy_limit": 123,
"consume_user_resource_percent": 123,
"code_hash": "<string>",
"trx_hash": "<string>"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getcontract \
--header 'Content-Type: application/json' \
--data '
{
"value": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c"
}
'{
"bytecode": "<string>",
"name": "<string>",
"origin_address": "<string>",
"contract_address": "<string>",
"abi": {},
"origin_energy_limit": 123,
"consume_user_resource_percent": 123,
"code_hash": "<string>",
"trx_hash": "<string>"
}value — the smart contract address in hexadecimal formatbytecode — 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 transactionwallet/getcontract method is used for:
Contract address in hex format
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
Was this page helpful?