Build Verified Swap
build_verified_swapBuilds strictly unsigned swap calldata (KyberSwap/CoW Protocol) bounded by MEV-safe slippage and a SHA-256 verification envelope for local firewall validation.
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": {
"chain": "<chain>",
"token_in": "<token_in>",
"token_out": "<token_out>",
"amount_in": "<amount_in>",
"amount_in_usd": "<amount_in_usd>",
"sender_address": "<sender_address>"
},
"name": "build_verified_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Target blockchain network | |
| token_in | Yes | Input token address or mint | |
| amount_in | Yes | Input amount in base units (wei / lamports) | |
| token_out | Yes | Output token address or mint | |
| amount_in_usd | Yes | Approximate input trade value in USD | |
| execution_mode | No | Whether to prioritize on-chain EVM calldata or CoW EIP-712 order intent | auto |
| sender_address | Yes | User wallet address (zero custody) | |
| preferred_venue | No | Preferred execution venue | AUTO |
| max_slippage_bps | No | Slippage tolerance ceiling in bps | |
| recipient_address | No | Recipient address (defaults to sender) |