# Synapse API — X Layer RPC Endpoint

> Synapse API — X Layer RPC Endpoint is a paid API for AI agents from synapse-api-brown.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Provides JSON-RPC access to the X Layer (OKX Layer 2) blockchain network via a pay-per-call HTTP endpoint.

## Facts

- Endpoint: POST https://synapse-api-brown.vercel.app/api/xlayer/rpc?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-api-x-layer-rpc-endpoint-3d104c07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1NEGEKM_j5F6D817xZIMm

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 synapse-api-x-layer-rpc-endpoint-3d104c07 -d '<json body>'
```

Example prompt: Can you query the X Layer blockchain to get the current ETH balance for address 0xABC123... using the eth_getBalance RPC method?

## When to prefer this

Use this endpoint when you need programmatic JSON-RPC access to the X Layer (OKX zkEVM L2) blockchain and want pay-per-call micropayment billing via x402 rather than managing a subscription API key. Ideal for agents that make sporadic blockchain queries without committing to a monthly plan.

## Known failure modes

- Invalid or unsupported RPC method returns JSON-RPC error
- Malformed params array causes parse error response
- Payment not provided results in 402 Payment Required
- Network congestion or node unavailability causes timeout
- Invalid transaction data returns execution revert error
- Rate limiting if payment is not correctly attached per call

## How this service works

High-speed API suite for AI processing, web scraping, and smart data utilities across 57+ blockchain networks. Pay-per-call via x402.

## Output

Returns a standard JSON-RPC response object containing the result field with blockchain data (balance, block info, transaction hash, contract return value, 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/synapse-api-x-layer-rpc-endpoint-3d104c07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from synapse-api-brown.vercel.app](https://www.zero.xyz/host/synapse-api-brown.vercel.app/llms.txt)
