Get a swap quote
get_quoteQuote a swap through the OneDex aggregator (XOXNO only if at least 1% better). Returns quotedOut, guaranteed minOut, route, price impact, a full costs breakdown, a one-line costSummary and warnings. Amounts are decimal strings plus raw base units.
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": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | MultiversX network (default mainnet; devnet only if configured) | mainnet |
| tokenIn | Yes | "EGLD", a token identifier like "ONE-f9954f", or a unique ticker like "USDC" | |
| amountIn | Yes | Amount of tokenIn as a decimal string, e.g. "1.5" (not base units) | |
| tokenOut | Yes | "EGLD", a token identifier like "ONE-f9954f", or a unique ticker like "USDC" | |
| slippageBps | No | Slippage in basis points (100 = 1%, default). Above 500 needs confirmHighSlippage: true; above 2000 is refused. | |
| confirmHighImpact | No | Must be true to accept price impact above 10%, or when the aggregator-based and independent (api.multiversx.com) impacts disagree by more than 5 points | |
| confirmHighSlippage | No | Must be true to accept slippage above 5% |