# Synapse API — XLayer Token Metadata Lookup

> Synapse API — XLayer Token Metadata Lookup 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-11).

Returns token metadata (name, symbol, decimals, etc.) for a given ERC-20 or similar contract address on the XLayer blockchain network.

## Facts

- Endpoint: POST https://synapse-api-brown.vercel.app/api/xlayer/token/metadata?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-api-xlayer-token-metadata-lookup-6c2cad7e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RQrl_ZM3HWLzefiuIpe9Y

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-xlayer-token-metadata-lookup-6c2cad7e -d '<json body>'
```

Example prompt: What token is at XLayer contract address 0x1234abcd...? I need the name, symbol, and decimals.

## When to prefer this

Choose this endpoint when you need on-chain token metadata specifically for the XLayer network. It is ideal for DeFi integrations, portfolio enrichment, or token audits on XLayer where you have a contract address and need the canonical name, symbol, and decimals without building your own blockchain RPC connection.

## Known failure modes

- Invalid or malformed contract address returns an error
- Contract address exists but is not a token contract (e.g. a plain wallet or non-ERC20 contract)
- Contract address is valid on another chain but not deployed on XLayer
- Network or RPC unavailability causes timeout
- Payment failure via x402 protocol blocks the request

## 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 metadata for the specified XLayer contract address, typically including the token name, symbol, number of decimals, and possibly total supply or other on-chain contract properties.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "contractAddress": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synapse-api-xlayer-token-metadata-lookup-6c2cad7e/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)
