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:
Smart contract information
The response is of type object
.
Was this page helpful?