
Uniswap · Reads onchain state
Reads the spot price of one token in the other on a Uniswap V2 pair. The pair's reserves are read, oriented to the base and quote tokens, and the router's quote prices one whole base token in the quote token's units. It is the marginal price before fees, not an executable amount. 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 · 8