# Synapse API — X Layer Token Balances

> Synapse API — X Layer Token Balances 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-29).

Fetches ERC-20 token balances for a wallet address on the X Layer blockchain network

## Facts

- Endpoint: POST https://synapse-api-brown.vercel.app/api/xlayer/token/balances?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-api-x-layer-token-balances-6319bbd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3x5cO9X6XF-6QH53JmUDc

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-token-balances-6319bbd5 -d '<json body>'
```

Example prompt: Check the token balances on X Layer for wallet 0xAbC123... — specifically for these contract addresses: 0xToken1... and 0xToken2....

## When to prefer this

Use this endpoint when you need to look up ERC-20 token balances specifically on the X Layer blockchain network. Prefer this over generic blockchain explorers when you need programmatic, pay-per-call access with a simple JSON interface and support for querying multiple token contracts in one call.

## Known failure modes

- Invalid wallet address format returns an error
- Invalid or non-existent contract addresses may return zero balances or an error
- X Layer RPC unavailability may cause timeout or 503
- Missing required owner field returns a validation error
- Payment not processed (x402 failure) returns 402 Payment Required

## 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 token balance data for the specified wallet address across the provided ERC-20 contract addresses on the X Layer network, including token amounts and associated contract metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "owner": {
   "type": "string"
  },
  "contractAddresses": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synapse-api-x-layer-token-balances-6319bbd5/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)
