Get quote
Get quote

Uniswap · Reads onchain state

Reads the amount a Uniswap V2 pair would pay right now for a swap. The pair's reserves are read, oriented to the input and output tokens, and the router's getAmountOut applies the constant-product formula with the 0.3% fee, returning the output amount. Reach for it to set a swap floor from a live quote with a slippage haircut, to compare venues before routing, or to gate a trade on a minimum rate with a predicate.

On other protocols · 1