zerox_quote
Same-chain swap quote via the 0x Swap API (ethereum, base, arbitrum, optimism, polygon, bsc) with the same disclosed 0.1% Quietwork integrator fee PLUS 0x's own ~0.15% platform fee (Standard plan; returned as zeroExFee), so total fees are higher than on KyberSwap.
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>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amount": "<amount>"
},
"name": "zerox_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| amount | Yes | ||
| sender | No | ||
| tokenIn | Yes | ||
| tokenOut | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | Yes | Disclosed Quietwork fee (already reflected in expectedOut) | |
| chain | Yes | ||
| venue | Yes | ||
| gasFee | No | ||
| issues | No | ||
| minOut | No | ||
| chainId | Yes | ||
| tokenIn | Yes | ||
| amountIn | Yes | ||
| tokenOut | Yes | ||
| minOutWei | No | ||
| zeroExFee | Yes | 0x's own platform fee, on top of ours | |
| amountInWei | Yes | ||
| expectedOut | Yes | ||
| expectedOutWei | Yes | ||
| totalNetworkFeeWei | No |