# Realtap public API reference

Read-only Cardano market, wallet, NFT, explorer and staking data. All amounts are decimal-adjusted numbers (whole ADA, whole tokens). Anonymous requests are limited per IP; send an API key in the x-api-key header (create one under Account -> API keys) for higher limits. A key's limits follow the plan of the account that owns it: Free 120 requests per minute and 10,000 per day; Plus 300 requests per minute and 50,000 per day; Pro 600 requests per minute and 200,000 per day; Data 3000 requests per minute and 5,000,000 per day; Data Pro 6000 requests per minute and 20,000,000 per day (plans are not enforced yet: every key has the Free limits for now). Plans and prices: https://realtap.app/pricing. Trim any JSON response with ?fields=a,b.c (keep only those fields; inside items on lists) and ?compact=1 (drop nulls and empty arrays). Responses are stable within /v1: fields may be added, never removed or retyped. Token logos: every asset carries logoUrl (a cacheable image URL); the older inline logo field is still sent by default and makes list responses large - add logos=url to any request to receive URLs only.

Base URL: https://realtap.app/api/v1
OpenAPI 3.1: https://realtap.app/api/v1/openapi.json
Postman collection: https://realtap.app/api/v1/postman.json
TypeScript client: https://realtap.app/api/v1/client.ts
Python client: https://realtap.app/api/v1/client.py

**Trim any JSON answer:** `?fields=a,b.c` keeps only those fields (inside `items` on lists), `?compact=1` drops nulls and empty arrays.

## Tokens

### GET /tokens

List tokens

| Parameter | In | Description |
|---|---|---|
| sort | query | Default: volume. The rankings of the home table follow TapTools: volume (its "Trending": traded volume over `period`) \| mcap (market cap: circulating supply where known, else total; default floors: liquidity of 10,000 ADA or more and 100 holders or more) \| gainers \| losers \| change (price change over `period` in the `quote` currency; gainers is its descending end, losers its ascending one; only tokens traded in that window with liquidity of 10,000 ADA or more) \| age (pair age; ascending, the default, is "New Pairs") \| new (= age ascending: only tokens whose pools were seen being created) \| txns (trades over `period`) \| makers (traders of the last 24 h) \| liquidity \| fdv (price x total supply; floors of mcap) \| holders (liquidity of 1,000 ADA or more; exact counts before capped ones). Realtap's own: rank (market cap and liquidity combined, liquidity of 100 ADA or more) \| trending (trades in the last hour). volume24h and txns24h are volume and txns with period=24h. Missing values come last in either direction; ties fall to liquidity (mcap, fdv, volume) or volume (the others), then to the token. |
| period | query | 5m \| 1h \| 6h \| 24h (default) \| 7d \| 30d: the window of volume, txns, change, gainers and losers. 7d and 30d apply to the change rankings; volume and txns over them run over 7d and 24h |
| order | query | asc \| desc. Default: desc, and asc (youngest first) for age. Ignored by rank, trending, new, gainers and losers |
| quote | query | USD (default) or ADA: the currency price changes are ranked in |
| minLiquidity | query | Liquidity floor in ADA (both sides of the token's ADA pools); replaces the default floor of the chosen sort, 0 = none |
| minHolders | query | Holders floor; replaces the default of the chosen sort (100 for mcap and fdv), 0 = none. A token whose holder count is unknown, or known only as "at least N", is kept |
| q | query | Search text |
| logos | query | url = send logo URLs instead of inline images (accepted by every endpoint) |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}

Token detail with pools

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/candles

OHLCV candles

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| interval | query | 1m \| 5m \| 15m \| 1h \| 4h \| 1d (default 1h) |
| pool | query | Pool id, or "all" to aggregate every pool of the token (volume-weighted price, summed volume). Default: primary pool |
| quote | query | ADA \| USD (default ADA) |
| from | query | Unix seconds or ms |
| to | query | Unix seconds or ms |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/trades

Recent trades of a token

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| limit | query | Items per page (1-200, default 50) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/holders

Top holders

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/traders

Top traders of a token, and its buys and sells, over a window

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| window | query | 24h \| 7d \| 30d (default 24h) |
| limit | query | Wallets returned, 1 to 100 (default 25) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/liquidity

Depth within ±2% per pool, liquidity added and removed over a window, net flow per wallet

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| window | query | 24h \| 7d \| 30d \| 90d (default 7d) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/liquidity/events

Add and remove orders of a token's pools, newest first

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| window | query | 24h \| 7d \| 30d \| 90d (default 7d) |
| limit | query | Items per page (1-200, default 50) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/distribution

How supply is spread over holders, with what the holder list covers

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/transfers

Transfers of a token with senders and receivers, newest first; needs the ledger index (available false and a note while it is off)

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| limit | query | Items per page (1-200, default 50) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/holders/history

Holders, top 10 and top 50 share per day (shares are null unless the stored holder list is the true top)

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| days | query | History length, 1-3650 (default 365) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/series/{metric}

Daily liquidity or holder-count history

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| metric * | path | liquidity \| holders |
| days | query | History length (default 365) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /assets/{unit}/logo

Token logo image (the target of AssetRef.logoUrl): long Cache-Control, ETag; 404 when the token has none. Not rate limited.

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |

### GET /tokens/prices

Prices of up to 100 tokens in one request

