Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xd52eb9285b87e38e3c228b4e339bfe15f24888953966085cd25a2f6403a95326 (XAUt/USDT, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26126441 to 26126739, about 5 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?
Answer
241,258,998.38
the spot price of v4 pool 0xd52e…5326 at the median of 13 blocks across the window: 241,258,998.38
241258998386045 uint256, 6 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0xd52eb9285b87e38e3c228b4e339bfe15f24888953966085cd25a2f6403a95326","samples":13} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0xd52eb9285b87e38e3c228b4e339bfe15f24888953966085cd25a2f6403a95326: currency0 is XAUt 0x68749665ff8d2d112fa859aa293f07a622782f38 (6 decimals), currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xd52eb9285b87e38e3c228b4e339bfe15f24888953966085cd25a2f6403a95326 --samples 13
- poolId
- 0xd52eb9285b87e38e3c228b4e339bfe15f24888953966085cd25a2f6403a95326
- samples
- 13
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,126,441 to 26,126,739 to · on Ethereum mainnet
- answered144 of 144 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
- 0xbc9f8ddf91b4bab13bd00ff4c47e56b8b1fdbf1052a41d75f11d706c011d17c971bdf524ffa69ca27ea275dc7e5f2095d843e9d3e8bb3ed5d961650ac6e468bd1b
- signed panel
- 144 agreed · quorum 140 · 200 seats
- question hash
- 0xb43f234bf22b377fe10b857eb0224ad3053a4d45a7bfcef400a2a7cd9a82a2c5
- answer type
- uint256
- consumer
- none named; signed for the zero address