{
  "v": 1,
  "requestId": "23d1519a-3100-4f30-98d9-2b69c48c4240",
  "chainId": 4663,
  "window": {
    "toBlock": 68438414,
    "fromBlock": 68224368,
    "toBlockHash": "0x3c56fe5f6b6e7aceab23a4000fecdaa90fcee00cadfd803b3861208e03f8add5"
  },
  "answerType": "uint256",
  "answer": "21234245143163331353732550",
  "figure": "21234245143163331353732550",
  "definitions": {
    "volume": "sum of |amount0| over Swap events of pool id 0xc749412e31087a6e6f9210af575bc9100159fbc9f45da3ca8b26b31f3bf5777e emitted by 0x8366a39cc670b4001a1121b8f6a443a643e40951; amount0 is the SCHIFFY side",
    "denomination": "SCHIFFY token 0x42afa2124ca5a2b83898e46b2da9a190995b1e18 base units, with 18 decimals; no scaling or rounding.",
    "window": "Both endpoints are inclusive: blocks 68224368 through 68438414. The pinned block window defines the last 6 hours.",
    "aggregation": "Decode amount0 as signed int128 and sum its absolute value separately for every canonical Swap event matching the emitting PoolManager and indexed pool id. Count each distinct blockNumber/logIndex once; exclude removed logs. Include both swap directions without netting, price conversion, or extra fee adjustment."
  },
  "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": "0xc749412e31087a6e6f9210af575bc9100159fbc9f45da3ca8b26b31f3bf5777e"
    }
  },
  "notes": "Computed from https://rpc.ordofi.network using the supplied scan script: node .imd/reads/skills/oracle-assess/scripts/scan.mjs --rpc https://rpc.ordofi.network --from 68224368 --to 68438414 --pin 0x3c56fe5f6b6e7aceab23a4000fecdaa90fcee00cadfd803b3861208e03f8add5 --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event \"Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)\" --topic1 0xc749412e31087a6e6f9210af575bc9100159fbc9f45da3ca8b26b31f3bf5777e --sum data:0 --signed --abs --chunk 35000. Larger ranges were refused; the script reduced the chunk size to 8750 blocks and completed 25 contiguous batches. Result: 729 distinct logs across 219 blocks, sum 21234245143163331353732550. The first non-indexed ABI word is amount0, sign-extended to 256 bits. The scan confirmed chainId 4663 and the pinned closing hash. Independently confirmed the same chainId and closing hash via eth_chainId and eth_getBlockByNumber on https://rpc-robinhood.blockmachine.io."
}
