Oracle

7f562ddesigned

How many Swap events did the Uniswap v4 PoolManager 0x498581ff718922c3f8e6a244956af099b2652b2b on Base emit for pool 0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078 (USDC/cbBTC, currency0/currency1) in blocks 52217276 through 52218175 inclusive?

Answer

0.000042

42 Swap logs of 0x4985…2b2b in the window

42 uint256, 6 decimals

recipe
{"kind":"log-count","address":"0x498581ff718922c3f8e6a244956af099b2652b2b","event":"event Swap(bytes32 indexed id, address indexed sender, int128 amount0, int128 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint24 fee)","filter":{"id":"0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078"}} — write recipe exactly this, event text included.
pool
PoolManager 0x498581ff718922c3f8e6a244956af099b2652b2b; pool 0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078: currency0 is USDC 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 (6 decimals), currency1 is cbBTC 0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf (8 decimals).
compute
scan.mjs --address 0x498581ff718922c3f8e6a244956af099b2652b2b --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078
event
event Swap(bytes32 indexed id, address indexed sender, int128 amount0, int128 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint24 fee)
filter
[object Object]
address
0x498581ff718922c3f8e6a244956af099b2652b2b

Work

  1. pinnedblocks 52,217,276 to 52,218,175on Base
  2. answered141 of 141 agreed140 needed
    #3710.000042
    #7210.000042
    #8740.000042
    #15400.000042
    #3340.000042
    136 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
    0x28c9f43151ebe4bcbd5c8226bbef0b40d9957d2ab556c0d53658fb07cf5c159b538149d5d1b4d057b360ec1e19f3dee867f4d0f2697432ffdc93b9ad7f3bc4531c
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0x5b9b0dab435b19414a92e99da13a7e92510e2e811688d218e472ba847af7f392
    answer type
    uint256
    consumer
    none named; signed for the zero address