| Parameter | In | Description |
|---|---|---|
| units * | query | Comma separated token units (policy id + asset name hex; "lovelace" for ADA), 1 to 100 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/price-change

Change of the ADA price over one or more windows, for up to 100 tokens

| Parameter | In | Description |
|---|---|---|
| units * | query | Comma separated token units, 1 to 100 |
| windows | query | Comma separated, any of 5m, 1h, 6h, 24h, 7d, 30d, 90d (default 24h). 30d and 90d compare with the last traded price on or before that moment and reach back only as far as the history we hold: null where the token had no price then |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /tokens/{unit}/safety

Safety score of a token: mint policy, holder concentration, liquidity lock, red flags

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit: policy id + asset name hex |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Pools

### GET /pools

List liquidity pools

| Parameter | In | Description |
|---|---|---|
| dex | query | Filter by DEX |
| sort | query | tvl \| volume24h |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /pools/{id}

Pool detail

| Parameter | In | Description |
|---|---|---|
| id * | path | Pool id |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /pools/{id}/candles

Pool OHLCV candles

| Parameter | In | Description |
|---|---|---|
| id * | path | Pool id |
| interval | query | 1m \| 5m \| 15m \| 1h \| 4h \| 1d |
| quote | query | ADA \| USD |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /pools/{id}/trades

Pool trades

| Parameter | In | Description |
|---|---|---|
| id * | path | Pool id |
| limit | query | Items per page (1-200, default 50) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Wallet

### GET /wallet/{address}

Wallet portfolio: positions valued in ADA and USD

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /wallet/{address}/related

Counterparties of a wallet in token transfers, by number of shared transactions; needs the ledger index (available false while it is off)

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…) |
| limit | query | Counterparties returned, 1-100 (default 25) |
| days | query | Window, 1-365 days (default 90) |
| contracts | query | 1 = include script owners (pools, batchers); default 0 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /wallet/{address}/trades

DEX trades made by a wallet

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…) |
| limit | query | Items per page (1-200, default 50) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /wallet/{address}/pnl

Realised / unrealised profit and loss (heavy: lower rate limit)

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /wallet/{address}/activity

Trades by weekday and hour (UTC) over the swaps the site holds

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /wallet/{address}/liquidity

Liquidity a wallet added and removed, by pool

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /wallet/{address}/risk

Transparent 0-100 wallet risk score with named reasons (a heuristic, not an accusation)

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## NFT

### GET /nft/collections

List NFT collections

| Parameter | In | Description |
|---|---|---|
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}

NFT collection detail

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/sales

Recent sales of a collection

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| limit | query | Items per page (1-200, default 50) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/listings

Active listings of a collection

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/depth

Listing depth: cost to buy the cheapest N listings and the floor after

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/activity

Per day sales, volume, buyers, sellers and royalties; wallet sizes; top traders

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| days | query | Window in days counted back from now: 7, 30 (default), 90 or 365 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/listing-history

Listings made, sold, withdrawn and open per day, with the floor

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| days | query | Window in days counted back from now: 7, 30 (default), 90 or 365 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/sales-points

The sales of the window as price points (up to 1,000, newest)

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| days | query | Window in days counted back from now: 7, 30 (default), 90 or 365 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/trait-prices

Per trait value: listed, floor, sales, average sale

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| days | query | Window in days counted back from now: 7, 30 (default), 90 or 365 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/trades

Sales feed with rarity rank, both wallets and royalty (same-wallet rows left out)

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| limit | query | Items per page (1-200, default 50) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/wallet-trades

One wallet's entries and exits in a collection

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| address * | query | addr1… or stake1… address |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/collections/{policy}/concentration

Share of the supply held by the largest holders, where the ledger count is complete

| Parameter | In | Description |
|---|---|---|
| policy * | path | NFT policy id (56 hex) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/market

The whole NFT market: sales, volume, active wallets, fees and royalties per marketplace

| Parameter | In | Description |
|---|---|---|
| days | query | Window in days counted back from now: 7, 30 (default), 90 or 365 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /nft/market/pulse

The NFT market right now: 24 h and 7 d sales, volume, new listings and marketplace share; top collections by volume; biggest floor moves

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Explorer

### GET /explorer/blocks/{id}

Block by hash or height

| Parameter | In | Description |
|---|---|---|
| id * | path | Block hash or height |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/tx/{hash}

Transaction with inputs, outputs and metadata

| Parameter | In | Description |
|---|---|---|
| hash * | path | Transaction hash |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/address/{address}

Address balance and summary

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/labels

Names of contracts and entities for up to 100 credentials or addresses, each with source and licence

| Parameter | In | Description |
|---|---|---|
| items * | query | Comma-separated 56-hex credentials, addr1… or stake1… addresses (at most 100) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/labels/{id}

Name of one contract or entity (null when unknown), with source and licence

| Parameter | In | Description |
|---|---|---|
| id * | path | 56-hex credential, addr1… or stake1… address |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/stake/{address}

Stake key: controlled stake, rewards, pool and DRep, addresses

| Parameter | In | Description |
|---|---|---|
| address * | path | stake1… address |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/policy/{policy}

Minting policy: its assets, mints in the window, script

| Parameter | In | Description |
|---|---|---|
| policy * | path | Policy id (56 hex) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/epochs

Epochs with blocks, transactions and fees (exact totals for epochs older than our block index)

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/protocol

