Create a crypto swap (Relay)
create_swapUse this to swap any token on any chain into USDC on Base via Relay. Returns a headless deposit address (no signing) or an on-chain intent. App fees accrue on swaps.
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": {
"fromToken": "<fromToken>",
"fromChain": "<fromChain>",
"amount": "<amount>",
"recipient": "<recipient>"
},
"name": "create_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| toChain | No | ||
| fromChain | Yes | ||
| fromToken | Yes | ||
| recipient | Yes | ||
| humanPresent | No |