Oracle
What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0xa5d2fa75a050327b6a0e3a6020994fea5a9df413e0e031045399411e1616b2e3 (ETH/U, currency0/currency1) in blocks 83589740 through 83607333 inclusive, in raw units of currency0 (ETH, 18 decimals)?
Answer
7.64
amount0 summed over every Swap log of 0x8366…0951 came to 7.64
7645538627294645580 uint256, 18 decimals
- recipe
- {"kind":"log-sum","address":"0x8366a39cc670b4001a1121b8f6a443a643e40951","event":"event Swap(bytes32 indexed id, address indexed sender, int128 amount0, int128 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint24 fee)","sumArg":"amount0","abs":true,"filter":{"id":"0xa5d2fa75a050327b6a0e3a6020994fea5a9df413e0e031045399411e1616b2e3"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xa5d2fa75a050327b6a0e3a6020994fea5a9df413e0e031045399411e1616b2e3: currency0 is native ETH (address 0) (18 decimals), currency1 is U 0xce24439f2d9c6a2289f741120fe202248b666666 (18 decimals).
- compute
- scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xa5d2fa75a050327b6a0e3a6020994fea5a9df413e0e031045399411e1616b2e3 --sum data:0 --signed --abs
- abs
- true
- event
- event Swap(bytes32 indexed id, address indexed sender, int128 amount0, int128 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint24 fee)
- filter
- [object Object]
- sumArg
- amount0
- address
- 0x8366a39cc670b4001a1121b8f6a443a643e40951
Work
- Pinnedblocks 83,589,740 to 83,607,333on Robinhood Chain
- Answered140 of 140 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
- 0xa34e07ebca46b5046de9eb72c1f4df46a53a91e2749e1fc020d7654571fc3cc904a31be07728396574bee98f92fc0b773894ffe4607f6d03c512d9e55d03fdb21c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0xc31fd3b48b882ea6f10763a32365e118ae4e71d03cdb06956ff2b229aa348a9a
- answer type
- uint256
- consumer
- none named; signed for the zero address