Current protocol parameters (the ledger's values) and the genesis constants

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/history

The chain per UTC day: transactions, fees and block space used, from our own block index

| Parameter | In | Description |
|---|---|---|
| range | query | 30d \| 90d (default) \| 180d \| 1y \| 2y \| all. Days we hold only part of are marked partial; nothing before the first block we hold is claimed |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/blocks

Latest blocks

| Parameter | In | Description |
|---|---|---|
| limit | query | Items per page (1-100, default 25) |
| before | query | Height: return older blocks |
| pool | query | Pool id |
| epoch | query | Epoch number |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/blocks/script-budget

Plutus script budget per hour: share of the per-block execution-unit limits (memory, steps) used and the share of transactions that ran scripts

| Parameter | In | Description |
|---|---|---|
| hours | query | Window in hours (1-72, default 24) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/txs

Latest transactions

| Parameter | In | Description |
|---|---|---|
| limit | query | Items per page (1-100, default 25) |
| before | query | Internal id: return older transactions |
| filter | query | Transaction kind filter |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/address/{address}/txs

Transactions of an address

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address |
| limit | query | Items per page (1-100, default 25) |
| before | query | Cursor |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/address/{address}/utxos

Unspent outputs at an address

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/epochs/{n}

One epoch: dates, blocks, transactions, fees, stake, rewards ("latest" for the current one)

| Parameter | In | Description |
|---|---|---|
| n * | path | Epoch number or "latest" |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/network

Network figures: tip, epoch progress, stake, pools, supply

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/asset/{unit}

On-chain facts of one asset: supply, mints, metadata

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/asset/{unit}/holders

Holders of an asset by balance

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/certificates

Stake, pool and DRep certificates, newest first (kind: stake_registration | stake_deregistration | delegation | vote_delegation | pool_registration | pool_retirement | drep_registration | drep_update | drep_retirement)

| Parameter | In | Description |
|---|---|---|
| kind | query | Certificate kind (default delegation) |
| limit | query | Items per page (1-100, default 25) |
| before | query | Cursor: the nextBefore of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/tx/{hash}/cbor

Raw transaction CBOR as hex (add download=1 for a .cbor file)

| Parameter | In | Description |
|---|---|---|
| hash * | path | Transaction hash |
| download | query | 1 to download the bytes as a file |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /explorer/inspect

Decode a pasted address (network, payment and stake credentials), Plutus datum (CBOR hex to JSON) or transaction (CBOR hex to summary); POST {input, kind?} for large inputs (64 KB)

| Parameter | In | Description |
|---|---|---|
| input | query | Address, datum hex or transaction hex |
| kind | query | address \| datum \| tx (detected when omitted) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Staking

### GET /staking/pools

Stake pools

| Parameter | In | Description |
|---|---|---|
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /staking/delegation-tx

Build an unsigned stake-pool and/or DRep delegation transaction (never signed or submitted by Realtap)

| Parameter | In | Description |
|---|---|---|
| address * | query | The signer's mainnet base address (addr1…) or a $handle that resolves to one |
| pool | query | pool1… id or 56 hex: delegate the stake to this pool |
| drep | query | drep1… (CIP-129 or legacy), abstain or no-confidence: delegate the voting power |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /staking/pools/{id}

Stake pool detail

| Parameter | In | Description |
|---|---|---|
| id * | path | pool1… id |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /staking/tokens

Token staking programs (Iagon IAG, Indigo INDY, Minswap farms): TVL, stakers and 24 h / 7 d change of the staked amount

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /staking/tokens/{unit}

One token staking program: top stakers, size distribution, 7 / 30 day inflows and outflows, lock states, daily history

| Parameter | In | Description |
|---|---|---|
| unit * | path | The staked unit (policy id + asset name hex): the IAG or INDY unit, or the LP token of a Minswap farm; the list gives it |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Aquarium

### GET /aquarium/overview

Aquarium (Iagon / Aquarium network) overview

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Market

### GET /market/overview

Market overview: volume, TVL, DEX shares, gainers, losers, trending

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /market/history

The DEX market over time: volume, swaps, makers and trading fees per day (week, month), for all DEXes or one

| Parameter | In | Description |
|---|---|---|
| range | query | 7d \| 30d (default) \| 90d \| 1y \| all. Bars are days up to 100 of them, weeks (Monday to Sunday, UTC) up to two years, then months |
| dex | query | One DEX by name as /market/dexes lists it (for example MinswapV2); all DEXes together when left out |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /market/dexes

Every DEX: the last 24 hours, the last 7 and 30 full days, liquidity and fee APR

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /trades

Every settled swap on every DEX, newest first; filter by size for large trades, or by DEX

| Parameter | In | Description |
|---|---|---|
| window | query | 1h \| 24h (default) \| 7d \| 30d: how far back to look |
| minAda | query | Only trades worth at least this many ADA |
| dex | query | Only this DEX, by name as /market/dexes lists it |
| limit | query | Items per page (1-200, default 50) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Swap

### GET /swap/quote

Best-route swap quote

| Parameter | In | Description |
|---|---|---|
| in * | query | Input unit ("lovelace" for ADA) |
| out * | query | Output unit |
| amount * | query | Input amount, decimal-adjusted |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /swap/route

Swap plan of the own router: one or several orders on Minswap V2, SundaeSwap V3 and WingRiders V2, with every fee

| Parameter | In | Description |
|---|---|---|
| in * | query | Input unit ("lovelace" for ADA) |
| out * | query | Output unit |
| amount * | query | Input amount, decimal-adjusted |
| slippage | query | Percent, 0.01 to 50 (default 1) |
| maxLegs | query | Most orders to split over, 1 to 4 (default 4) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /trade/status/{txHash}

Status of the swap orders a transaction placed

| Parameter | In | Description |
|---|---|---|
| txHash * | path | Transaction hash (64 hex) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /trade/atomic

Direct (atomic) against batched trades per aggregator and DEX, SteelSwap version adoption and partner wallets

| Parameter | In | Description |
|---|---|---|
| window | query | 24h, 7d (default) or 30d |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /trade/orders

Open swap orders of a wallet at Minswap V2, SundaeSwap V3 and WingRiders V2 (unspent in the ledger now)

| Parameter | In | Description |
|---|---|---|
| address * | query | Mainnet payment address (addr1…) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## AI agents

### GET /masumi/overview

Masumi: registered AI agent services and the payments through its escrow in the last 30 days

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /masumi/agents

AI agent services registered in the Masumi registry, with price, endpoint and the payments each received

| Parameter | In | Description |
|---|---|---|
| q | query | Text in the name, description, tags, author or endpoint |
| kind | query | agent (default), x402 or all |
| sort | query | payments (default), recent, name or price |
| paid | query | 1 = only entries that received a payment |
| status | query | live (default) or all (with deregistered entries) |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /masumi/agents/{unit}

One registry entry with its latest payments

| Parameter | In | Description |
|---|---|---|
| unit * | path | Agent identifier: registry policy id + asset name (hex) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /masumi/payments

Payments through the Masumi escrow, newest first

| Parameter | In | Description |
|---|---|---|
| agent | query | Only payments to this agent identifier |
| limit | query | 1 to 100 (default 25) |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Programmable tokens

### GET /programmable

Programmable tokens (CIP-113): the deployment, how far our index reaches, every registered token with its rules in a line

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /programmable/tokens/{id}

A programmable token's rules in plain words, its issuer (administrator and operators), block list, holders and latest compliance events

| Parameter | In | Description |
|---|---|---|
| id * | path | Policy id (56 hex) or token unit |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /programmable/tokens/{id}/holders

Holders of a programmable token under the standard's contract

| Parameter | In | Description |
|---|---|---|
| id * | path | Policy id (56 hex) or token unit |
| limit | query | 1 to 500 (default 50) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /programmable/issuer/{id}

The issuer view of a programmable token: its rules, supply (held, minted, burned), holders, tokens that share its administrator or scripts, and every issuer action we read

| Parameter | In | Description |
|---|---|---|
| id * | path | Policy id (56 hex) or token unit |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /programmable/address/{q}

Programmable balances of an address, stake address or owner credential, with each token's restrictions

| Parameter | In | Description |
|---|---|---|
| q * | path | addr1… address (ordinary or smart-wallet), stake1… address or a 56-hex owner credential |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /programmable/events

Freezes, unfreezes, tokens moved by the issuer without the holder (third_party), mints, burns, rule and setting changes, each with its transaction

| Parameter | In | Description |
|---|---|---|
| policy | query | Only this token (56-hex policy id) |
| kind | query | Comma separated: freeze, unfreeze, third_party, mint, burn, state_changed, rules_changed, registered, operator_added, operator_removed, operator_changed |
| subject | query | Only events about this owner credential (56 hex) |
| limit | query | 1 to 200 (default 50) |
| before | query | nextBefore of the previous page (a slot) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /programmable/preflight

Would a transfer of a programmable token from A to B be allowed, and if not, why? Answers only from indexed state and lists what it cannot know; never "allowed"

| Parameter | In | Description |
|---|---|---|
| unit * | query | Token unit (policy id + asset name hex) |
| from | query | Sender: address, stake address or 56-hex credential |
| to | query | Receiver: address, stake address or 56-hex credential |
| amount | query | Decimal-adjusted amount, plain digits |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /programmable/send-context

What a browser needs to build a transfer of a programmable token (CIP-113): the token's rules, the owner's holdings, the standard's reference UTxOs, the covering block-list node, identity proofs found on chain and the proven cost models. Answers `disabled` unless the site has the send flow switched on. Read-only; nothing is built, signed or sent

| Parameter | In | Description |
|---|---|---|
| unit * | query | Token unit (policy id + asset name hex) |
| owner * | query | The holder: 56-hex key hash the tokens sit under, or an address / stake address (its stake key) |
| to | query | Recipient address or stake address (its stake key is the recipient) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Governance

### GET /governance/overview

Governance overview: treasury, DReps, actions by status, committee, rules in force, live actions with tallies

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /governance/actions

Governance actions with status, epochs and vote tallies

| Parameter | In | Description |
|---|---|---|
| status | query | active \| ratified \| enacted \| expired \| dropped \| all (default) |
| type | query | ParameterChange, TreasuryWithdrawals, NewCommittee, NewConstitution, HardForkInitiation, NoConfidence, InfoAction |
| q | query | Text in the title, or an id prefix |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /governance/actions/{id}

One governance action: text, withdrawals, parameter changes, every vote

| Parameter | In | Description |
|---|---|---|
| id * | path | gov_action1… or <tx hash>#<index> |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /governance/actions/{id}/tally-history

How the vote on an action moved: daily tally per voting body (DRep power Yes/No/Abstain, pool and committee vote counts)

| Parameter | In | Description |
|---|---|---|
| id * | path | gov_action1… or <tx hash>#<index> |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /governance/dreps

DReps by voting power, with participation

| Parameter | In | Description |
|---|---|---|
| sort | query | votingPower (default) \| delegators \| name \| expires |
| status | query | registered (default) \| active \| inactive \| retired \| all |
| q | query | Name or id prefix |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /governance/dreps/{id}

One DRep: power, votes, participation, certificates, delegators, power history

| Parameter | In | Description |
|---|---|---|
| id * | path | drep1… (CIP-129) or the 56-hex credential |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /governance/committee

Constitutional committee: members, terms, who appointed them, constitution, committee actions

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /governance/treasury/withdrawals

Treasury withdrawals proposed to governance, paid out per year

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /governance/parameters

History of protocol parameter changes since epoch 208, with the governance action behind each

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Claims

### GET /claims

Pool and DRep pages their operators have claimed (verified or approved claims only)

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /claims/{kind}/{id}

The claim shown on one pool or DRep page, or null

| Parameter | In | Description |
|---|---|---|
| kind * | path | pool or drep |
| id * | path | pool1… or drep1… id |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Buy bot

### GET /buybot/info

Telegram buy bot: groups using it, tokens followed, posts in 24 h, and the add-to-group link

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Badges and widgets

### GET /embed/widget/{subject}/{id}

The figures behind the embeddable widget of a stake pool, DRep, token, wallet, NFT collection, the market strip (id ada) or a governance action

| Parameter | In | Description |
|---|---|---|
| subject * | path | pool, drep, token, wallet, nft, market or gov |
| id * | path | pool id, DRep id, token unit, wallet address, NFT policy id, "ada" for market, or governance action id |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /badge/{subject}/{id}/{metric}.svg

A live SVG badge (shields.io style) for a stake pool, DRep or token; unknown subjects answer a grey "not found" badge with status 404

| Parameter | In | Description |
|---|---|---|
| subject * | path | pool, drep or token |
| id * | path | pool id, DRep id or token unit |
| metric * | path | pool: return, luck, blocks, saturation, stake, delegators, pool. drep: votes, participation, power, delegators, drep. token: price, price-ada, change, token |
| style | query | flat (default) \| flat-square \| for-the-badge |
| label | query | Replaces the left text (printable ASCII, at most 30) |
| color | query | green \| yellow \| red \| blue \| orange \| grey \| brand, or 3 or 6 hex digits |

## Wrapped

### GET /wrapped/{id}

Cardano Wrapped 2026: one wallet's year card. Off until 1 December 2026 (404 with the launch date); 451 when the wallet opted out; 503 {status: busy, retryAfter} while many cards are being computed

| Parameter | In | Description |
|---|---|---|
| id * | path | $handle, stake1… or addr1… address with a stake part |
| refresh | query | 1 recomputes a card older than an hour |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Credits

### GET /credits/packs

Request credits bought in ADA: the packs, how to pay, how to get a free key (Telegram /apikey), and when a Plus plan is cheaper

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /credits/me

Your credit balance, today's use, limits and open payment requests (needs an x-api-key)

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /credits/intents

Your last 10 credit payment requests (needs an x-api-key). To BUY a pack: POST https://<host>/api/credits/intents {"pack":"s"} with the key (v1 itself is read-only); it answers the address and the exact ADA amount

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /credits/intents/{id}

Look for the payment of a credit request; credits are added when it is found (needs an x-api-key)

| Parameter | In | Description |
|---|---|---|
| id * | path | id of the credit payment request |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Loans

### GET /loans/overview

Fluid loans: totals, rates and the biggest principal assets

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /loans

List loans and loan offers

| Parameter | In | Description |
|---|---|---|
| status | query | active (default) \| offers \| requests \| repaid \| liquidated \| cancelled \| finished \| all |
| protocol | query | v3 \| v4 |
| wallet | query | Borrower or lender address |
| sort | query | recent (default) \| principal \| apr \| due |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /loans/wallet/{address}

Loans a wallet borrowed or lent

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…), or a $handle |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /loans/token/{unit}

