# Phantom API — Pharos Latest Block

> Phantom API — Pharos Latest Block 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 most recent block from the Pharos blockchain network via Phantom API's on-chain data infrastructure

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/pharos/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-pharos-latest-block-9b91b13b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q6CihWGPqr5mr0OZlPQmD

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-pharos-latest-block-9b91b13b -d '<json body>'
```

Example prompt: What's the latest block on the Pharos network right now — give me the block number, hash, and timestamp?

## When to prefer this

Use this endpoint when you need real-time, pay-per-call access to the current chain tip on the Pharos network without running your own node or managing RPC credentials. Prefer it for lightweight polling or one-off queries where a subscription-based node provider is overkill. Especially useful in agent workflows that need on-chain timing signals or confirmation of block advancement.

## Known failure modes

- Network unavailable or Pharos RPC node down — returns 5xx error
- Payment not provided or insufficient USDC via x402 — returns 402 Payment Required
- Malformed request body — returns 400 Bad Request
- Pharos network experiencing outage or reorganization — may return stale or inconsistent data
- Rate limiting if too many concurrent calls — may return 429

## 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 object from the Pharos network, typically including block number, block hash, parent hash, timestamp, gas used, transaction count, and other block header fields standard to EVM-compatible chains.

## 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-pharos-latest-block-9b91b13b/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)
