Oracle
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 26149329 to 26149627, about 2 hours before 26150225), as currency0 per 1e18 raw currency1 in raw units?
Answer
410,033,161.13
the spot price of v4 pool 0x21c6…ca27 at the median of 13 blocks across the window: 410,033,161.13
410033161132061889848391577 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
- Pinnedblocks 26,149,329 to 26,149,627 to on Ethereum mainnet
- Answered141 of 141 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
- 0x9f26c40a1a5a3644057a8b55423e286d96da7ad4050dd1caeb05154dcb99498c09168b1a6640564afbe14c13234156074037c5fd9bc896ae1bd568b5e6ddbc481c
- signed panel
- 141 agreed · quorum 140 · 200 seats
- question hash
- 0x79418535485dc148e18fa03c13b3b19331fca6f8b3aff6965bbcff99b62bce17
- answer type
- uint256
- consumer
- none named; signed for the zero address