Back to marketplace

platform/get_dex_quote

DEX Quote

Teardrop DeFi Built-in

Per-call price

$0.005000

0 uses Healthy
Add to org

Description

Best Uniswap v3 swap quote across all fee tiers on Ethereum and Base, via direct on-chain QuoterV2 calls

Parameters

  • token_in string required — EIP-55 checksummed address of the token being sold. For native ETH, pass the WETH address (Ethereum: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; Base: 0x4200000000000000000000000000000000000006).
  • token_out string required — EIP-55 checksummed address of the token being bought.
  • amount_in string required — Input amount in RAW uint256 units (e.g. '1000000' for 1 USDC, '1000000000000000000' for 1 WETH). Must be > 0 and < 2^128. Common token decimals: WETH/ETH/DAI/wstETH/cbETH/weETH 18, WBTC/cbBTC 8, USDC/USDT 6. Do not call read_contract to look up decimals — use these values directly.
  • chain_id integer optional — 1 = Ethereum mainnet, 8453 = Base mainnet. Other chains unsupported.