Z3RO
Docs · Public API

Docs · For builders

Public API

Everything Z3RO shows comes from this API, and anyone can use it. There is no key. Answers are JSON, amounts are plain numbers in ZRO and whole tokens, and times are Unix seconds.

The basics

Base URL

See below

The same host the site uses

Auth

None

Every route is public

Live data

SSE

One stream instead of polling

Base URL
<Z3RO API URL>

The API's address is filled in at launch, once Z3RO is deployed on Zero.

bash
curl "<Z3RO API URL>/api/v1/tokens?sort=volume&limit=2"
Answer, trimmed
{
  "tokens": [
    {
      "address": "0x…",
      "name": "Example",
      "symbol": "EXM",
      "source": "terminal",
      "price": 0.0000075,
      "market_cap": 7500,
      "raised": 2000.0,
      "progress": 0.333,
      "graduated": false,
      "holders": 41,
      "volume_24h": 4960,
      "change_24h": 0.18,
      …
    }
  ]
}

Addresses can be sent in any case and come back lowercased. A route that takes a list of addresses reads at most 200 of them. A missing token answers 404, a malformed address 400.

A token card

Every list of tokens uses the same shape, so a card built for one route works for all of them.

FieldTypeWhat it is
address, name, symbol, uristringThe token. uri is its metadata link, see /meta
sourcestringterminal for Z3RO's own launchpad, external for anything else found on the chain
launchpadstring | nullWhich connected launchpad, for an external token
creator, created_at, blockWho made it and when
pricenumberZRO per whole token, at the last trade
market_capnumberprice × total_supply, in ZRO
raised, progressnumberZRO in the curve, and raised over the target (6,000 ZRO here), from 0 to 1
graduated, has_pool, tradablebooleanMoved to a pool; has a Z3RO pool, which only graduation opens; can be traded from Z3RO
fee_bps, holders_bps, burn_bps, anti_snipeThe token's terms. fee_route is holders when holders_bps is above 0, else creator
holders, volume_24h, trades_24h, change_24hnumberHolders now, and the last 24 hours. change_24h is a fraction: 0.18 is +18%
linksobject | nullwebsite, twitter, telegram, discord

Tokens

GET/api/v1/tokens

?sort=new|volume|progress|mcap|active &stage=curve|graduating|graduated|external &launchpad=<id>|terminal &q= &creator= &addresses=a,b &limit=50 (max 500) &offset=

Lists Z3RO launches. graduating is a curve token that has raised at least a quarter of the target.

GET/api/v1/tokens/:address

One token card, plus change_5m, change_1h, change_6h, buys_24h, sells_24h, buy_volume_24h, sell_volume_24h, and what its fee has paid: creator_earned, holders_earned, burned_zro, burned_tokens and their sum earner_fees.

GET/api/v1/tokens/:address/trades

?limit=50 (max 1000) &trader=<address> | &traders=a,b

Latest trades, newest first. Each has tx_hash, ts, trader, is_buy, zro, amount, price and venue.

GET/api/v1/tokens/:address/candles

?interval=1|5|60|300|900|3600|14400|86400 &before=<unix> &limit=300 (max 4000)

Candles t, o, h, l, c, v, oldest first. interval is in seconds, 60 if not given. Use before to page back through history.

GET/api/v1/tokens/:address/holders

?limit=20

Holders and amounts, biggest first.

GET/api/v1/tokens/:address/viewers

?id=<page id>

How many pages have this token open. A page that sends an id counts for 50 seconds; the site checks in every 20.

One token in depth

GET/api/v1/tokens/:address/holders/labelled

?limit=100 (max 200)

Holders with share, profit and labels: dev, insider, sniper, bundle, whale, top10, fresh, smart, bot, cluster. The glossary says what each means.

GET/api/v1/tokens/:address/traders

?limit=50 (max 200)

Everyone who traded it, with what they put in, took out and still hold.

GET/api/v1/tokens/:address/first-buyers

The first 70 buyers in order, and what each has done since.

GET/api/v1/tokens/:address/clusters

The holders map: wallets, the transfers between them, and linked groups.

GET/api/v1/tokens/:address/risk

Shares held by the dev, the top 10, snipers, bundles and insiders, smart holders, and ath, the highest price.

GET/api/v1/tokens/:address/security

For our tokens: no owner, not mintable, pool liquidity locked for good once graduated (lp_burned). For others: the owner() if any, and whether it is renounced.

GET/api/v1/tokens/:address/dev

The creator: every buy, sale, transfer and burn, what they hold and sold, wallets they sent coins to, how many bought in the launch block, and their other launches.

GET/api/v1/tokens/:address/orderbook

Up to 500 limit orders on it with what was resting at each moment, for the heatmap. Orders waiting on an event have no level and are left out.

Discovery

GET/api/v1/pulse/new | near | migrated

?min_age &max_age (s) &min_mcap &max_mcap &min_volume (ZRO) &min_holders &max_holders &min_progress &max_progress &max_dev &max_top10 &max_snipers &max_bundles &max_insiders (0 to 1) &min_smart &socials=1 &launchpad= &limit=60 (max 150)

Pulse's three columns: new launches, those 40% or more along their curve, and those that reached a pool. Every filter is optional. Each card carries its risk figures.

GET/api/v1/trending

?window=1m|5m|1h|6h|24h &sort=volume|change|trades

Up to 50 tokens moving in the window, with window_volume, window_trades, window_buyers and window_change.