Loans that use a token as principal or collateral, with the lending market rates

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit, or "lovelace" for ADA |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /loans/{id}

One loan with its terms, collateral value and liquidation distance

| Parameter | In | Description |
|---|---|---|
| id * | path | Numeric loan id |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Perps

### GET /perps/overview

Perpetual futures on Cardano: open interest, volume, funding, vault size, liquidations

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /perps/markets

Every perp market: mark and index price, funding, open interest, 24 h volume

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /perps/positions

Open positions, largest first

| Parameter | In | Description |
|---|---|---|
| symbol | query | A market such as ADA-USD |
| side | query | long \| short |
| wallet | query | Owner address |
| minUsd | query | Smallest notional in USD |
| traders | query | true leaves out the liquidity vault account |
| sort | query | notional (default) \| pnl \| leverage \| recent \| risk |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /perps/events

Recent fills: opens, closes, funding and liquidations

| Parameter | In | Description |
|---|---|---|
| symbol | query | A market such as ADA-USD |
| before | query | Fill id: return older fills |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /perps/liquidations

Liquidated positions

| Parameter | In | Description |
|---|---|---|
| wallet | query | Owner address |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /perps/leaderboard

Best traders by volume, PnL or ROI

| Parameter | In | Description |
|---|---|---|
| period | query | 24h \| 7d \| 30d (default) \| all_time |
| sort | query | volume (default) \| total_pnl \| realized_pnl \| equity \| total_trades \| roi |
| limit | query | 1-100, default 50 |
| offset | query | Rows to skip |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /perps/custody

