x420_chain_dex-quote
Base DEX quote to USDC: How much USDC a given amount of a Base token would swap for on Uniswap v3 right now: QuoterV2 eth_call across the 0.05%, 0.3% and 1% pools (or the one fee tier you name), best tier returned with all tiers shown. Direct pools only. Nothing is traded. Source: Uniswap v3 QuoterV2 on Base. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.005 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: best{fee, amount_out_usdc, price_usdc_per_token}, quotes[] per tier.
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": {
"amount": "<amount>"
},
"name": "x420_chain_dex-quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | single fee tier 100, 500, 3000 or 10000 (default: try 500, 3000, 10000) | |
| token | No | ERC-20 address on Base to sell (default WETH 0x4200000000000000000000000000000000000006) | |
| amount | Yes | amount in token units, e.g. 1.5 |