# Phantom API – Aptos Latest Block

> Phantom API – Aptos 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-09-14).

Fetches the most recent block data from the Aptos blockchain network via a pay-per-call Web3 infrastructure endpoint.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/aptos/block/latest
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-aptos-latest-block-4ecd6911
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hU4AqD1xjo_2v9KpNVz1H

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-aptos-latest-block-4ecd6911 -d '<json body>'
```

Example prompt: What's the latest block on the Aptos blockchain right now? I need the block number, hash, and timestamp.

## When to prefer this

Use this endpoint when you need real-time Aptos blockchain head data without running your own node. It is well-suited for lightweight agents that need the current block height or hash on demand, particularly in pay-per-call workflows using x402/USDC micropayments rather than subscription-based RPC providers. Prefer this over managed RPC subscriptions for sporadic or low-frequency Aptos block queries.

## Known failure modes

- Network timeout if Aptos RPC nodes are congested
- 402 Payment Required if USDC payment via x402 is not properly attached
- Empty or malformed response if Aptos network is experiencing downtime
- Rate limiting if too many calls are made in rapid succession
- Stale block data if the upstream Aptos node is temporarily behind the chain tip

## 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 most recent block on the Aptos blockchain, including block number (height), block hash, timestamp, and associated transaction metadata. This reflects the current tip of the Aptos chain at query time.

## 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-aptos-latest-block-4ecd6911/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)