What the perps venue holds in custody

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /perps/transfers

Deposits into and withdrawals out of the venue

| Parameter | In | Description |
|---|---|---|
| kind | query | deposit \| withdrawal |
| wallet | query | Owner address |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /perps/wallet/{address}

One wallet on the perps venue: equity, positions, fills

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…), or a $handle |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## DeFi

### GET /defi

Cardano DeFi: total value locked by protocol and category

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /defi/protocols/{id}

One protocol: TVL history, markets and links

| Parameter | In | Description |
|---|---|---|
| id * | path | Protocol id from /defi, e.g. liqwid |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /defi/markets

Lending and staking markets with supply and borrow rates

| Parameter | In | Description |
|---|---|---|
| protocol | query | Protocol id |
| kind | query | lending \| cdp \| stability_pool \| staking \| reserve \| liquid_staking |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /defi/registry

The protocols and stablecoins Realtap tracks, with policy ids

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /defi/positions/{address}

A wallet's lending, staking and liquidity positions across protocols

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…), or a $handle |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /yields

Yield table: LP fee APR, lending rates and staking ROA

| Parameter | In | Description |
|---|---|---|
| minTvl | query | Smallest pool in ADA (default 25000) |
| limit | query | 1-300, default 100 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /stablecoins

Cardano stablecoins: price, peg deviation, market cap and supply history

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /earn

