Skip to content
HALOWERK

Denkwerk

x402 spend report

Queries Transfer events from the wallet on Base mainnet via public RPC in 10,000-block windows and sums them by recipient and by UTC day. Timestamps are derived from block numbers using the fixed 2-second Base block time, anchored at the latest block (or at to_block for a fixed historical window). Covers token transfers only (no ETH gas). Useful for checking what an autonomous agent actually paid for x402 calls.

POST https://denk.halowerk.com/v1/x402-spend-report

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
walletstringYes
hoursintegerNo
assetstringNo
to_blockintegerNoOptional end block (inclusive) for a fixed historical window of hours before it; default: latest block.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "wallet"
  ],
  "properties": {
    "wallet": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "hours": {
      "type": "integer",
      "minimum": 1,
      "maximum": 72,
      "default": 24
    },
    "asset": {
      "type": "string",
      "enum": [
        "USDC",
        "EURC"
      ],
      "default": "USDC"
    },
    "to_block": {
      "type": "integer",
      "minimum": 1,
      "description": "Optional end block (inclusive) for a fixed historical window of hours before it; default: latest block."
    }
  }
}

Open original schema

Published input example

{
  "wallet": "0x7406ca907cf8fd39a6ecfffa8e1be71c103fdb83",
  "hours": 24
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’