check_trade_allowance
Check ERC-20 allowance for an upcoming CoW swap (cow_swap) or Fusion bridge (fusion_bridge). Call before propose_swap / propose_bridge; if insufficient, use propose_token_approve then confirm.
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": {
"fromWalletId": "<fromWalletId>",
"tokenAddress": "<tokenAddress>",
"requiredAmountSmallest": "<requiredAmountSmallest>",
"flow": "<flow>"
},
"name": "check_trade_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | cow_swap = CoW VaultRelayer; fusion_bridge = 1inch Limit Order | |
| fromWalletId | Yes | Source EVM wallet id | |
| tokenAddress | Yes | Sell token contract (0x…) | |
| requiredAmountSmallest | Yes | Required allowance in token smallest units (e.g. USDC 6 decimals) |