Where could this asset earn the most? Staking, lending, p2p loans and liquidity pools ranked

| Parameter | In | Description |
|---|---|---|
| asset | query | "ada" (default) or a token unit |
| amount | query | Amount to invest (default 1000) |
| minTvl | query | Smallest liquidity pool in ADA |
| lpLimit | query | Most pools listed, 0-50 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /earn/assets

Assets the earn comparison supports

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Predictions

### GET /predictions/overview

Prediction markets (Bodega): open markets, volume, biggest movers

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /predictions/markets

List prediction markets with odds

| Parameter | In | Description |
|---|---|---|
| status | query | open (default) \| awaiting \| resolved \| closed \| pending \| live \| all |
| sort | query | volume \| volume24h \| liquidity \| deadline \| recent \| activity |
| q | query | Search text |
| page | query | From 1 |
| pageSize | query | 1-100, default 30 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /predictions/markets/{slug}

One market: outcomes, odds history and recent trades

| Parameter | In | Description |
|---|---|---|
| slug * | path | Market id such as FC1B_BTC_REACHES_9000 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /predictions/trades

Recent prediction-market trades

| Parameter | In | Description |
|---|---|---|
| market | query | Market id |
| action | query | buy \| sell \| claim |
| wallet | query | Wallet address |
| page | query | Page number, from 1 |
| pageSize | query | Items per page (max 200) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /predictions/wallet/{address}

A wallet's shares and history in prediction markets

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…), or a $handle |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## News

### GET /news

Cardano news from tracked sources, deduplicated, newest first

| Parameter | In | Description |
|---|---|---|
| source | query | Source name from the response |
| q | query | Search text |
| page | query | From 1 |
| pageSize | query | 1-100, default 30 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Handles

### GET /handles

Search or browse ADA Handles

| Parameter | In | Description |
|---|---|---|
| q | query | Name prefix |
| sort | query | recent (default) \| name \| short |
| kind | query | all \| cip25 \| cip68 \| virtual \| sub |
| page | query | From 1 |
| pageSize | query | 1-100, default 50 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /handles/stats

ADA Handle counts by type and length

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /handles/resolve/{name}

Which address owns a handle

| Parameter | In | Description |
|---|---|---|
| name * | path | $name, name or sub@root |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /handles/of/{address}

Handles owned by an address or stake key hash

| Parameter | In | Description |
|---|---|---|
| address * | path | addr1…, stake1… or a 56-hex stake key hash |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Projects

### GET /projects

Token projects whose teams published links, logo and description (signed or reviewed)

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /projects/token/{unit}

The current published project profile of one token

| Parameter | In | Description |
|---|---|---|
| unit * | path | Token unit |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Midnight

### GET /midnight/overview

Midnight (NIGHT): supply, thaw schedule, redemptions and DUST figures

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/supply/history

NIGHT supply over time

| Parameter | In | Description |
|---|---|---|
| days | query | 1-365, default 30 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/thaw/calendar

When claimed NIGHT thaws

| Parameter | In | Description |
|---|---|---|
| bucket | query | week (default) \| day |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/thaw/wallet/{address}

A wallet's NIGHT allocation and thaw schedule

| Parameter | In | Description |
|---|---|---|
| address * | path | Bech32 address (addr1… or stake1…), or a $handle |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/redemptions

Recent NIGHT redemptions

