Get price

Get price on Uniswap V2

Ethereum
Ethereum
Base
Base

Reads onchain state

Reads the spot price of one token in the other on a Uniswap V2 pair. The pair's reserves price one whole base token through the router's quote. It is the marginal price before fees, not an executable amount. The deepest pair is offered first. Reach for it to compare against an oracle price and detect a stale or manipulated pair, or to set a rough floor before a swap quote refines it.

On other protocols · 12