- Connect to DeFi protocols for yield or liquidity management
- Automate stablecoin lending, staking, or treasury operations
- Integrate tokenized real-world assets (RWAs) into your product flows
- Power programmable settlements, payouts, or compliance checks using onchain logic
- Extend your platform with custom tokens, reward systems, or fee rules
Prerequisites
1
API Key
Get your API key from the Blockradar Dashboard. Navigate to Developers to generate one.
2
Wallet Created
You’ll need a
walletId for all smart contract operations.3
Contract ABI
You need the ABI (Application Binary Interface) for the contract function you want to call. This is publicly available for verified contracts on block explorers like Etherscan.
4
Contract Address
The onchain address of the smart contract you want to interact with.
How It Works
In this guide, we’ll walk through a real example: swapping an unsupported token into USDT using Uniswap V2. The same pattern applies to any smart contract interaction. The flow:- Read the token balance from the contract
- Approve Uniswap to spend the token
- Estimate the network fee for the swap
- Execute the swap
- Confirm via webhook
Step 1: Understand the Contract
We’ll use Uniswap V2 Router’sswapExactTokensForTokens method.
Method signature:
Step 2: Read the Token Balance
Before swapping, check how much of the token your wallet holds usingcontracts/read.
Step 3: Approve the Contract to Spend Your Token
Before Uniswap can move your token, you need to grant it permission using the token contract’sapprove function.
Step 4: Estimate the Network Fee
Before executing the swap, estimate the gas cost to ensure your wallet has enough native token to cover it.Step 5: Execute the Swap
Once the approval is confirmed and you’ve reviewed the fee, execute the swap.Webhook Events
Other Endpoints
Security Notes
- All transactions are signed and broadcast through Blockradar’s infrastructure — no need to manage private keys or RPC nodes
- Native AML and compliance checks apply where possible
- Every contract interaction is a real on-chain transaction and requires gas in the native token of the chain

