GetContract

Queries a contract's information from the blockchain.

Returns SmartContract object.

Body params:

  • value - Contract address, converted to a hex string.

  • visible - Optional, is address in visible format(base58check) or hex?

Request

curl --request POST \
     --url https://tron.api.watchdata.io/wallet/getcontract \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "value": "41a7837ce56da0cbb28f30bcd5bff01d4fe7e4c6e3",
     "visible": false
}
'

Response

{}

Last updated