Airdrop

Developers

Copy as text for an AI

HTTP API

The same HTTP API the Kairo site reads from: JSON, read-only, no key, any origin. Kairo's indexer builds it from on-chain events, so anything here can also be checked against the chain.

Quick start#

  • Base path: /api/v1 on this site's own domain.
  • No authentication. Reads are plain GETs with CORS open to every origin. The only POSTs are the two /metadata uploads.
  • Live data comes as server-sent events (SSE); each client can hold 12 streams open.
  • Paging: token lists use page numbers; trades and event logs use a before cursor.
First requests
# five trending tokens, trimmed to three fields
curl -s "$ORIGIN/api/v1/tokens?sort=trending&limit=5" | jq '.tokens[] | {symbol, price, marketCapUsd}'

# a token's last 50 trades; feed .next back in as ?before= for older ones
curl -s "$ORIGIN/api/v1/tokens/0x…/trades?limit=50" | jq '.next'

# every new trade, as it happens (server-sent events)
curl -N "$ORIGIN/api/v1/stream"

Conventions#

Number, time and address formats

Value formats
KindFormat
AmountsBase-unit integers, sent as strings. Tokens use 18 decimals; a quote asset states its own decimals.
PricesDecimal strings, quote per 1 whole token, 36 decimal places, no exponent notation. Exception: the buyback's spotPrice and twapPrice trim trailing zeros.
Market capsDecimal strings in whole quote units.
Dollar valuesAny field whose name ends in Usd is a JSON number, or null if the quote asset has no dollar price. Totals in /stats and /fees use 0 instead of null.
TimesBlock time in Unix milliseconds. The one exception is day in /stats/daily: a UTC date, YYYY-MM-DD.
AddressesLowercase in every response; null when unset. Requests must use lowercase too: a checksummed address gets a 400, as does any query parameter the route doesn't recognise.

Paging

/tokens and /builders/{code}/launches accept page and limit, and return total, page and pages. Trade and event lists run newest to oldest: send the last id you received as before to get the next batch, and stop when next comes back null. A wallet's token lists are not paged.

Freshness and caching

Each successful JSON response includes an X-Kairo-Indexed-Block header: the block the data reflects. /health tells you how many blocks that trails the chain head. Cache lifetimes:

Cache lifetimes
RouteCached for
Lists and token pages (including their live chain read)2 s
Candles5 s
/prices15 s
Config60 s
/tokens/{token}/rewards/{wallet} and streamsNot cached
/healthNo HTTP caching; recomputed at most once every 5 s

Rate limits

A token bucket per client IP: 120 requests of burst, refilling at 10 per second. RateLimit-Limit and RateLimit-Remaining come back on every response. An empty bucket returns 429, with Retry-After giving the wait in seconds.

Errors

Every /api/v1 error has this body:

Error body
{ "error": { "code": "bad_param", "message": "creator must be a lowercase address", "field": "creator" } }
Error codes
StatuscodeMeaning
400bad_paramBad or out-of-range parameter; field tells you which one.
404not_foundUnknown token, launch transaction or route.
429rate_limitedBucket empty; wait Retry-After seconds.
500internalOur bug.
503unavailableDatabase unreachable, or a live chain read failed and there was no fallback. When down, /health still returns its usual body, with status 503.

Endpoints: tokens and trades#

GET/api/v1/tokens?sort&stage&quote&search&creator&route&page&limit

Token cards, 24 per page by default (max 100). sort: trending, new, old, mcap, volume, holders, progress, graduated. stage: new, graduating, graduated. route: holders, creator, splitter, wallet. search looks at name, symbol, or an exact address.

GET/api/v1/tokens/{token}

One card, extended with metadata and links, the pool's full fee terms and recipients, lifetime stats, holder-reward totals, creator fees (earned, claimed, claimable), liquidity (seed plus outside positions), and a fresh lens read of the pool (null if that read fails).

GET/api/v1/tokens/{token}/trades?before&limit

The token's trades, newest first; 50 per page, up to 200.

GET/api/v1/tokens/{token}/candles?interval&from&to&limit

OHLC candles with volume and trade count. interval: 1m, 5m (default), 15m, 1h, 4h, 1d. Returns the latest 500, or up to 2,000 with limit.

GET/api/v1/tokens/{token}/holders?limit

Circulating supply, holder count, the shares held by the top 10, the pool, the creator and the burn addresses, and a list of the biggest holders (20 by default, up to 200).

