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 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
Was this page helpful?