Swap route on Base (free)
get_swap_routeFree route data: the best swap route on Base (or Ethereum) for a token you already checked with token_risk — quote, minimum out, approval target and, with taker, the unsigned transaction you sign and send yourself. Technical data and risk-analysis service only: no custody, no order execution, no investment advice. Disclosed: the 0.5 % integrator fee is a technical API provisioning fee for computing the route data, deducted by the aggregator inside the swap and sent to Angel's wallet; buy_amount is already net of it. Run token_risk on buy_token first. After: approve the spender if approval is set, then send the transaction from your own wallet.
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": {
"sell_token": "<sell_token>",
"buy_token": "<buy_token>",
"sell_amount": "<sell_amount>"
},
"name": "get_swap_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ||
| taker | No | your wallet, to get the unsigned transaction | |
| buy_token | Yes | 0x address or USDC, WETH, ETH | |
| sell_token | Yes | 0x address or USDC, WETH, ETH | |
| sell_amount | Yes | integer in the token's smallest unit (1 USDC = 1000000) | |
| slippage_bps | No |