GET/api/v1/tokens/{token}/fees?before&limit

Fee history, newest first: the split of every trade, creator-side claims, protocol sweeps, and deposits into the holders' stream.

GET/api/v1/tokens/{token}/events?before&limit

All other pool events: claims, hand-ons, claim operators, fee cuts and locks, protocol-fee cuts, route conversions, stage changes, LP line crossings, graduation, LP fee activation, sweeps, outside liquidity in and out, donations, and seed-fee harvests.

GET/api/v1/tokens/{token}/rewards?before&limit

Holder-reward events: enabled, deposited, claimed (a push when tip > 0), and push skipped.

GET/api/v1/tokens/{token}/rewards/{wallet}

Read live from the chain: what the wallet can withdraw now, its lifetime earnings, the stream's state, and whether the wallet is excluded.

GET/api/v1/tokens/{token}/earned/{wallet}

Rewards already paid to the wallet: claimed, pushed and tips. Add the live withdrawable amount to get the full total.

GET/api/v1/tokens/{token}/position/{wallet}

The wallet's balance, amounts bought and sold, quote spent and received, number of trades, and its first and last trade.

GET/api/v1/tokens/{token}/liquidity?from&to

Hour-by-hour volume, trades and pool liquidity (the last 7 days unless you pass a range); the locked seed's liquidity; every outside position (owner, tick range, liquidity, price at each bound, time added); and the outside share of active liquidity.

GET/api/v1/trades?before&limit&quote

Recent trades across all tokens, newest first, 50 per page (up to 200); each includes the token, symbol, image, quote and dollar value.

POST/api/v1/metadata · /api/v1/metadata/image

The launch form calls these to store the token's metadata JSON and image before it sends the launch.

Endpoints: wallets#

GET/api/v1/wallets/{wallet}/holdings

Every Kairo token the wallet holds, as cards with balance and value, biggest position first.

GET/api/v1/wallets/{wallet}/earned

Holder rewards by token: claimed, pushed, total, and whether the wallet still holds the token.

GET/api/v1/wallets/{wallet}/launches

Tokens this wallet launched, newest first.

GET/api/v1/wallets/{wallet}/lanes

Pools whose creator side pays this wallet, directly or through a split slot, with its share and the amount claimed.

GET/api/v1/wallets/{wallet}/trades

The wallet's 100 most recent trades, with token and symbol.

GET/api/v1/wallets/{wallet}/airdrop

Airdrop claims made by the wallet (KairoAirdrop Claimed events).

Endpoints: live streams#

GET/api/v1/stream

Trades on all tokens, pushed as server-sent events.

GET/api/v1/tokens/{token}/stream

Trades on a single token. Limit: 12 open streams per client IP; opening a 13th returns 429.

Each new trade arrives as event: trade, tagged with its id, carrying the trade object plus token and pool. A stream starts with retry: 3000 and sends a ping every 15 s. If you drop, reconnect with Last-Event-ID and the trades you missed are replayed in batches of 200.

Endpoints: platform, fees and buyback#

GET/api/v1/config

