Build an unsigned swap transaction for the best route. Compare it with a fresh quote, validate every returned transaction field, obtain signing approval, and broadcast it through the chain's RPC. The parameters permit and usePermit2 are ignored. An ERC-20 source must approve the router in tx.to for at least srcAmount first. Supports exact-output amounts, historical state for approximately 35 days, and multiple amounts at once; the first request for a block may take 1-7 seconds.
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. For an ERC-20 source, approve the router in tx.to for at least srcAmount before executing the returned transaction, or pass a permit or usePermit2 instead.
Price a swap without building a transaction. Returns expected input, output, and gas for one amount without constructing an executable transaction. Quotes are informational and can change with liquidity and chain state. Supports exact-output amounts and historical state for approximately 35 days; the first request for a block may take 1-7 seconds. To price several amounts or pairs against one block, use the batch quote operation.
Build an unsigned swap transaction for the best route. Compare it with a fresh quote, validate every returned transaction field, obtain signing approval, and broadcast it through the chain's RPC. The parameters permit and usePermit2 are ignored. An ERC-20 source must approve the router in tx.to for at least srcAmount first. Supports exact-output amounts, historical state for approximately 35 days, and multiple amounts at once; the first request for a block may take 1-7 seconds.
Price several amounts or pairs at one block. Prices several quotes, each a pair with one or more amounts, against one chain state and reports its block. Prefer it to sequential quote calls when prices must be comparable, such as both sides of a book. Charged once per request. Supports exact-output amounts per quote and historical state for approximately 35 days; the first request for a block may take 1-7 seconds.