# Phantom API — StarkNet RPC

> Phantom API — StarkNet RPC 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).

Provides a pay-per-call JSON-RPC gateway to the StarkNet blockchain network, enabling queries and interactions with StarkNet smart contracts and chain state.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/starknet/rpc?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-starknet-rpc-c8f8b315
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j2WEOjFvw37EFqOo4NAOh

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-starknet-rpc-c8f8b315 -d '<json body>'
```

Example prompt: Can you call the StarkNet RPC method starknet_getBlockWithTxHashes with the block tag 'latest' and return the block data?

## When to prefer this

Choose this endpoint when you need fast, pay-per-call access to StarkNet-specific RPC methods without committing to a subscription. Ideal for agents that need occasional StarkNet data reads, smart contract state inspection, or transaction lookups on the StarkNet Layer 2 network specifically, rather than EVM-compatible chains.

## Known failure modes

- Invalid RPC method name returns method not found error
- Malformed params array returns invalid params error
- Non-existent block or transaction hash returns resource not found
- Payment failure (402) if USDC balance is insufficient
- Network timeout if StarkNet node is slow or congested

## 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

A JSON-RPC response object conforming to the StarkNet RPC specification, containing the result field with requested blockchain data (blocks, transactions, contract storage, account info, etc.) or an error object with code and message if the call fails.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "method": {
   "type": "string"
  },
  "params": {
   "type": "array",
   "items": {}
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-starknet-rpc-c8f8b315/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)
