{
  "x402Version": 2,
  "id": 72652,
  "slug": "saylorinnovations-api-dex-quote",
  "resource": "https://saylorinnovations.com/api/dex/quote",
  "description": "Uniswap V3 swap quote for any token pair on Ethereum, Base, Arbitrum, Optimism or Polygon: best fee tier or WETH hop, output amount, price impact and gas.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "chain": {
        "type": "string",
        "description": "Blockchain the data is for"
      },
      "dex": {
        "type": "string"
      },
      "token_in": {
        "type": "object",
        "description": "Token, in inches"
      },
      "token_out": {
        "type": "object",
        "description": "Token out"
      },
      "amount_in": {
        "type": "string",
        "description": "Amount, in inches"
      },
      "best": {
        "type": "object"
      },
      "alternatives": {
        "type": "array"
      },
      "quoted_at_block": {
        "type": [
          "number",
          "null"
        ],
        "description": "Quoted at block"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "chain",
      "dex",
      "token_in",
      "token_out",
      "amount_in",
      "best",
      "alternatives",
      "note",
      "source"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "amount_in": "1000",
            "chain": "ethereum",
            "token_in": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "token_out": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "chain": "ethereum",
            "dex": "Uniswap V3",
            "token_in": {
              "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
              "symbol": "USDC",
              "decimals": 6
            },
            "token_out": {
              "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
              "symbol": "WETH",
              "decimals": 18
            },
            "amount_in": "1000",
            "best": {
              "route": "direct",
              "fee_tiers_bps": [
                1
              ],
              "amount_out": "0.409153435573860033",
              "amount_out_raw": "409153435573860033",
              "gas_estimate": 89964,
              "effective_price": 0.00040915343557386,
              "price_impact_percent": 0.0021
            },
            "alternatives": [
              {
                "route": "direct",
                "fee_tiers_bps": [
                  5
                ],
                "amount_out": "0.409137345277818357",
                "amount_out_raw": "409137345277818357",
                "gas_estimate": 87190
              },
              {
                "route": "direct",
                "fee_tiers_bps": [
                  30
                ],
                "amount_out": "0.408992469063990648",
                "amount_out_raw": "408992469063990648",
                "gas_estimate": 96169
              },
              {
                "route": "direct",
                "fee_tiers_bps": [
                  100
                ],
                "amount_out": "0.403473796331592324",
                "amount_out_raw": "403473796331592324",
                "gas_estimate": 95849
              }
            ],
            "quoted_at_block": 26235030,
            "note": "A simulated Uniswap V3 QuoterV2 call at the latest block: the swap is NOT executed and nothing is signed. Only Uniswap V3 pools are searched (direct pools at every fee tier, plus a hop through the wrapped native token), so another DEX may be better. price_impact_percent compares your size with a 0.1% slice through the same route. Tokens that charge a fee on transfer are not modelled. Quotes move every block: re-quote just before swapping and set a slippage limit.",
            "source": "Uniswap V3 QuoterV2 on ethereum (JSON-RPC eth_call)"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "amount_in": {
                    "type": "string",
                    "description": "amount of token_in as a decimal number (for example 1000 for 1000 USDC)"
                  },
                  "chain": {
                    "type": "string",
                    "description": "ethereum, base, arbitrum, optimism or polygon"
                  },
                  "token_in": {
                    "type": "string",
                    "description": "address of the token you sell"
                  },
                  "token_out": {
                    "type": "string",
                    "description": "address of the token you buy"
                  }
                },
                "required": [
                  "amount_in",
                  "chain",
                  "token_in",
                  "token_out"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "Blockchain the data is for"
                  },
                  "dex": {
                    "type": "string"
                  },
                  "token_in": {
                    "type": "object",
                    "description": "Token, in inches"
                  },
                  "token_out": {
                    "type": "object",
                    "description": "Token out"
                  },
                  "amount_in": {
                    "type": "string",
                    "description": "Amount, in inches"
                  },
                  "best": {
                    "type": "object"
                  },
                  "alternatives": {
                    "type": "array"
                  },
                  "quoted_at_block": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Quoted at block"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "chain",
                  "dex",
                  "token_in",
                  "token_out",
                  "amount_in",
                  "best",
                  "alternatives",
                  "note",
                  "source"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "dex swap quote",
    "uniswap v3 quote",
    "swap price impact",
    "best swap route",
    "token swap output estimate"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.976Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "amount_in": {
          "type": "string",
          "description": "amount of token_in as a decimal number (for example 1000 for 1000 USDC)"
        },
        "chain": {
          "type": "string",
          "description": "ethereum, base, arbitrum, optimism or polygon"
        },
        "token_in": {
          "type": "string",
          "description": "address of the token you sell"
        },
        "token_out": {
          "type": "string",
          "description": "address of the token you buy"
        }
      },
      "required": [
        "amount_in",
        "chain",
        "token_in",
        "token_out"
      ]
    },
    "exampleResponse": {
      "chain": "ethereum",
      "dex": "Uniswap V3",
      "token_in": {
        "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "symbol": "USDC",
        "decimals": 6
      },
      "token_out": {
        "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
        "symbol": "WETH",
        "decimals": 18
      },
      "amount_in": "1000",
      "best": {
        "route": "direct",
        "fee_tiers_bps": [
          1
        ],
        "amount_out": "0.409153435573860033",
        "amount_out_raw": "409153435573860033",
        "gas_estimate": 89964,
        "effective_price": 0.00040915343557386,
        "price_impact_percent": 0.0021
      },
      "alternatives": [
        {
          "route": "direct",
          "fee_tiers_bps": [
            5
          ],
          "amount_out": "0.409137345277818357",
          "amount_out_raw": "409137345277818357",
          "gas_estimate": 87190
        },
        {
          "route": "direct",
          "fee_tiers_bps": [
            30
          ],
          "amount_out": "0.408992469063990648",
          "amount_out_raw": "408992469063990648",
          "gas_estimate": 96169
        },
        {
          "route": "direct",
          "fee_tiers_bps": [
            100
          ],
          "amount_out": "0.403473796331592324",
          "amount_out_raw": "403473796331592324",
          "gas_estimate": 95849
        }
      ],
      "quoted_at_block": 26235030,
      "note": "A simulated Uniswap V3 QuoterV2 call at the latest block: the swap is NOT executed and nothing is signed. Only Uniswap V3 pools are searched (direct pools at every fee tier, plus a hop through the wrapped native token), so another DEX may be better. price_impact_percent compares your size with a 0.1% slice through the same route. Tokens that charge a fee on transfer are not modelled. Quotes move every block: re-quote just before swapping and set a slippage limit.",
      "source": "Uniswap V3 QuoterV2 on ethereum (JSON-RPC eth_call)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "amount_in": "1000",
              "chain": "ethereum",
              "token_in": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
              "token_out": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "chain": "ethereum",
              "dex": "Uniswap V3",
              "token_in": {
                "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                "symbol": "USDC",
                "decimals": 6
              },
              "token_out": {
                "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                "symbol": "WETH",
                "decimals": 18
              },
              "amount_in": "1000",
              "best": {
                "route": "direct",
                "fee_tiers_bps": [
                  1
                ],
                "amount_out": "0.409153435573860033",
                "amount_out_raw": "409153435573860033",
                "gas_estimate": 89964,
                "effective_price": 0.00040915343557386,
                "price_impact_percent": 0.0021
              },
              "alternatives": [
                {
                  "route": "direct",
                  "fee_tiers_bps": [
                    5
                  ],
                  "amount_out": "0.409137345277818357",
                  "amount_out_raw": "409137345277818357",
                  "gas_estimate": 87190
                },
                {
                  "route": "direct",
                  "fee_tiers_bps": [
                    30
                  ],
                  "amount_out": "0.408992469063990648",
                  "amount_out_raw": "408992469063990648",
                  "gas_estimate": 96169
                },
                {
                  "route": "direct",
                  "fee_tiers_bps": [
                    100
                  ],
                  "amount_out": "0.403473796331592324",
                  "amount_out_raw": "403473796331592324",
                  "gas_estimate": 95849
                }
              ],
              "quoted_at_block": 26235030,
              "note": "A simulated Uniswap V3 QuoterV2 call at the latest block: the swap is NOT executed and nothing is signed. Only Uniswap V3 pools are searched (direct pools at every fee tier, plus a hop through the wrapped native token), so another DEX may be better. price_impact_percent compares your size with a 0.1% slice through the same route. Tokens that charge a fee on transfer are not modelled. Quotes move every block: re-quote just before swapping and set a slippage limit.",
              "source": "Uniswap V3 QuoterV2 on ethereum (JSON-RPC eth_call)"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "amount_in": {
                      "type": "string",
                      "description": "amount of token_in as a decimal number (for example 1000 for 1000 USDC)"
                    },
                    "chain": {
                      "type": "string",
                      "description": "ethereum, base, arbitrum, optimism or polygon"
                    },
                    "token_in": {
                      "type": "string",
                      "description": "address of the token you sell"
                    },
                    "token_out": {
                      "type": "string",
                      "description": "address of the token you buy"
                    }
                  },
                  "required": [
                    "amount_in",
                    "chain",
                    "token_in",
                    "token_out"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "chain": {
                      "type": "string",
                      "description": "Blockchain the data is for"
                    },
                    "dex": {
                      "type": "string"
                    },
                    "token_in": {
                      "type": "object",
                      "description": "Token, in inches"
                    },
                    "token_out": {
                      "type": "object",
                      "description": "Token out"
                    },
                    "amount_in": {
                      "type": "string",
                      "description": "Amount, in inches"
                    },
                    "best": {
                      "type": "object"
                    },
                    "alternatives": {
                      "type": "array"
                    },
                    "quoted_at_block": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Quoted at block"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "chain",
                    "dex",
                    "token_in",
                    "token_out",
                    "amount_in",
                    "best",
                    "alternatives",
                    "note",
                    "source"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/dex/quote?chain=ethereum&token_in=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&token_out=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&amount_in=1000",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "chain": "string",
    "dex": "string",
    "token_in": {},
    "token_out": {},
    "amount_in": "string",
    "best": {},
    "alternatives": [
      "value"
    ],
    "quoted_at_block": 0,
    "note": "string",
    "source": "string"
  }
}