curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getcontractinfo \
--header 'Content-Type: application/json' \
--data '{
"value": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",
"visible": true
}'
{
"contract_address": "<string>",
"bytecode": "<string>",
"name": "<string>",
"abi": {},
"source_map": "<string>",
"source_code": "<string>",
"compiler_version": "<string>",
"consume_user_resource_percent": 123,
"origin_address": "<string>",
"origin_energy_limit": 123,
"contract_state": "<string>",
"code_hash": "<string>"
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getcontractinfo \
--header 'Content-Type: application/json' \
--data '{
"value": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",
"visible": true
}'
{
"contract_address": "<string>",
"bytecode": "<string>",
"name": "<string>",
"abi": {},
"source_map": "<string>",
"source_code": "<string>",
"compiler_version": "<string>",
"consume_user_resource_percent": 123,
"origin_address": "<string>",
"origin_energy_limit": 123,
"contract_state": "<string>",
"code_hash": "<string>"
}
value
— contract address to retrieve information forvisible
— boolean indicating whether to use visible (Base58) address format instead of hexcontract_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 codewallet/getcontractinfo
method is used for:
Detailed contract information
The response is of type object
.
Was this page helpful?