DEX Swap Quote
Use when an agent needs a swap quote and price impact before trading. Input: chain (base, ethereum, arbitrum), from, to (ticker like USDC, ETH or 0x address), amounts (1-5 sizes in from-token units). Output: JSON per size best venue (Uniswap v3 fee tier, Uniswap v2, Aerodrome), amount out, effective price, price impact %, all venue quotes, spot price. Quote only: no calldata, nothing executed. Example: ?from=USDC&to=ETH&amounts=1000,100000
Offering
- Provider
- 1gateway.dev
- Method
- GET
- Offering type
- Api Endpoint
- Transport type
- http
- Category
- Other
- Delivery
- Not provided
- Pricing model
- Not provided
- x402 version
- 2
Endpoint context
- URL
https://1gateway.dev/v1/onchain/swap/quote- MIME type
- application/json
- First seen
- 2026-11-13T17:15:39.091Z
- Last seen
- Tags
- swap quote, price impact, slippage, DEX, uniswap
Payment pricing
x402 payment terms are the authoritative price for calling this endpoint.
- Payment option 1
- 0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact - Payment option 2
- 0.002 USDC
Atomic price: 2000 · Network: eip155:143 · Asset: USDC · Scheme: exact - Payment option 3
- 0.002 USDC
Atomic price: 2000 · Network: eip155:137 · Asset: USDC · Scheme: exact - Payment option 4
- 0.002 USDC
Atomic price: 2000 · Network: eip155:42161 · Asset: USDC · Scheme: exact - Payment option 5
- 0.002 USDC
Atomic price: 2000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
},
{
"scheme": "exact",
"network": "eip155:143",
"asset": "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
"amount": "2000",
"payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
},
{
"scheme": "exact",
"network": "eip155:137",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "2000",
"payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
},
{
"scheme": "exact",
"network": "eip155:42161",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "2000",
"payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "2000",
"payTo": "AwV6UZobYPyTdsuNa2NknZZrnmmUoH5ckEv3wNgL26WT"
}
]Observed health
- Status
- Healthy
- Latest latency
- 64 ms
- Average latency
- 138 ms
- HTTP status
- 402
- Last checked
- Reachability
- 100% over 6 checks
Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.
Input schema
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"type": "string",
"enum": [
"GET"
]
},
"queryParams": {
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "Token sold: ticker (USDC, USDT, ETH/WETH, BTC/cbBTC/WBTC, wstETH, DAI, AERO, ARB… per chain) or 0x …",
"pattern": "^(0x[0-9a-fA-F]{40}|[A-Za-z]{2,8})$",
"maxLength": 42
},
"to": {
"type": "string",
"description": "Token bought (same format)",
"pattern": "^(0x[0-9a-fA-F]{40}|[A-Za-z]{2,8})$",
"maxLength": 42
},
"amounts": {
"type": "string",
"description": "1-5 trade sizes in units of the from token, comma-separated (alias amount)",
"pattern": "^\\d{1,15}(\\.\\d{1,18})?(,\\d{1,15}(\\.\\d{1,18})?){0,4}$",
"maxLength": 120
},
"chain": {
"type": "string",
"description": "Chain (default base)",
"enum": [
"base",
"ethereum",
"arbitrum"
]
}
},
"required": [
"from",
"to",
"amounts"
],
"additionalProperties": false
}
},
"required": [
"type",
"method"
],
"additionalProperties": false
}Output schema
{
"properties": {
"example": {
"additionalProperties": true,
"properties": {
"asOf": {
"type": "string"
},
"cache": {
"type": "string"
},
"chain": {
"type": "string"
},
"from": {
"additionalProperties": true,
"properties": {
"decimals": {
"type": "integer"
},
"symbol": {
"type": "string"
},
"token": {
"type": "string"
}
},
"type": "object"
},
"method": {
"type": "string"
},
"notes": {
"items": {
"type": "string"
},
"type": "array"
},
"quotes": {
"items": {
"additionalProperties": true,
"properties": {
"amountIn": {
"type": "integer"
},
"best": {
"additionalProperties": true,
"type": "object"
},
"venues": {
"type": "array"
}
},
"type": "object"
},
"type": "array"
},
"spotPrice": {
"type": "number"
},
"spotPriceUnit": {
"type": "string"
},
"to": {
"additionalProperties": true,
"properties": {
"decimals": {
"type": "integer"
},
"symbol": {
"type": "string"
},
"token": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"chain",
"from",
"to",
"spotPrice",
"spotPriceUnit",
"quotes",
"asOf",
"cache",
"method",
"notes"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}