Comfy swap quote
comfy_swap_quoteFetches a read-only exact-input swap quote on 0G mainnet, returning expected and minimum output and readable pool fee rates for previewing a buy or sell before signing.
Instructions
Read-only exact-input CLQuoter eth_call on 0G mainnet. Returns expected and minimum output in human units and raw integers, quote block, and live per-pool fee rates where readable. Unknown impact or fees stay null.
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": {
"token": "<token>",
"side": "<side>",
"amount": "<amount>"
},
"name": "comfy_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| token | Yes | ||
| amount | Yes | Exact decimal human units: native 0G for buys, tokens for sells. No exponents. | |
| slippage_bps | No |