Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
owner_address
— address of the contract owner who can clear the ABIcontract_address
— address of the smart contract to clear ABI forvisible
— boolean indicating whether to use visible (Base58) address format instead of hex
Response
visible
— boolean indicating whether addresses are in visible formattxID
— unique transaction ID for the ABI clearing transactionraw_data
— raw transaction data containing:contract
— array with contract ABI clearing detailsref_block_bytes
— reference block bytes for transaction validationref_block_hash
— hash of the reference blockexpiration
— transaction expiration timestamptimestamp
— transaction creation timestamp
raw_data_hex
— complete transaction data encoded in hexadecimal format
Use case
Thewallet/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.
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.
Body
application/json