# AgenticFi Block Height Lookup

> AgenticFi Block Height Lookup is a paid API for AI agents from defi-api.agenticfi.wtf, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns the current block height for a specified blockchain network (e.g. Ethereum, Base, Arbitrum)

## Facts

- Endpoint: GET https://defi-api.agenticfi.wtf/api/chain/block-height/%7Bchain%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenticfi-block-height-lookup-1f259294
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap___lMZiR-j0uCLm29yjY7A

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 agenticfi-block-height-lookup-1f259294
```

Example prompt: What's the current block height on the Base chain right now?

## When to prefer this

Use this endpoint when an AI agent needs to anchor on-chain state, verify timing of transactions, or synchronize workflows to a specific block number on EVM-compatible chains like Ethereum, Base, or Arbitrum. Ideal for DeFi automation that requires knowing the current chain height before executing swaps or reading on-chain data.

## Known failure modes

- Invalid chain name returns 400 or error response
- Unsupported chain identifier results in no data
- Network connectivity issues to on-chain RPC can cause timeouts
- Payment not processed results in 402 response requiring USDC micropayment on Base via x402

## How this service works

Latest block number for a chain

## Output

Returns the current block height (a numeric block index) for the specified blockchain network, indicating how many blocks have been mined since genesis on that chain.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "pathParams": {
   "chain": "base"
  },
  "queryParams": {
   "chain": "base"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "pathParams",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "title": "chain (required)",
       "description": "Required. Chain name (ethereum, base, etc.) Examples: base, ethereum, arbitrum"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "title": "chain (required)",
       "description": "Required. Chain name (ethereum, base, etc.) Examples: base, ethereum, arbitrum"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenticfi-block-height-lookup-1f259294/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-api.agenticfi.wtf](https://www.zero.xyz/host/defi-api.agenticfi.wtf/llms.txt)
