On-chain Uniswap V3 swap quote for any token pair
On-chain Uniswap V3 swap quote for any token pair - estimated output amount, effective rate and best fee tier, read directly from pools across Base/Ethereum/Arbitrum/Optimism/Polygon - real-time executable pricing agents need before swapping that LLMs cannot compute. swap quote, swap estimate, uniswap quote, token swap rate, dex quote, how much will i get Accepts payment on Base or Solana — either network works.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://api.x402node.dev/defi/swap-quote
| Category | Market data |
|---|---|
| Provider host | api.x402node.dev |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"amount": "string",
"chain": "string",
"from": "string",
"to": "string",
"tokenIn": "string",
"tokenOut": "string"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"amount": {
"description": "Input amount (default 1)",
"type": "string"
},
"chain": {
"description": "base (default), ethereum, arbitrum, optimism, polygon",
"type": "string"
},
"from": {
"description": "Source format (optional)",
"type": "string"
},
"to": {
"description": "Target format (optional)",
"type": "string"
},
"tokenIn": {
"description": "Input token address (required)",
"type": "string"
},
"tokenOut": {
"description": "Output token address (required)",
"type": "string"
}
},
"required": [
"tokenIn",
"tokenOut"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}