| Parameter | In | Description |
|---|---|---|
| limit | query | Items per page (1-200, default 50) |
| kind | query | Redemption kind |
| cursor | query | nextCursor of the previous page |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/dust/stats

DUST address registrations: counts, daily series, latest

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/dust/status/{address}

DUST registration status of a Cardano stake address

| Parameter | In | Description |
|---|---|---|
| address * | path | stake1… address |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/allocations

NIGHT allocations by group

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/locations

Where NIGHT sits: wallets, exchanges, contracts

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/trades/large

Large NIGHT trades on Cardano DEXes

| Parameter | In | Description |
|---|---|---|
| min | query | Smallest trade in ADA (default 25000) |
| limit | query | Items per page (1-100, default 25) |
| days | query | 1-30, default 7 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/network

Midnight chain status

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/blocks

Latest Midnight blocks

| Parameter | In | Description |
|---|---|---|
| limit | query | Items per page (1-100, default 25) |
| before | query | Height: return older blocks |
| nonEmpty | query | true: only blocks with transactions |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/blocks/{id}

One Midnight block by height or hash

| Parameter | In | Description |
|---|---|---|
| id * | path | Height or hash |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/txs

Latest Midnight transactions

| Parameter | In | Description |
|---|---|---|
| limit | query | Items per page (1-100, default 25) |
| before | query | Cursor |
| contract | query | Contract address |
| contracts | query | true: only contract calls |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/txs/{hash}

One Midnight transaction

| Parameter | In | Description |
|---|---|---|
| hash * | path | Transaction hash |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/contracts

Most active Midnight contracts

| Parameter | In | Description |
|---|---|---|
| limit | query | Items per page (1-200, default 50) |
| sort | query | actions (default) \| recent \| new |
| days | query | 1-90, default 7 |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/contracts/{address}

One Midnight contract and its recent actions

| Parameter | In | Description |
|---|---|---|
| address * | path | Contract address |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /midnight/search

Classify a Midnight id (height, hash, contract, DUST address)

| Parameter | In | Description |
|---|---|---|
| q * | query | What to look for |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Streaming

### GET /stream/trades

Server-sent events: every settled swap on every DEX as it happens; add ?token=<unit> for one token. Events: hello, trade, gap. Resume: every event carries id: (a trade: <swap id>:<p|c|x>; a sale or pool state: the row id). Send the last one as the Last-Event-ID header (EventSource does this itself after a drop) or ?since= (the header wins); a cursor that does not parse is 400. The server replays what you missed from a ring of the last 10000 events, then from the database (at most 24 hours back; an older cursor first gets event: gap {channel, oldest}), then goes live; each (id, status) arrives at most once after your cursor. Send an API key as x-api-key or Authorization: Bearer otk_... (never in the query string: ?key= is 400): connections are then counted per account by plan (free 4, plus 4, pro 8, data 32, datapro 64) instead of 4 per IP. hello carries {channels, resume, cursor, connections: {open, allowed}}. A heartbeat comment comes every 15 s.

| Parameter | In | Description |
|---|---|---|
| token | query | Token unit: only that token's trades (default: all DEXes) |
| since | query | Resume cursor: the id of the last trade event you received (Last-Event-ID header wins) |

### GET /stream/nft-sales

Server-sent events: every new NFT sale on every marketplace. Events: hello, nft_sale, gap. Resume: every event carries id: (a trade: <swap id>:<p|c|x>; a sale or pool state: the row id). Send the last one as the Last-Event-ID header (EventSource does this itself after a drop) or ?since= (the header wins); a cursor that does not parse is 400. The server replays what you missed from a ring of the last 10000 events, then from the database (at most 24 hours back; an older cursor first gets event: gap {channel, oldest}), then goes live; each (id, status) arrives at most once after your cursor. Send an API key as x-api-key or Authorization: Bearer otk_... (never in the query string: ?key= is 400): connections are then counted per account by plan (free 4, plus 4, pro 8, data 32, datapro 64) instead of 4 per IP. hello carries {channels, resume, cursor, connections: {open, allowed}}. A heartbeat comment comes every 15 s.

| Parameter | In | Description |
|---|---|---|
| since | query | Resume cursor: the id (row id) of the last nft_sale event you received (Last-Event-ID header wins) |

### GET /stream/pool-states

Server-sent events: every new pool state (reserves, TVL, price after a swap or liquidity change); add ?pool=<id> for one pool. Events: hello, pool_state, gap. Resume: every event carries id: (a trade: <swap id>:<p|c|x>; a sale or pool state: the row id). Send the last one as the Last-Event-ID header (EventSource does this itself after a drop) or ?since= (the header wins); a cursor that does not parse is 400. The server replays what you missed from a ring of the last 10000 events, then from the database (at most 24 hours back; an older cursor first gets event: gap {channel, oldest}), then goes live; each (id, status) arrives at most once after your cursor. Send an API key as x-api-key or Authorization: Bearer otk_... (never in the query string: ?key= is 400): connections are then counted per account by plan (free 4, plus 4, pro 8, data 32, datapro 64) instead of 4 per IP. hello carries {channels, resume, cursor, connections: {open, allowed}}. A heartbeat comment comes every 15 s.

| Parameter | In | Description |
|---|---|---|
| pool | query | Pool id: only that pool's states (default: all pools) |
| since | query | Resume cursor: the id (row id) of the last pool_state event you received (Last-Event-ID header wins) |

