ClearAbi
To clear the ABI info of a smart contract.
This method will use 30
Compute Units.
Parameters
owner_address
- String - Owner address of the smart contract. If visible=true, use base58check format, otherwise use hex formatcontract_address
- String - Smart contract address. If visible=true, use base58check format, otherwise use hex formatvisible
- boolean - Specifies whether the address is in Base58 format (default: false)
Returns
Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is ClearABIContract
, the fields contained in raw_data.contract[0].parameter.value
in the transaction are as follows:
owner_address
string
Account address
contract_address
string
Contract address
// Result
{
"visible": true,
"txID": "b755a9dc80ca2cb5ce2e771fc2bb1ae0de26adb4bda7794ce5171696be9d1b37",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner_address": "TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW",
"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"
},
"type_url": "type.googleapis.com/protocol.ClearABIContract"
},
"type": "ClearABIContract"
}
],
"ref_block_bytes": "5604",
"ref_block_hash": "f27b5deef3d766c3",
"expiration": 1757413314000,
"timestamp": 1757413256638
},
"raw_data_hex": "0a0256042208f27b5deef3d766c340d09bfcef92335a630830125f0a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e436c656172414249436f6e7472616374122e0a1541b3dcf27c251da9363f1a4888257c16676cf54edf12154142a1e39aefa49290f2b3f9ed688d7cecf86cd6e070bedbf8ef9233"
}
curl https://mainnet.tron.validationcloud.io/v1/<YOUR_API_KEY_HERE>/wallet/clearabi \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"owner_address": "TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW",
"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",
"visible": true
}
'
Last updated
Was this helpful?