{
  "v": 1,
  "requestId": "bd33bcd2-f6a4-4063-936f-0afc94ef9615",
  "chainId": 1,
  "window": {
    "toBlock": 26013508,
    "fromBlock": 26006340,
    "toBlockHash": "0x4d1293931df37c9b4c23805faf2dd913042e45fa98138cc366b9714d7a818616"
  },
  "answerType": "uint256",
  "answer": "13086",
  "figure": "13086",
  "definitions": {
    "count": "the sum of requestCount over every RequestFeesReceived log of that contract in the window, whatever each request's later outcome",
    "event": "event RequestFeesReceived(uint256 requestCount, uint256 amount), emitted once per purchase batch with the number of purchase requests in that batch",
    "units": "a plain integer count",
    "contract": "FWAVRFService, the main pool's randomness service, at 0xcacbd874e24b533935176154e990bf710f56693a on Ethereum mainnet; custom clone pools are out of scope",
    "window": "Both endpoints are inclusive: fromBlock <= log.blockNumber <= toBlock. The pinned blocks govern the computation.",
    "aggregation": "Decode both event fields as non-indexed uint256 values; sum requestCount (the first 32-byte data word), with no outcome filter. Each canonical log is counted once; amount is not summed."
  },
  "recipe": {
    "kind": "log-sum",
    "address": "0xcacbd874e24b533935176154e990bf710f56693a",
    "event": "event RequestFeesReceived(uint256 requestCount, uint256 amount)",
    "sumArg": "requestCount",
    "abs": false
  },
  "notes": "Computed from eth_getLogs at https://ethereum-rpc.publicnode.com over the inclusive pinned range. Confirmed eth_chainId = 0x1 and the closing block hash via eth_getBlockByNumber. Topic0 is keccak256(RequestFeesReceived(uint256,uint256)) = 0x8d2361cf705c0dee28a87fff505b5f9c00326fd66ae051966eb9df86a63360c4. The 4395 matching batch logs contain 13086 requests in total. Repeated the query through https://ethereum.publicnode.com in disjoint ranges 26006340-26009923 and 26009924-26013508; the count and sum agree. Checked data lengths, block bounds, non-removed status and uniqueness by transactionHash/logIndex. Other providers imposed log-query limits; the repeated log computation used the same PublicNode provider. To reproduce, verify chain and pinned closing hash, query the contract and topic over the pinned inclusive blocks (splitting into disjoint ranges if needed), decode the first uint256 data word of every log and sum with integer arithmetic."
}
