# Phantom API — Latest Block Lookup

> Phantom API — Latest Block Lookup is a paid API for AI agents from phantom-api-omega.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Fetches the latest block data from a specified blockchain network via Phantom's multi-chain Web3 infrastructure

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/adi/block/latest?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-latest-block-lookup-951cbf1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RbVsTFXnJfFQCUC8ERdJJ

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 phantom-api-latest-block-lookup-951cbf1e -d '<json body>'
```

Example prompt: What's the latest block on the Ethereum mainnet right now — give me the block number, hash, and timestamp using Phantom API's fast on-chain data service.

## When to prefer this

Choose this endpoint when you need real-time latest block data across any of 57+ supported blockchain networks via a pay-per-call model with no subscription required. Ideal for agents needing lightweight, on-demand blockchain head queries without maintaining their own node infrastructure. Prefer over self-hosted RPC calls when simplicity and multi-chain coverage matter more than zero per-call cost.

## Known failure modes

- Unsupported or unrecognized network identifier returns an error or empty response
- Payment failure (x402 protocol) results in 402 response and no data
- Network congestion or node unavailability causes timeout or partial response
- Malformed request body returns 400 validation error
- Rate limiting may apply if call volume is exceeded without sufficient payment

## How this service works

Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.

## Output

Returns the latest block's metadata from the target blockchain network, typically including block number (height), block hash, parent hash, timestamp, miner/validator address, transaction count, gas used, and other block header fields standard to that chain.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {},
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-latest-block-lookup-951cbf1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phantom-api-omega.vercel.app](https://www.zero.xyz/host/phantom-api-omega.vercel.app/llms.txt)
