{
  "v": 1,
  "requestId": "66daa727-91ad-4058-ade2-e489e6c5d8f7",
  "chainId": 8453,
  "window": {
    "toBlock": 51605560,
    "fromBlock": 51603760,
    "toBlockHash": "0x4a3798524d4aedf2a5c919fffa01864ed3d68cd18753f3d3586e86fb20855ae1"
  },
  "answerType": "bytes32[]",
  "answer": [
    "0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078",
    "0xf13203ddbf2c9816a79b656a1a952521702715d92fea465b84ae2ed6e94a7f22",
    "0x636da53e0251b3cb0b4d10dbaff488b294f97bd5212b7e2a7c1bc3fb57fd6e31",
    "0x96d4b53a38337a5733179751781178a2613306063c511b78cd02684739288c0a",
    "0xe070797535b13431808f8fc81fdbe7b41362960ed0b55bc2b6117c49c51b7eb9"
  ],
  "figure": "492277653930",
  "definitions": {
    "denomination": "Raw USDC units for 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913; 10^6 units = 1 USDC. figure is the leading pool volume in raw units.",
    "window": "Both endpoints are inclusive: blocks 51603760 through 51605560. The pinned block range defines the hour; no timestamp-based adjustment.",
    "volume": "For each PoolManager Swap event, decode signed int128 amount0 and amount1 and add the absolute amount on the USDC currency side. Both swap directions count, without netting, price conversion, or adding the other currency.",
    "eligibility": "Pool currencies come from Initialize events emitted by the specified PoolManager from deployment block 25352561 through the closing block. Include all pools with USDC as currency0 or currency1, regardless of fee, hooks, or other currency.",
    "ranking": "Group by bytes32 pool id, sort by summed USDC volume descending, then pool id ascending for ties, and return the first five. Pools with no swaps have zero volume and cannot displace the five positive-volume leaders.",
    "logs": "Count each non-removed canonical event once, deduplicated by block number and log index."
  },
  "recipe": {
    "kind": "v4-volume-rank",
    "poolManager": "0x498581ff718922c3f8e6a244956af099b2652b2b",
    "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
    "initializedSince": 25352561,
    "topN": 5
  },
  "notes": "Computed from public JSON-RPC data using the supplied scan.mjs keccak256 and scanLogs logic, exported in temporary scratch scaffolding. Verified chain 8453 and the pinned closing hash on https://base.rpc.sentio.xyz, https://mainnet.base.org, https://base-public.nodies.app, https://base-mainnet.public.blastapi.io and https://base-rpc.publicnode.com. Scanned Initialize(bytes32,address,address,uint24,int24,address,uint160,int24) on Sentio in inclusive, non-overlapping 10000-block chunks from 25352561 to 51605560, filtering indexed pool id for all 1241 pools that emitted Swap in the pinned window, then selecting pools with USDC as currency0 or currency1. Found 352 initialization events representing 352 USDC pools with swaps in the window. Pools without swaps have zero volume and cannot displace the positive-volume leaders. Scanned Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24) on mainnet.base.org in 600-block chunks over exactly the request window. Joined indexed pool id to Initialize currencies, decoded data word 0 or 1 as signed int128, and summed absolute values. Of 24122 swaps, 10146 matched USDC pools, covering 352 active pools. Ranked raw totals in answer order: 492277653930, 202127395679, 78577471613, 75872341843, 71369918666. USDC decimals() at the closing block returned 6. Earlier unrestricted amount0 scan with the supplied CLI was diagnostic only, not the USDC ranking. Additional historical log endpoint probes that were rejected or unusable: https://base.meowrpc.com, https://gateway.tenderly.co/public/base, https://base.drpc.org, https://base.rpc.blxrbdn.com, https://api.zan.top/base-mainnet, https://public.1rpc.io/base, https://rpc.swiftnodes.io/rpc/base, https://base.api.pocket.network, https://base-mainnet.gateway.tatum.io, https://base.public.blockpi.network/v1/rpc/public, https://api-base-mainnet-archive.n.dwellir.com/2ccf18bf-2916-4198-8856-42172854353c. The declarative recipe reproduces the result without the temporary scaffolding or any indexer."
}