## Alerts

### GET /alerts

Alert rules of the key's account (needs an x-api-key). Also: POST creates a rule {kind, params, webhookUrl?, targetIds?, cooldownSecs?} (same kinds as the site; webhookUrl makes a signed-webhook target and answers its secret once), PATCH /alerts/{id} changes one, DELETE /alerts/{id} removes it, POST /alerts/test {targetId | ruleId} sends a signed test message (v1 is otherwise read-only)

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /alerts/targets

Delivery targets of the key's account (needs an x-api-key); POST {url, label?} adds a signed webhook (public https only) and returns its HMAC secret once

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /alerts/deliveries

Delivery log of the key's account (needs an x-api-key): status, attempts, HTTP status and error per delivery, newest first

| Parameter | In | Description |
|---|---|---|
| limit | query | Items per page (1-100, default 20) |
| before | query | Delivery id: only older ones |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

## Export

### GET /export/usage

Your key's export usage: requests, rows and bytes per UTC day and dataset over the last 30 days (needs an x-api-key)

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /export/wallets

Batch lookup: value, token count and trading profit and loss of up to 100 wallets in one call with a Data plan (5 without), in the order asked. Each ref costs what one wallet profit-and-loss call costs: a request of the key's daily quota, then 5 credits; without a key (or with neither left) one of the per-IP tokens for expensive calls. A bad ref, or one that could not be paid for, is answered { ref, ok: false, error } without failing the batch

| Parameter | In | Description |
|---|---|---|
| refs | query | Comma-separated wallets: addr1… or stake1… addresses or $handles (100 per call with a plan, 5 without; refs past the limit are answered ok: false) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /export/files

Dataset files (Parquet and csv.gz, nightly deltas and snapshots, weekly full files and the bundle) with what the caller may download: samples are free, delta and snapshot files need a Data plan (Data Pro for the derived datasets), full files and the bundle need Data Pro or the one-time archive. Newest first per dataset

| Parameter | In | Description |
|---|---|---|
| dataset | query | A dataset id, or bundle |
| kind | query | full, delta, snapshot or sample |
| limit | query | Files to list (default 200, at most 1000) |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /export/files/{id}/url

A download link for one file, valid for one hour (a signed /api/export/dl/ link, or a presigned mirror link). Counts one request against the key. The link needs no key and supports Range requests

| Parameter | In | Description |
|---|---|---|
| id * | path | File id from /export/files |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /export/me

The buyer dashboard in one answer (session or API key): plan and expiry, the presented key's tier and use today, the archive grant, export usage per dataset over 30 days, the last 50 file downloads, open streams against the allowance, and links

| Parameter | In | Description |
|---|---|---|
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |

### GET /export/{dataset}

One page of a dataset (a whole table with a cursor): swaps, candles, pools, pool_states, liquidity_ops, tokens, token_stats, nft_sales, nft_listings, nft_collections, stake_pools, stake_pool_epochs, address_labels, leaderboard, hot_wallets. Without a plan the answer is the free sample described in the data dictionary on /data, 1,000 rows a page; with Data the full history, up to 10,000 rows a page. format=ndjson and format=csv answer rows only; every format carries X-Next-Cursor and Link rel=next. Amounts are decimal-adjusted (ADA in ADA, tokens by their decimals)

| Parameter | In | Description |
|---|---|---|
| dataset * | path | dataset id |
| after | query | The `next` value (or X-Next-Cursor header) of the previous page, unchanged |
| limit | query | Rows per page: up to 10,000 with a data plan, 1,000 without (larger values are lowered, X-Export-Limit says to what); default 1,000 |
| since | query | ISO-8601 time or epoch seconds, inclusive: on the time (slot) column of an append dataset, on updated_at of a snapshot, on the epoch start of stake_pool_epochs |
| until | query | ISO-8601 time or epoch seconds, exclusive |
| format | query | json \| ndjson \| csv (default json) |
| pool | query | Filter of swaps, candles, pool_states, liquidity_ops, stake_pool_epochs: one pool id; one pool id (recommended: a walk of every pool is millions of rows); one pool (pool1… id) |
| dex | query | Filter of swaps, pools: one DEX name as the site shows it; one DEX name |
| unit | query | Filter of swaps, pools, hot_wallets: swaps in or out of one token (policy id + asset name, hex); pools of one token; one token |
| status | query | Filter of swaps, nft_listings: pending, settled or cancelled; default settled; open or closed; default all |
| type | query | Filter of liquidity_ops: deposit, withdraw or zap (a one-sided deposit) |
| policy | query | Filter of nft_sales, nft_listings: one collection (policy id) |
| marketplace | query | Filter of nft_sales, nft_listings: one marketplace name |
| category | query | Filter of address_labels: one category |
| window | query | Filter of leaderboard, hot_wallets: 7d, 30d or 90d; default 7d. 7d and 30d rank every eligible wallet; 90d is the top 100 the indexer stores; 7d, 30d or 90d; default 7d. 7d and 30d rank every wallet; 90d over all tokens is the top 100 per list the indexer stores |
| fields | query | Keep only these fields, comma separated: top-level names and one level of dotted paths (a,b.c). On list responses the fields apply inside items. Example: fields=name,price |
| compact | query | 1 drops null values and empty arrays from the response |
