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

# wallet/clearabi | TRON

> TRON API method that clears (removes) the ABI (Application Binary Interface) information from a smart contract. TRON via Chainstack.

TRON API method that clears (removes) the ABI (Application Binary Interface) information from a smart contract. This operation removes the contract's ABI data from the blockchain, making the contract functions less discoverable but still executable if the function signatures are known.

## Parameters

* `owner_address` — address of the contract owner who can clear the ABI
* `contract_address` — address of the smart contract to clear ABI for
* `visible` — boolean indicating whether to use visible (Base58) address format instead of hex

## Response

* `visible` — boolean indicating whether addresses are in visible format
* `txID` — unique transaction ID for the ABI clearing transaction
* `raw_data` — raw transaction data containing:
  * `contract` — array with contract ABI clearing details
  * `ref_block_bytes` — reference block bytes for transaction validation
  * `ref_block_hash` — hash of the reference block
  * `expiration` — transaction expiration timestamp
  * `timestamp` — transaction creation timestamp
* `raw_data_hex` — complete transaction data encoded in hexadecimal format

## Use case

The `wallet/clearabi` method is used for:

* Removing contract ABI information for privacy or security reasons.
* Cleaning up contract metadata when ABI information is no longer needed.
* Implementing obfuscation strategies for proprietary smart contracts.
* Managing contract visibility and discoverability in explorers.
* Reducing on-chain storage by removing unnecessary ABI data.
* Preparing contracts for migration or deprecation processes.

<Warning>
  Clearing the ABI makes the contract less user-friendly as tools and interfaces will not be able to automatically understand the contract's functions. However, the contract remains fully functional and can still be called using raw function signatures and data.
</Warning>

## curl example

```shell Shell theme={"system"}
curl --request POST \
  --url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/clearabi' \
  --header 'Content-Type: application/json' \
  --data '{
  "owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
  "contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
  "visible": true
}'
```


## OpenAPI

````yaml openapi/tron_node_api/clearabi.json post /95e61622bf6a8af293978377718e3b77/wallet/clearabi
openapi: 3.0.0
info:
  title: wallet/clearabi TRON API
  version: 1.0.0
  description: Clear contract ABI
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/clearabi:
    post:
      tags:
        - Smart Contracts
      summary: wallet/clearabi
      operationId: clearAbi
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                owner_address:
                  type: string
                  description: Address of the contract owner
                contract_address:
                  type: string
                  description: Address of the smart contract
                visible:
                  type: boolean
                  description: Whether to use visible (Base58) address format
              required:
                - owner_address
                - contract_address
              example:
                owner_address: THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC
                contract_address: TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
                visible: true
      responses:
        '200':
          description: Contract ABI clearing transaction
          content:
            application/json:
              schema:
                type: object
                properties:
                  visible:
                    type: boolean
                    description: Whether addresses are in visible format
                  txID:
                    type: string
                    description: Transaction ID for the ABI clearing
                  raw_data:
                    type: object
                    properties:
                      contract:
                        type: array
                        description: Contract ABI clearing details
                      ref_block_bytes:
                        type: string
                        description: Reference block bytes
                      ref_block_hash:
                        type: string
                        description: Reference block hash
                      expiration:
                        type: number
                        description: Transaction expiration timestamp
                      timestamp:
                        type: number
                        description: Transaction creation timestamp
                  raw_data_hex:
                    type: string
                    description: Raw transaction data in hex format

````