# MoneyTools Block-at-Time

> MoneyTools Block-at-Time is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-05).

Returns the last EVM block number at or before a given timestamp on any of 7 supported chains using interpolation search.

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/block-at-time?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-block-at-time-d56a71f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bjDoqUAZBMOKxVbdTXZdg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability moneytools-block-at-time-d56a71f3
```

Example prompt: What was the block number on Ethereum right at or just before 2024-01-01T00:00:00Z? I need it for a historical balance snapshot.

## When to prefer this

Use this endpoint when you need to map a human-readable or unix timestamp to an EVM block number for historical on-chain queries, balance snapshots, or log range boundaries across any of the 7 supported chains (Base, Ethereum, Arbitrum, Optimism, Polygon, BSC, Avalanche). It is preferable to manual binary-search approaches or chain-specific RPC hacks because it uses interpolation search for speed and covers multiple chains in a single unified API. The free tier of 10 calls/day makes it cost-effective for low-volume use; micropayment via x402 or API key credits covers higher-volume needs at $0.001 per call.

## Known failure modes

- Unsupported chain name returns an error — only base, ethereum, arbitrum, optimism, polygon, bsc, and avalanche are valid
- Malformed or unparseable timestamp (neither valid ISO 8601 nor unix seconds) returns a parse error
- Free tier exhausted (10 calls/day) without payment credentials returns HTTP 402 PAYMENT-REQUIRED
- Network or RPC errors for the target chain may cause lookup failures — not charged on failure
- Future timestamps may return the latest known block or an error depending on implementation

## How this service works

Block number at a timestamp: Find the last block at or before a date/time on any of 7 EVM chains (interpolation search). For historical balance queries, snapshots and log ranges. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing the block number corresponding to the requested timestamp on the specified EVM chain, along with payment metadata (whether a charge was made, the network, USD amount, and transaction hash if applicable) and optional plan/partner hints.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "timestamp"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "examples": [
        "base"
       ],
       "description": "chain: base, ethereum, arbitrum, optimism, polygon, bsc, avalanche"
      },
      "timestamp": {
       "type": "string",
       "examples": [
        "2026-11-01T00:00:00Z"
       ],
       "description": "unix seconds or ISO 8601"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-block-at-time-d56a71f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
