Build an unsigned swap transaction for the best route. Builds an unsigned transaction for the selected route. Compare it with a fresh quote, validate every returned transaction field, obtain explicit signing approval, and broadcast it through the selected chain's RPC. The compatibility parameters permit and usePermit2 are ignored. For an ERC-20 source, approve the router in tx.to for at least srcAmount before executing the returned transaction.
Price a swap without building a transaction. Returns expected input, output, and gas without constructing an executable transaction. Quotes are informational and can change with liquidity and chain state.
Price a swap without building a transaction. Returns expected input, output, and gas without constructing an executable transaction. Quotes are informational and can change with liquidity and chain state.
Build an unsigned swap transaction for the best route. Builds an unsigned transaction for the selected route. Compare it with a fresh quote, validate every returned transaction field, obtain explicit signing approval, and broadcast it through the selected chain's RPC. The compatibility parameters permit and usePermit2 are ignored. For an ERC-20 source, approve the router in tx.to for at least srcAmount before executing the returned transaction.
Price a swap without building a transaction. Returns expected input, output, and gas without constructing an executable transaction. Quotes are informational and can change with liquidity and chain state. Supports exact-output amounts and historical state. Historical state is available for approximately 35 days. The first request for a block may take 1-7 seconds; subsequent requests use cached state.