execute_swap
Validates a signed token-swap request after a fresh successful simulation and returns transaction calldata for agent submission without broadcasting it.
Instructions
[Capability: available_with_tier_gate; tier: scout_quote_signature_and_simulation_gated; API: /api/agents/swap; authority: /api/v1/agent/status] Compatibility route: validate a signed token-swap request after a fresh successful simulation and return transaction calldata. FarmDash does not broadcast the returned transaction. Generic execute_approved_intent remains unavailable.
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": {
"fromChainId": "<fromChainId>",
"toChainId": "<toChainId>",
"fromToken": "<fromToken>",
"toToken": "<toToken>",
"fromAmount": "<fromAmount>",
"agentAddress": "<agentAddress>",
"toAddress": "<toAddress>",
"nonce": "<nonce>",
"signature": "<signature>",
"simulationId": "<simulationId>"
},
"name": "execute_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | ||
| toToken | Yes | ERC-20 token contract address deployed on the corresponding chain. Do not pass a wallet/EOA; the token address and chain ID must match. | |
| intentId | No | ||
| protocol | No | ||
| slippage | No | ||
| fromToken | Yes | ERC-20 token contract address deployed on the corresponding chain. Do not pass a wallet/EOA; the token address and chain ID must match. | |
| signature | Yes | ||
| toAddress | Yes | ||
| toChainId | Yes | ||
| fromAmount | Yes | ||
| fromChainId | Yes | ||
| agentAddress | Yes | ||
| simulationId | Yes |