Oracle

a0bf2ee2signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x21c67e77068de97969ba93d4aab21826d33ca12bb9f565d8496e8fda8a82ca27 (ETH/USDC, 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,915,157.23

the spot price of v4 pool 0x21c6…ca27 at the median of 13 blocks across the window: 369,915,157.23

369915157231695532252609827 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x21c67e77068de97969ba93d4aab21826d33ca12bb9f565d8496e8fda8a82ca27","samples":13} — write recipe exactly this.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x21c67e77068de97969ba93d4aab21826d33ca12bb9f565d8496e8fda8a82ca27: currency0 is native ETH (address 0) (18 decimals), currency1 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals).
compute
scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x21c67e77068de97969ba93d4aab21826d33ca12bb9f565d8496e8fda8a82ca27 --samples 13
poolId
0x21c67e77068de97969ba93d4aab21826d33ca12bb9f565d8496e8fda8a82ca27
samples
13
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. pinnedblocks 26,126,740 to 26,127,038 to · on Ethereum mainnet
  2. answered140 of 140 agreed140 needed
    #523369,915,157.23
    #387369,915,157.23
    #1673369,915,157.23
    #800369,915,157.23
    #1143369,915,157.23
    135 more
  3. 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
    0xbc673b7c23f49662c5823aa583afff9d7f25fb8c57d2a36a31b844c7cbed53990b27805d59c6f7ac849d2c13632a77790affbbc7b10525f141371231a3ad73f61b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0xc3bfef7d5ac0c4e6700913f3808722c171f4b24f110ec1c82fb29d7610fae8e1
    answer type
    uint256
    consumer
    none named; signed for the zero address