> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ClearAbi

To clear the ABI info of a smart contract.

This method will use `30` [Compute Units](/nodeapi/about/billing).

***

## **Parameters**

* `owner_address` - String - Owner address of the smart contract. If visible=true, use base58check format, otherwise use hex format
* `contract_address` - String - Smart contract address. If visible=true, use base58check format, otherwise use hex format
* `visible` - boolean - Specifies whether the address is in Base58 format (default: false)

## **Returns**

Transaction object - JSON object: Unsigned transaction, please refer to the [Transaction](https://developers.tron.network/docs/tron-protocol-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:

| Field | Type | Description |
| - | - | - |
| owner\_address | string | Account address |
| contract\_address | string | Contract address |

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// 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"
}
```

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  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
  }
  '
  ```
</CodeGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.