GET/api/v1/radar

?tokens=a,b,c (up to 10)

Wallets early on several of the given tokens. With none given, today's five busiest.

GET/api/v1/search

?q=

Up to 8 tokens by name, ticker or address, and up to 5 wallets by address or its first four characters after 0x.

GET/api/v1/launchpads

Every launchpad Z3RO works with: its own first, then one per file in launchpads/.

GET/api/v1/launchpads/stats

Tokens, graduations and 24 hour volume per launchpad, and contracts minting tokens that nobody has connected yet.

Wallets and orders

GET/api/v1/wallet/:address

Holdings with cost, the latest 50 trades, totals, tokens it launched, up to 100 closed positions, its stats, how many orders it has open, and tokens that pay it holder rewards.

GET/api/v1/wallet/:address/trades

?limit=5000 (max 20000)

Its whole history in a compact form: ts, token, is_buy, zro, amount.

GET/api/v1/wallet/:address/record

?days=7|30

Profit, win rate, holding time, buy sizes and flags such as selling within 10 seconds of buying.

GET/api/v1/wallets

?addresses=a,b

Stats for many wallets in one call.

GET/api/v1/inflow

?wallets=a,b &window=1m|5m|1h|6h|24h

What a list of wallets put into each token over the window.

GET/api/v1/leaderboard

?window=24h|7d (all time if not given) &limit=50

Traders by profit marked to the current price, with volume, trades, tokens and wins.

GET/api/v1/orders

?owner= &token= &open=1|0

Up to 200 orders with kind, limit_price, size_zro, left_zro, filled_share and status: open, partial, filled, cancelled, expired, or unfilled_expired (past its time and still holding funds).

GET/api/v1/orders/:id/fills

Each fill of an order: tx_hash, ts, zro, tokens and the keeper that made it.

GET/api/v1/vault/:address

A follower's copy vault: who they follow and with what rules, their exits, positions, history, and a balance estimate from events. The contract's balanceOf is the real figure.

GET/api/v1/referrals/:address

referrer, referred, active_traders, from_referrals, cashback, earned, claimed and unclaimed.

Market and protocol

GET/api/v1/market/stats

Z3RO token counts, graduations, and 24-hour volume, trades and traders.

GET/api/v1/market/trades

?traders=a,b &limit=30

The latest trades across every token, with each token's name and the trader's holding.

GET/api/v1/protocol/stats

?range=24h|7d|30d|all

Z3RO's own figures: totals, this window against the one before, a series to chart, venues, top tokens and creators, limit orders, and the treasury. Shared for 10 seconds between everyone asking.

GET/api/v1/zro-price

ZRO in US dollars, for display only. From Binance, or CoinGecko if that fails, refreshed every minute. usd is null when neither answered.

GET/health

chainId, the block the indexer has reached against the chain head, and the deployment: every contract address.

Profiles and metadata

GET/api/v1/profiles

?a=addr1,addr2 (up to 100)

Public names and pictures, keyed by address.

POST/api/v1/profile

Sets a wallet's own name and picture. Body: address, name, image (a data URL, or null to remove), time, and signature over the message below. One change every 15 seconds.

POST/api/v1/meta

Saves a token's picture, description and links before launch, and answers with the uri to launch it with. Body: image (PNG, JPEG, WebP or GIF data URL, 2 MB and 4096 by 4096 pixels at most) or imageUrl, description (600 characters at most), website, twitter, telegram, discord.

GET/api/v1/meta/:hash

The saved metadata. It never changes, so it can be cached for good.

GET/api/v1/images/:file

A saved picture, named by the hash of its bytes.

What a wallet signs to set its profile
Z3RO profile
Wallet: <address, lowercase>
Name: <name, or (none)>
Picture: <sha256 of the image bytes, or same, or none>
Time: <unix seconds, within 10 minutes of now>

A name is 2 to 24 letters, digits, spaces, dots, dashes or underscores, and can't look like an address.

The live stream

GET /api/v1/stream is a stream of server-sent events. Open it once and every change arrives as it lands, so there is no need to ask again and again. A comment line keeps it open every 15 seconds.

EventData
tradetx, idx, block, ts, token, trader, isBuy, zro, amount, price, venue
launchaddress, name, symbol, creator, ts. external and launchpad for tokens from elsewhere
graduatedtoken, ts
orderid of an order that was placed, filled, closed or moved
vaultfollower, kind, token, for anything in the copy vault
devtoken, kind, when a creator transfers or burns
profileaddress, name, image, when a profile changes
ts
const es = new EventSource('<Z3RO API URL>/api/v1/stream');
es.addEventListener('trade', (e) => {
  const t = JSON.parse(e.data);
  console.log(t.token, t.isBuy ? 'buy' : 'sell', t.zro);
});

Limits

WhatLimit
Routes under /api/v1/30 requests a second per address, with bursts up to 120
POST /api/v1/meta20 a minute per address, bursts of 6, and 10 MB or 24 new files an hour
The live stream20 open streams per address
Past a limitHTTP 429. Wait and try again
Figures are for reading, not for settling. Profit, prices in dollars and market caps here are worked out from events. Before you trade, quote on chain: the router's quoteBuy and quoteSell are what a trade will really get. See Launch and trade from code.

Building an agent? The MCP server wraps the most useful routes and live quotes as tools.

Where this comes from

indexer/src/api.ts, traderRoutes.ts and profiles.ts. Rate limits are set in front of it, in deploy/server/setup.sh.