Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xca375e569f6424f058c48f84e62de5d64240e2c6fef7662791d209465ed7e0c4 (ETH/ZC, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 26127712 to 26128010, about 45 minutes before 26128234), as currency0 per 1e18 raw currency1 in raw units?
Answer
0.000011
the spot price of v4 pool 0xca37…e0c4 at the median of 9 blocks across the window: 0.000011
11993325688899 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0xca375e569f6424f058c48f84e62de5d64240e2c6fef7662791d209465ed7e0c4","samples":9} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0xca375e569f6424f058c48f84e62de5d64240e2c6fef7662791d209465ed7e0c4: currency0 is native ETH (address 0) (18 decimals), currency1 is ZC 0x4e67db19044549ff420860834c91b45bad298722 (18 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xca375e569f6424f058c48f84e62de5d64240e2c6fef7662791d209465ed7e0c4 --samples 9
- poolId
- 0xca375e569f6424f058c48f84e62de5d64240e2c6fef7662791d209465ed7e0c4
- samples
- 9
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,127,712 to 26,128,010 to · on Ethereum mainnet
- answered145 of 145 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
- 0x78b226dea9769b0ccee594bc293c7871c315be9446ef4291e22dbe36e32b4aa42b6592830491f0dd8fb00751875f5d2faea26aaa4d966ed6fd1f08225f743ffd1b
- signed panel
- 145 agreed · quorum 140 · 200 seats
- question hash
- 0xf5ab1533f9172ff556fd51207bf427fd8c745b95f890839b026e102389bc4871
- answer type
- uint256
- consumer
- none named; signed for the zero address