build_evm_dust_to_usdt_sweep
Build unsigned non-custodial SAME-CHAIN swap calldata (exact-amount ERC-20 approve + audited KyberSwap/OpenOcean router swap) converting an ERC-20 token into USDT or USDC on the SAME EVM network (base, arbitrum, optimism, polygon, ethereum, bsc, linea, or avalanche). Read-only calldata builder: does not sign or broadcast transactions (unlimited free calls; embeds a 1.00% on-chain integrator fee). Returns JSON with approve_tx, swap_tx, eip5792_calls, estimated_out_usd, and provider. Use this tool when input token and output stablecoin remain on the SAME chain; use build_cross_chain_consolidation when bridging between two DIFFERENT chains.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token_in": "<token_in>",
"amount_in_raw": "<amount_in_raw>",
"sender": "<sender>"
},
"name": "build_evm_dust_to_usdt_sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | Yes | 42-character hexadecimal EVM wallet address (`0x...`) that owns `token_in` and will receive the output USDT/USDC. | |
| network | No | Single EVM chain on which both `token_in` and the output `target_stable` reside. Defaults to `base`. | base |
| token_in | Yes | 42-character hexadecimal ERC-20 contract address (`0x...`) of the token to swap on `network`. | |
| amount_in_raw | Yes | Exact input amount in atomic base units (wei/smallest integer unit as a decimal string, e.g. `1000000000000000000` for 1.0 18-decimal token). | |
| target_stable | No | Destination stablecoin symbol on the same network (`USDT` or `USDC`). Defaults to `USDT`. | USDT |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | ||
| swap_tx | Yes | ||
| provider | Yes | ||
| estimated_out_usd | No |