Best Uniswap v3 swap quote across all fee tiers on Ethereum and Base, via direct on-chain QuoterV2 calls
Parameters
token_instringrequired— EIP-55 checksummed address of the token being sold. For native ETH, pass the WETH address (Ethereum: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; Base: 0x4200000000000000000000000000000000000006).
token_outstringrequired— EIP-55 checksummed address of the token being bought.
amount_instringrequired— 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_idintegeroptional— 1 = Ethereum mainnet, 8453 = Base mainnet. Other chains unsupported.