Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d (ETH/USDC, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26148432 to 26148730, about 5 hours before 26150225), as currency0 per 1e18 raw currency1 in raw units?
Answer
405,807,660.08
the spot price of v4 pool 0xdce6…f78d at the median of 13 blocks across the window: 405,807,660.08
405807660087347038279209975 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d","samples":13} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d: currency0 is native ETH (address 0) (18 decimals), currency1 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d --samples 13
- poolId
- 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d
- samples
- 13
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- Pinnedblocks 26,148,432 to 26,148,730 to on Ethereum mainnet
- Answered148 of 148 agreed140 needed
Signedby 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
- 0xcbb662c62c8bc267b0319edf26cbcb752d9f92394bdfee01b9d4f644d531200e1357d9c02b7ff133acb46b09bee3bc1b2114c2b58d8247f2a1096ac9ca5752f61c
- signed panel
- 148 agreed · quorum 140 · 200 seats
- question hash
- 0xd3415893cfbcfbdebc3b0e28131f1be0588f80b2bd1e03bf8a02af43ed8bd697
- answer type
- uint256
- consumer
- none named; signed for the zero address