Chain id; contract addresses (v4 factory, hook, router, lens and implementations; vault, airdrop and quote registry; Uniswap's contracts; the owner wallet; and the old v1 factory and router, flagged retired); each quote asset seen, with enabled and kind; the launch fee; the fee rows; and both lines as multiples and as ticks.

GET/api/v1/stats

Platform-wide totals: launches, holders, swaps, volume, fees and their split, broken down by quote asset.

GET/api/v1/stats/daily

A 90-day history with one row per UTC day for each quote asset (launch, swap, volume, fee and protocol-fee figures), oldest first.

GET/api/v1/prices

Dollar price for each quote asset, with source and timestamp. Cached for 15 s.

GET/api/v1/fees

The numbers behind the Fees page: paid to creators and holders, to the protocol and to LPs, plus volume and launch count.

GET/api/v1/protocol/fees

Kairo's share of fees: accrued, swept, still sitting in each pool, and the vault's lanes.

GET/api/v1/buyback

State of the KAIRO buyback: waiting or live, the on/off switch (enabled), where bought KAIRO ends up, the share, totals spent, burned and sent to buyback wallets, the latest buyback, and a daily series. Counts every fee vault, including replaced ones.

Wallet fields: recipients lists Kairo's buyback wallets in the order they fill (an empty list means KAIRO is burned, and recipientIsBurn is then true). recipientCapBps is the most a wallet may hold, in bps of supply (200 = 2%). nextRecipient is the wallet the next buy goes to: 0x…dead when burning, the zero address once all wallets are full, null if the chain read failed. recipientRoom is how much KAIRO the wallets can still absorb (null when burning or unknown). wallets gives each wallet's address, label, live balance, share of supply and full flag (null if not read).

GET/api/v1/buyback/series?range=6h|24h|7d|30d|all

Spent, bought, burned, sent, allocated and protocol fees in buckets: hourly for 6h and 24h, daily for longer ranges.

GET/api/v1/buyback/history?before&limit&kind

Buybacks and KAIRO fee releases, newest first, 50 per page (max 200). Filter with kind: automatic, fees or treasury. Each entry has an outcome (burned or sent), the wallets it filled in order, and deliveries as one { to, amount } per wallet, since one buy may spill across several wallets.

GET/api/v1/buyback/swaps?from&to&cursor&limit

All trades in KAIRO's pool, oldest first, each labelled buyback or own. 200 per page by default, max 1,000; cursor is the last id you got; from/to are Unix seconds. Returns nothing until KAIRO has a pool.

Endpoints: builders#

Routes for the Builder rewards programme live under /api/builders; the indexer adds what it reads from launch transactions.

GET/api/v1/builders/launch-check/{tx}

Which builder code a launch transaction carried, where in the transaction it was found, and whether it earned credit.

GET/api/v1/builders/{code}/launches?page&limit

Tokens launched under a code, with trades, volume and protocol fee within the 90-day window. 25 per page by default, up to 100.

GET/api/builders?available={code}

Directory of approved and pending builders with launches and HYPE earned and paid. Pass available to check if a code is still free.

GET/api/builders/{code}

A builder's public profile: product, kind, launches, volume, payouts.

GET/api/builders/statements?week&inputs

A published weekly statement, line by line. With inputs=1 it also returns the raw figures so you can recompute it from the chain.

POST/api/builders/register

Claims a code, signed by the payout wallet. The signature is free: no gas, no transaction.

Endpoints: points and airdrop#

Data for the airdrop page. Anyone can read; changes require a message signed by the wallet being changed.

GET/api/airdrop/overview

Airdrop summary: its parts, the current season, any indicative value, and what comes next. Size and structure are still to be announced.

GET/api/airdrop/lookup/{address}

Where an address stands: points, rank, retroactive list, weekly Top 10 finishes, contributions, and an estimate per part.

GET/api/airdrop/{address}

The address's season estimate plus any Merkle claims ready for it, proofs included.

GET/api/points/leaderboard?board&season&limit&offset&address

Leaderboard for board = all, traders or creators. Add address to get that wallet's row as well.

GET/api/points/{address}?season

Points, tier, rank, per-source breakdown, streak, quests and referral code.

GET/api/points/feed?limit

Latest point awards, with totals for the past hour and day.

GET/api/points/big-earners?limit

Individual awards of 5,000 points or more.

GET/api/points/levels?limit

Market-cap levels with their payouts, and tokens that hit one recently.

GET/api/points/log?filter&address&before&limit

Award log, newest first; filter to one address if you like.

GET/api/airdrop/retro?address&source&page · /api/airdrop/top10?week&address · /api/airdrop/lps?address · /api/airdrop/contributors?address&limit&offset

The lists that make up the airdrop page: retroactive, weekly Top 10, liquidity providers, contributors.

GET/api/airdrop/contributions?address&status&limit

Submitted contributions and their review status. A signed POST to the same path submits a new one.

The /api/builders, /api/airdrop and /api/points routes are built for this site rather than for integrators: no CORS header, addresses accepted in any case, no rate limit, no indexed-block header, and errors shaped { error, code }.

Endpoints: health#

GET/api/v1/health

ok, chain id, indexed block and its time, chain head, lag in blocks, last error, and token and trade counts. ok turns false if the head can't be read or the indexer is over 50 blocks behind. Never cached.

Objects#

Token card

/tokens, the wallet token lists and the head of /tokens/{token} all return this shape. The one difference: in /tokens/{token}, pool is an object holding the pool's complete terms. Read the pool id from poolId in every case.

Token card fields
FieldMeaning
address · name · symbolSet at launch.
imageUrl · descriptionFrom the launch metadata. imageUrl is an https URL or a small data: URI, otherwise null; description is plain text, max 1,000 characters.
creator · poolId · poolLaunching wallet and the Uniswap v4 pool id (bytes32). In list responses pool just repeats the id, for older clients.
quoteThe paired asset: address (0x000…000 = HYPE), symbol, decimals, native, usd, usdSource, usdAt, usdStale.
supply · burnedMinted supply, and the amount since sent to 0x0 or 0x…dEaD.
price · priceUsdLast-trade price (the opening price until the first trade), and its current dollar value.
marketCap · marketCapUsdprice × (supply − burned).
volume24h · volume1h · traders1hPool-side volume over 24 h and 1 h (each with a Usd version), and unique traders in the last hour.
change24hPctPercent change since the hourly close 24 hours ago; null until that exists.
holders · swapsHolder count (excluding the token, its pool, the factory, the hook, the PoolManager, and 0x0 / 0x…0001 / 0x…dEaD) and total trades.
launchedAt · lastTradeAtBlock times.
tier · totalFeePipsFee row and tier chosen at launch; current total fee in pips (1,000,000 = 100%).
route · recipient · recipientKindroute is wallet, split or holders; recipient is who receives the creator side; recipientKind says whether that's holders, the creator, another wallet or a split.
rewardsReceivedTotal quote paid into the holders' stream.
trendThe score behind sort=trending; null when the quote has no dollar price.
graduationstage (new · graduating · graduated, i.e. board columns); progressBps toward 16.77× (10,000 = reached), measured as the share of the quote the seed needs to take in to get there; crossed; fromLaunch; graduatedAt (null until graduated, and null for pools graduated at launch); chainStage, the hook's 0–4 value.
lpLineprogressBps toward 142.56×, above, secondsAbove (cumulative so far), requiredSeconds (600), active (LP fee on, outside liquidity allowed), activeAt.
builderCode · liquiditySealedThe launch's builder code; liquiditySealed is false for v4 pools, which accept outside liquidity next to the locked seed after the LP line (stage 4; earlier adds revert).
version · hook4 for all live pools (1 = the retired KairoPool design, never used on mainnet), and the pool's hook address.

Trade

One trade = one PoolManager Swap on a Kairo pool, joined to the hook's FeeAccrued from the same transaction (see Indexing events), with some values pre-computed.

Trade fields
FieldMeaning
idRow id: the before cursor, and the SSE event id.
block · logIndex · txHash · tLog position and block time.
senderThe trader: the router's caller for trades through Kairo's router; otherwise the buyer (who received tokens) or the seller. For a first buy, its recipient.
trader · recipienttrader is the Swap's sender (Kairo's router, the factory, or another v4 router). recipient equals sender on v4 pools and is kept for older clients.
isBuytrue for buys (tokens left the pool).
quoteAmountQuote spent on a buy (Swap quote amount + hookFee) or received on a sale (Swap quote amount − hookFee).
volumePool-side amount: the Swap's quote amount without the hook fee. Every API volume figure is a sum of this.
hookFeeFeeAccrued.fee, anti-snipe surcharge included. The LP fee is separate.
tokenAmountTokens moved.
fee · protocolFee · lpFee · premium · creatorSide · holdersPartFee and its parts. premium and holdersPart are subsets of creatorSide; lpFee is what the Swap charged as LP fee.
price · poolIdPool price right after this swap (from sqrtPriceX96), not this trade's average price; and the pool id.

Interpreting values#

  • Volume excludes the fee. During an anti-snipe window a pool's fees can therefore exceed its volume. To total what traders actually spent, add up quoteAmount.
  • Candles. t marks the bucket start (a whole multiple of the interval since the Unix epoch). Values are post-trade prices, so open is the first trade in the bucket, not the previous close. Empty buckets are skipped. quoteUsd is the quote's dollar price at bucket close, or the current price for recent buckets.
  • Untraded tokens show the factory's opening price (opening market cap ÷ supply), swaps 0, volumes "0", and null for lastTradeAt and change24hPct.
  • Holder percentages. circulating = minted − burned, counting tokens in the pool. Percentages use it as the base, except burnedPct, which is a share of everything minted.
  • Dollar totals in /stats value each quote at whichever is higher: its hourly price when traded, or its price now. A quote losing value therefore never shrinks the totals.
  • Graduation stage is one of three board columns, not the hook's five stages. graduated: the hook has made graduation final (stage 2, 3 or 4, or graduated at launch). graduating: still Below or Crossed with progress of 5,000 bps or more. new: everything else. For the raw stage, read hook.poolConfig(poolId).stage.

When the API can't answer something, the chain can: call the contracts through the Elysium RPC.