Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x72331fcb696b0151904c03584b66dc8365bc63f8a144d89a773384e3a579ca73 (ETH/USDT, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26126740 to 26127038, about 4 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?
Answer
369,828,066.86
the spot price of v4 pool 0x7233…ca73 at the median of 13 blocks across the window: 369,828,066.86
369828066862567788796583943 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x72331fcb696b0151904c03584b66dc8365bc63f8a144d89a773384e3a579ca73","samples":13} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x72331fcb696b0151904c03584b66dc8365bc63f8a144d89a773384e3a579ca73: currency0 is native ETH (address 0) (18 decimals), currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x72331fcb696b0151904c03584b66dc8365bc63f8a144d89a773384e3a579ca73 --samples 13
- poolId
- 0x72331fcb696b0151904c03584b66dc8365bc63f8a144d89a773384e3a579ca73
- samples
- 13
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,126,740 to 26,127,038 to · on Ethereum mainnet
- answered147 of 147 agreed140 needed
- signed
by the attester 0x5598…2982reproduced firstusable until
Checking the signature in this browser.
- typed data
- the exact bytes a consumer verifies, as JSON
- attester
- 0x5598aa9146215bc13eb26f2c692ad1461fd32982
- signature
- 0x68003cdc87bf034a15a470230bfdcc2be8b2c8e999b02043dbe2475b8b5364e318aaa1503ccdb31d0a0b99e0e38b8ce39e4897eb25a3599788c59b081804c8db1c
- signed panel
- 147 agreed · quorum 140 · 200 seats
- question hash
- 0xbebb50ea498ba945559b17b72673fcf8cd2dcab2e1f33d7f80dcd08e7240f34b
- answer type
- uint256
- consumer
- none named; signed for the zero address