Loading...
Transition...
v1.0OAS 3.1.0

Bittensor API docs

Fast Bittensor data access. Reliable, developer-ready APIs.

Built by Backprop.Finance and Powered by AMP, the indexing infrastructure by Edge & Node.

Download OpenAPI Document

Bittensor dTAO data (subnets, pools, validators, wallets, stake movements and limit orders) indexed from finney by Amp and served over a read-only REST API, with Server-Sent Events for live prices and trades.

Authentication

Every request needs an API key, sent in the x-api-key header. Create and manage keys in the API console.

curl https://api.backprop.finance/api/blocks/latest \
  --header 'accept: application/json' \
  --header 'x-api-key: YOUR_API_KEY'

Keep keys server-side. Never ship them in browser bundles or commit them to a repository.

Conventions

  • Method: every endpoint is GET.
  • Addresses: coldkeys and hotkeys are SS58 (5...), both in requests and responses.
  • Amounts: in TAO and alpha (rao / 1e9). perU16 shares are returned as 0..1.
  • Block ranges: start_block and end_block are inclusive; omit them for no lower bound and the newest block.
  • Compression: send Accept-Encoding: gzip; responses over 1 KB are gzipped.

Pagination

List endpoints return items, limit and next. Pass limit (1 to 100, default 10) and send the previous response's next as cursor to get the following page. When next is null there are no more pages.

GET /subnets/1/trades?limit=100
GET /subnets/1/trades?limit=100&cursor=<next>

Freshness & caching

Per-block data is cached for about one block (~12 s).

  • Cache-Control tells you how long a response stays fresh.
  • X-Cache is HIT, MISS, STALE or BYPASS.
  • Server-Timing: app;dur=<ms> is the time the server spent on the request.

Real-time streams

Routes under /sse/ push one message per block: trades with the block's rows, or a heartbeat when the block has none. Nothing is sent on connecting; the first message is the next block, and a : ping comment every 15 s keeps idle connections open.

  • On reconnect, send Last-Event-ID (browsers do it for you) to replay the blocks after it, up to the last 300.
  • If you fall further behind, a gap message with from_block and to_block comes first; read those blocks from the matching REST route with start_block / end_block.
  • A client 64 blocks behind is disconnected and resumes the same way.

Errors & rate limits

  • 401: the API key is missing or invalid.
  • 404: nothing is indexed for that key.
  • 422: a parameter is invalid; detail lists each field and why.
  • 429: over your account's per-minute limit, counted across all its keys.
  • 503: a store is unavailable or the query ran out of time.

For 429 and 503, wait for the seconds in Retry-After before retrying.

Server

https://api.backprop.finance/api

Client Libraries

Shell Curl

Pools

Each subnet's pool: price, reserves, market cap, emission, volume.

List Subnets

Every subnet on one row, best emission share first, for comparison. Narrower than /pools/{netuid} on purpose. Not paged: the chain caps the subnet count. netuid 0 is root and has no pool, so it is not listed.

Two 24h volumes, which differ on purpose: pool_volume_24h_tao is market volume -- everything the pool swapped over the last 7,200 blocks (the chain's SubnetVolume counter, MEV and stake moves that swap included), the figure other explorers show. volume_24h_tao is what traders did -- user buys and sells, cross-subnet swap legs included, MEV sandwiches and same-subnet transfers excluded. It runs at ~0.85x the pool figure overall (median 0.91x per subnet).

Responses

GET/pools
curl https://api.backprop.finance/api/pools \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "block": 0,    "ts": "2024-01-15T14:42:00Z",    "price_tao": 0,    "change_24h_pct": 0,    "liquidity_tao": 0,    "tao_reserve": 0,    "alpha_reserve": 0,    "total_alpha": 0,    "mcap_tao": 0,    "emission_share_pct": 0,    "demand_share_pct": 0,    "tao_emission_pct": 0,    "tao_emission_per_block": 0,    "alpha_emission_per_block": 0,    "volume_24h_tao": 0,    "trades_24h": 0,    "pool_volume_24h_tao": 0,    "pool_volume_tao": 0  }]

Get Subnet

One subnet's pool in full: price, reserves, market cap, emission, volume and price change. The two 24h volumes are as on /pools: pool_volume_24h_tao is market volume (everything the pool swapped), volume_24h_tao user buys and sells only (~0.85x of it). 404 when the subnet has no pool state, and for netuid 0: root has no pool (no price), as /pools leaves it out.

Path Parameters

  • netuidintegermin: 0max: 300required

Responses

GET/pools/{netuid}
curl https://api.backprop.finance/api/pools/{netuid} \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "block": 0,  "ts": "2024-01-15T14:42:00Z",  "tao_emission_per_block": 0,  "tao_emission_pct": 0,  "demand_share_pct": 0,  "emission_share_pct": 0,  "alpha_emission_per_block": 0,  "price_tao": 0,  "liquidity_tao": 0,  "liquidity_alpha": 0,  "total_alpha": 0,  "mcap_tao": 0,  "fdv_tao": 0,  "volume_24h_tao": 0,  "trades_24h": 0,  "data_from_block": 0,  "pool_volume_24h_tao": 0,  "pool_volume_tao": 0,  "change_1h_pct": 0,  "change_24h_pct": 0,  "change_7d_pct": 0}

Get Flow

Every subnet's trading over the last hour (300 blocks) and day (7,200 blocks): TAO bought and sold and the net of the two, distinct buyers, sellers and traders, and trade counts. The trades are /pools' volume_24h_tao's (MEV pairs and same-subnet stake transfers left out), so buy_tao_24h + sell_tao_24h is that volume over the same blocks.

Stored and refreshed every minute, so block is up to ~5 blocks behind the newest; the windows end there. 503 when it has not been refreshed for over an hour, rather than an old hour passed off as the last one.

Responses

GET/subnets/flow
curl https://api.backprop.finance/api/subnets/flow \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "block": 0,  "time": "2024-01-15T14:42:00Z",  "items": [    {      "netuid": 0,      "buy_tao_1h": 0,      "sell_tao_1h": 0,      "net_tao_1h": 0,      "buyers_1h": 0,      "sellers_1h": 0,      "traders_1h": 0,      "trades_1h": 0,      "buys_1h": 0,      "sells_1h": 0,      "buy_tao_24h": 0,      "sell_tao_24h": 0,      "net_tao_24h": 0,      "buyers_24h": 0,      "sellers_24h": 0,      "traders_24h": 0,      "trades_24h": 0,      "buys_24h": 0,      "sells_24h": 0    }  ]}

Get Metagraph

Every live uid of one subnet at its newest block, in uid order. Capped at 256 uids by the chain, so there is no paging. validator_trust is null on a uid with no validator permit, where the chain's value carries no meaning.

role: owner is the subnet owner's hotkey; validator a uid holding a validator permit; miner every other uid.

block or timestamp: the metagraph at the newest epoch at or before that point -- the scores change only at an epoch, so that is what the chain held there -- with the uids, keys and role of that epoch. The epoch is the one /emissions picks for the same point, and so are the uids, keys, consensus, incentive, dividends and emission; X-Epoch-Block says which. The stake columns are null: only the current block's stake is kept. A uid re-registered between the epoch and its snapshot has its scores null, as on /emissions. 422 with history_from_block below the 31 days retention keeps, and for block and timestamp together; 404 before the first epoch.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • rolestringenum: owner | validator | miner

    only uids with this role; omit for all. Any other value is a 422

  • blockintegermin: 0

    a past block, within the last 31 days; omit for the newest

  • timestampstringdate-time

    or a past time, ISO 8601; UTC when no zone is given

Responses

GET/subnets/{netuid}/metagraph
curl https://api.backprop.finance/api/subnets/{netuid}/metagraph \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "uid": 0,    "hotkey": "string",    "coldkey": "string",    "role": "owner",    "validator_trust": 0,    "consensus": 0,    "incentive": 0,    "dividends": 0,    "emission": 0,    "alpha_stake": 0,    "own_stake": 0,    "root_stake": 0,    "total_staked": 0,    "inherited_alpha": 0,    "inherited_root": 0,    "weighted_stake": 0,    "reg_block": 0  }]

Get Emissions

Every uid's consensus, incentive, dividends and emission (alpha per epoch) at a block or a timestamp, with the hotkey and coldkey holding that uid then.

The values change only at an epoch, so they are the newest epoch at or before the point asked -- epoch_block says which -- and that is exactly what the chain held there. 404 before the export's first epoch; 422 with history_from_block below what retention keeps (31 days).

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • blockintegermin: 0

    omit, with timestamp, for the newest epoch

  • timestampstringdate-time

    ISO 8601; UTC when no zone is given

Responses

GET/subnets/{netuid}/emissions
curl https://api.backprop.finance/api/subnets/{netuid}/emissions \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "requested_block": 0,  "requested_timestamp": "2024-01-15T14:42:00Z",  "epoch_block": 0,  "epoch_time": "2024-01-15T14:42:00Z",  "uids": [    {      "uid": 0,      "hotkey": "string",      "coldkey": "string",      "consensus": 0,      "incentive": 0,      "dividends": 0,      "emission_alpha": 0,      "replaced_after_epoch": true    }  ]}

Get Subnet Limit Orders

Limit-order events on one subnet, newest first. Executions only: the chain puts netuid in OrderExecuted and nowhere else, so a cancelled or skipped order cannot be tied to a subnet.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/subnets/{netuid}/limit-orders
curl https://api.backprop.finance/api/subnets/{netuid}/limit-orders \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "block": 0,      "event": "OrderExecuted",      "order_id": "string",      "signer": "string",      "netuid": 0,      "order_type": "string",      "amount_in": 0,      "amount_out": 0,      "skip_reason": 0,      "skip_pallet": 0,      "skip_error": 0,      "enabled": true,      "link": {        "output": {          "asset": "tao",          "netuid": 0,          "hotkey": "string",          "total": 0,          "expires_at": "2024-01-15T14:42:00Z",          "recorded_block": 0,          "status": "open",          "consumed_by": "string",          "consumed_amount": 0,          "undrawn": 0,          "closed_block": 0        },        "drew_from": {          "provider": "string",          "amount": 0,          "undrawn": 0,          "block": 0        }      }    }  ],  "limit": 0,  "next": "string"}

Get Prices

Alpha price in TAO at every block of [start_block, end_block], both inclusive, one page at a time. The price is the pool ratio SubnetTAO / SubnetAlphaIn, the same one /pools/{netuid} reports as price_tao.

Pages run newest to oldest, at most 100 rows each, oldest first inside a page (as /ohlcv pages); follow next for older blocks until it is null. With neither bound the range is the newest 100 blocks -- one page. The response echoes the range it resolved. The range has no length limit -- each page reads at most limit rows of it; a block the export has not reached yet is simply absent. Once retention has cut, X-History-From-Block is the first block PostgreSQL keeps; a range starting below it is read whole from Amp over Flight, marked X-Data-Source: flight.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • start_blockintegermin: 0

    default: 99 blocks before end_block (100 blocks)

  • end_blockintegermin: 0

    default: the subnet's latest block

  • cursorstring

    next from the previous page; omit for the first (newest)

  • limitintegermin: 1max: 100default: 100

    rows per page, at most 100

Responses

GET/subnets/{netuid}/prices
curl https://api.backprop.finance/api/subnets/{netuid}/prices \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "start_block": 0,  "end_block": 0,  "prices": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "price_tao": 0    }  ],  "limit": 0,  "next": "string"}

Get Candles

OHLCV candles of the alpha price in TAO, one page at a time.

Range: a time range (start, end) or a block range (start_block, end_block), not both; either bound may be omitted. No range is everything exported. Newest to oldest throughout: a page holds at most limit candles (default 100; up to 1000 from 1h up, fewer under 1h, where a page reads every block), newest first, and next leads to the older ones until it is null. A block range clips its edge candles to the blocks inside it.

OHLC is the pool's spot price at every block of the candle; volume is every trade against the pool -- buys, sells and cross-subnet swap legs, stake transfers excluded, MEV included -- in TAO and alpha. Candles align to UTC: days at 00:00, weeks on Monday. The newest candle is still open.

Older than X-History-From-Block (set once retention has cut) PostgreSQL keeps whole hours and minutes only: 1h and up is served from the hours, under 1h from the minutes, a range edge inside one moving to its boundary. Both go back to the dTAO launch. Under 1h a page wholly below the oldest stored minute is a 422 naming it.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • intervalstringdefault: 1henum: 1m | 5m | 15m | 30m | 1h | 4h | 1d | 1w
  • startstringdate-time

    time range start, ISO 8601, UTC when no zone

  • endstringdate-time

    time range end, exclusive

  • start_blockintegermin: 0

    block range start, inclusive

  • end_blockintegermin: 0

    block range end, inclusive

  • cursorstring

    next from the previous page

  • limitintegermin: 1max: 1000default: 100

    candles per page: at most 1000 from 1h up, under 1h 1000 (1m), 300 (5m), 200 (15m), 100 (30m)

Responses

GET/subnets/{netuid}/ohlcv
curl https://api.backprop.finance/api/subnets/{netuid}/ohlcv \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "interval": "string",  "items": [    {      "time": "2024-01-15T14:42:00Z",      "open": 0,      "high": 0,      "low": 0,      "close": 0,      "volume_tao": 0,      "volume_alpha": 0,      "trades": 0,      "first_block": 0,      "last_block": 0,      "alpha_in": 0,      "alpha_out": 0    }  ],  "limit": 0,  "next": "string"}

Get Validators

Validator yield table, best gross 7d APY first: every uid holder with a validator permit -- the subnet owner's hotkey too, role "owner" -- and every parent routing stake to one -- the big operators hold no uid and validate through a child. parents and children give the childkey links; a row with parents is such a child, and the rate its stakers get is the parents'. parents holds the largest 10 by proportion and parents_total counts them all (page them with /validators/{hotkey}/parents?netuid=); children is whole, the chain allows at most 5. all=true adds hotkeys still earning in the window that are neither.

APY: per-epoch dividend over stake, annualised simply (not compounded) as rate x 2,628,000 / tempo -- 2,628,000 = 7,200 blocks a day (12 s blocks) x

  1. net_* is after the validator's take, gross_* before it. Alpha APY

is alpha earned per alpha staked; root APY is TAO per TAO, the alpha root dividend valued at the subnet's price at each epoch.

Each window (1h, 1d, 7d, 30d = 300, 7,200, 50,400, 216,000 blocks) counts back from the subnet's newest epoch and averages over every epoch the subnet ran in it, an epoch the validator earned nothing in counting as 0 (taostats' convention). epochs_30d below the subnet's own count -- 2,182 on SN1 (tempo 99), 600 at tempo 360 -- means the validator was not in all of them, and its APY is scaled down by that share. Null: the subnet stopped paying dividends, or average stake under 1 alpha / 1 TAO.

netuid 0 (root): every hotkey with a root rate, largest root stake first. Root stake earns on every subnet at once, so its root APY is the sum of its root APY on each, every subnet annualised by its own tempo. Only the root fields are filled -- direct_root_live, inherited_root, take_pct, *_root_apy_* -- and it is recomputed every 10 minutes, not per block. No uid or permit is tracked on root: permit=true returns nothing.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • permitboolean
  • allbooleandefault: false

Responses

GET/subnets/{netuid}/validators
curl https://api.backprop.finance/api/subnets/{netuid}/validators \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "tempo": 0,    "latest_epoch_block": 0,    "uid": 0,    "hotkey": "string",    "role": "string",    "has_validator_permit": true,    "direct_alpha_last_epoch": 0,    "inherited_alpha": 0,    "direct_root_live": 0,    "inherited_root": 0,    "stake_weight": 0,    "validator_trust": 0,    "take_pct": 0,    "net_apy_1h_pct": 0,    "gross_apy_1h_pct": 0,    "net_apy_1d_pct": 0,    "gross_apy_1d_pct": 0,    "net_apy_7d_pct": 0,    "gross_apy_7d_pct": 0,    "net_apy_30d_pct": 0,    "gross_apy_30d_pct": 0,    "net_root_apy_7d_pct": 0,    "gross_root_apy_7d_pct": 0,    "net_root_apy_30d_pct": 0,    "gross_root_apy_30d_pct": 0,    "net_root_apy_1h_pct": 0,    "gross_root_apy_1h_pct": 0,    "net_root_apy_1d_pct": 0,    "gross_root_apy_1d_pct": 0,    "epochs_1h": 0,    "epochs_1d": 0,    "epochs_7d": 0,    "epochs_30d": 0,    "net_alpha_ppe_7d_pct": 0,    "net_alpha_ppe_30d_pct": 0,    "gross_alpha_ppe_7d_pct": 0,    "gross_alpha_ppe_30d_pct": 0,    "net_root_ppe_7d_pct": 0,    "net_root_ppe_30d_pct": 0,    "gross_root_ppe_7d_pct": 0,    "gross_root_ppe_30d_pct": 0,    "parents": [],    "parents_total": 0,    "children": []  }]

Get Validators Apy

Validator APY over a long window, best gross alpha APY first: every hotkey that earned dividends in it. The 1h-30d windows are on /subnets/{netuid}/validators.

From per-day sums of the epoch dividends (validator_yield_daily), and annualised by time rather than by tempo, which can change over a year: return over the window x 2,628,000 blocks (365 days) / its length, simple. Epochs a validator missed count as 0, as on the short windows. The window ends at the subnet's newest read epoch and starts a year back (1y), at the subnet's current registration, or where the indexed history begins, whichever is latest -- since_block says which; with less than a year of data 1y equals all. Null on dust (average stake under 1 alpha / 1 TAO); all=true keeps those rows.

netuid 0 (root): each hotkey's root yield over every subnet -- each subnet's root return over its own window, summed and annualised over the longest of them, so a subnet younger than the window adds only the days it existed -- with its root stake now; largest root stake first, recomputed hourly.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • windowstringdefault: 1yenum: 1y | all

    1y: the last 365 days; all: since the subnet's registration

  • allbooleandefault: false

Responses

GET/subnets/{netuid}/validators/apy
curl https://api.backprop.finance/api/subnets/{netuid}/validators/apy \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "window": "1y",  "validators": [    {      "netuid": 0,      "hotkey": "string",      "epochs": 0,      "take_pct": 0,      "net_apy_pct": 0,      "gross_apy_pct": 0,      "net_root_apy_pct": 0,      "gross_root_apy_pct": 0,      "since_block": 0,      "to_block": 0,      "direct_root_live": 0,      "subnets": 0    }  ]}

Get Holders

Coldkeys holding alpha on the subnet, largest first, live from wallet_balance -- every staked coldkey: the sync walks the chain's maps once for those the export never saw trade. /subnets/{netuid}/holder-stats counts them by role.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10

Responses

GET/subnets/{netuid}/holders
curl https://api.backprop.finance/api/subnets/{netuid}/holders \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "coldkey": "string",      "alpha": 0,      "cost_basis_tao": 0,      "last_change_block": 0    }  ],  "limit": 0,  "next": "string"}

Get Swap Quote

What a swap of amount would return on the subnet's pool now, and its slippage against the spot price -- taostats' /api/dtao/slippage/v1.

The pool is a weighted Balancer pool with a fee, so reserves alone do not give the output: this applies the chain's own pool math to the reserves, weight and fee rate at the pool's newest block, and matches the chain's swap simulation to the rao.

output_amount and slippage_pct are net of the pool fee (fee_rate_pct, 0.0504% on every subnet today): slippage here is fee plus price impact, so it is never below the fee -- 0.001 TAO into SN64 reads 0.0503%. fee is that fee in the input token.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • amountnumbermax: 21000000required

    what goes in: TAO for tao_to_alpha, alpha for alpha_to_tao

  • directionstringenum: tao_to_alpha | alpha_to_taorequired

Responses

GET/subnets/{netuid}/slippage
curl https://api.backprop.finance/api/subnets/{netuid}/slippage?direction=tao_to_alpha \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "block": 0,  "time": "2024-01-15T14:42:00Z",  "direction": "tao_to_alpha",  "input_amount": 0,  "output_amount": 0,  "expected_output": 0,  "diff": 0,  "slippage_pct": 0,  "fee": 0,  "fee_rate_pct": 0,  "alpha_price": 0,  "pool_weight": 0}

Get Trades

Every trade against the subnet's pool, newest first: buys and sells, and the legs of cross-subnet stake swaps (kind = swap), which trade against this pool just the same. Transfers between hotkeys or coldkeys are not trades and are in /subnets/{netuid}/transfers. Both legs of a detected MEV pair are included, flagged mev; include_mev=false leaves them out, and the rest are the trades /pools' volume_24h_tao counts.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • kindstringenum: trade | swap

    trade for buys and sells only, swap for cross-subnet swap legs only; omit for both

  • include_mevbooleandefault: true

    both legs of every detected MEV pair are returned, flagged mev; false leaves them out

  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/subnets/{netuid}/trades
curl https://api.backprop.finance/api/subnets/{netuid}/trades \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "netuid": 0,      "time": "2024-01-15T14:42:00Z",      "address": "string",      "validator": "string",      "type": "buy",      "kind": "trade",      "mev": true,      "price": 0,      "tao_amount": 0,      "alpha_amount": 0    }  ],  "limit": 0,  "next": "string"}

Get Transfers

Stake movements touching the subnet on either side, newest first, labelled by what changed. Without kind: internal + external; cross_subnet_swap only when named. /stake-movements has the same rows under the chain's event names.

kind, from the two sides of the movement, first match wins: external the coldkey changed (stake given to another wallet, whatever else changed); internal same coldkey, same subnet (moved to another hotkey -- never touches the pool); cross_subnet_swap same coldkey, another subnet (unstaked on one pool, staked on the other).

Paged by whole blocks: the cursor is a block number, and a page can run over limit by the rest of its last block. The old block:extrinsic cursor dropped rows that shared one -- 1,530 of 3,317 do.

tao_amount is TAO: the chain reports every stake movement in TAO. This field was alpha_amount until that was found.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • kindstringenum: internal | external | cross_subnet_swap
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/subnets/{netuid}/transfers
curl https://api.backprop.finance/api/subnets/{netuid}/transfers \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "kind": "internal",      "tao_amount": 0,      "from_netuid": 0,      "to_netuid": 0,      "from_coldkey": "string",      "to_coldkey": "string",      "from_hotkey": "string",      "to_hotkey": "string"    }  ],  "limit": 0,  "next": "string"}

Get Subnet Events

Subnet registrations and dissolves on every netuid, newest first.

removed is NetworkRemoved: the subnet is deregistered and its stakers are paid back in TAO until cleanup_block (refunded_tao, refunded_wallets). registered is NetworkRegisteredAt: the subnet now on the netuid. Before spec 432 the two land in one block; since, the new subnet registers at the cleanup block, ~25 blocks after the removal (a removal the runtime made alone can leave the netuid empty a while).

Both kinds carry every field; one that belongs to the other kind is null. Otherwise null means the value predates its source: time before dTAO (block 4,920,351), the owner before block 9,135,450, refunded_* before spec 411 (block 8,283,784); replaces_removed_block is null for a netuid's first subnet. Each field's description says which.

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • kindstringenum: registered | removed

    registered or removed only; omit for both

  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/subnets/events
curl https://api.backprop.finance/api/subnets/events \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "kind": "registered",      "netuid": 0,      "block": 0,      "time": "2024-01-15T14:42:00Z",      "cleanup_block": 0,      "registered_block": 0,      "replaces_removed_block": 0,      "refunded_tao": 0,      "refunded_wallets": 0,      "owner_hotkey": "string",      "owner_coldkey": "string"    }  ],  "limit": 0,  "next": "string"}

Get Subnet Events One

/subnets/events for one netuid: every subnet that held it. A netuid never freed has one event, its first registration -- SN1's, at block 1,497,824, is from before dTAO and before the uid history, so its time and owner are null along with the removal-only fields.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • kindstringenum: registered | removed

    registered or removed only; omit for both

  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/subnets/{netuid}/events
curl https://api.backprop.finance/api/subnets/{netuid}/events \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "kind": "registered",      "netuid": 0,      "block": 0,      "time": "2024-01-15T14:42:00Z",      "cleanup_block": 0,      "registered_block": 0,      "replaces_removed_block": 0,      "refunded_tao": 0,      "refunded_wallets": 0,      "owner_hotkey": "string",      "owner_coldkey": "string"    }  ],  "limit": 0,  "next": "string"}

Get Registration

Whether and at what cost a subnet can be registered: the lock cost at the newest block, the last registration, the block the next window opens, and the cost expected then.

The cost is the runtime's own formula: twice the last lock right after a registration, falling by last lock / lock_reduction_interval_blocks a block down to min_lock_cost_tao. A window opens rate_limit_blocks after the last registration, and a registration at that block pays 1.25x the last lock (10,800 / 14,400 of the way down, on 2026-11-25). The parameters are read from the chain every ~30 s (as_of_block) and the cost carried forward to block; 503 when they have not been read for ten minutes.

Responses

GET/subnets/registration
curl https://api.backprop.finance/api/subnets/registration \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "block": 0,  "as_of_block": 0,  "lock_cost_tao": 0,  "min_lock_cost_tao": 0,  "rate_limit_blocks": 0,  "lock_reduction_interval_blocks": 0,  "last_registration": {    "block": 0,    "lock_tao": 0,    "extrinsic_idx": 0,    "time": "2024-01-15T14:42:00Z",    "coldkey": "string",    "hotkey": "string",    "netuid": 0,    "pruned_netuid": 0,    "queued": true  },  "next_window_block": 0,  "window_open": true,  "blocks_until_window": 0,  "expected_lock_cost_at_window_tao": 0,  "subnets": 0,  "subnet_limit": 0}

Get Registration Attempts

Every register_network call since dTAO (block 4,920,351), failed ones included, newest first: block, position in the block, signer, the account it ran as, and how it ended.

A call made through Proxy.proxy or a Utility batch is its own row, with call_path and wrappers saying where it sat; since ~block 9.48M every winner came that way, among hundreds of attempts in the block the window opened. Most attempts fail with SubtensorModule.NetworkTxRateLimitExceeded: sent before the window. A transaction still waiting in a node's pool is not here -- only what is in a block.

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • coldkeystring

    SS58; the account the call ran as, a proxy's real account or a multisig's

  • signerstring

    SS58; the extrinsic's signer

  • statusstringenum: ok | failed

    omit for every attempt

  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/subnets/registration/attempts
curl https://api.backprop.finance/api/subnets/registration/attempts \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "extrinsic_idx": 0,      "call_path": "string",      "wrappers": "string",      "call": "register_network",      "signer": "string",      "coldkey": "string",      "hotkey": "string",      "has_identity": true,      "status": "ok",      "error": "string",      "netuid": 0,      "pruned_netuid": 0,      "queued": true,      "lock_tao": 0    }  ],  "limit": 0,  "next": "string"}

Get All Trades

/subnets/{netuid}/trades without the netuid: the newest trades on every subnet. Same rows, cursor, kind and include_mev.

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • kindstringenum: trade | swap

    trade for buys and sells only, swap for cross-subnet swap legs only; omit for both

  • include_mevbooleandefault: true

    both legs of every detected MEV pair are returned, flagged mev; false leaves them out

  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/subnets/trades
curl https://api.backprop.finance/api/subnets/trades \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "netuid": 0,      "time": "2024-01-15T14:42:00Z",      "address": "string",      "validator": "string",      "type": "buy",      "kind": "trade",      "mev": true,      "price": 0,      "tao_amount": 0,      "alpha_amount": 0    }  ],  "limit": 0,  "next": "string"}

Get All Transfers

/subnets/{netuid}/transfers without the netuid: the newest stake movements on every subnet. Same rows, cursor and kind.

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • kindstringenum: internal | external | cross_subnet_swap
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/subnets/transfers
curl https://api.backprop.finance/api/subnets/transfers \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "kind": "internal",      "tao_amount": 0,      "from_netuid": 0,      "to_netuid": 0,      "from_coldkey": "string",      "to_coldkey": "string",      "from_hotkey": "string",      "to_hotkey": "string"    }  ],  "limit": 0,  "next": "string"}

Get Alpha

alpha_in, alpha_out and total_alpha = alpha_in + alpha_out, in alpha, at each subnet's newest block, by netuid. Not paged -- one row per subnet.

alpha_in is the pool's side (SubnetAlphaIn) and alpha_out everything outside it (SubnetAlphaOut). Their sum is the total_alpha /pools/{netuid} reports. netuid 0 is root: the chain keeps both counters for it too, though it has no swap pool.

An unknown netuid returns an empty list, as /hyperparameters does.

Query Parameters

  • netuidintegermin: 0max: 300

    omit for every subnet

Responses

GET/alpha
curl https://api.backprop.finance/api/alpha \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "block": 0,    "time": "2024-01-15T14:42:00Z",    "alpha_in": 0,    "alpha_out": 0,    "total_alpha": 0  }]

List Subnet Overview

Every subnet in netuid order: on-chain name, price, pool, supply, FDV, market cap, price changes, sparkline, emission, age, a pending owner coldkey swap and trading activity. No USD figures, no other identity field (see /subnets/identity) and no curated metadata. netuid 0 is root and has no pool, so it is not listed.

Price, reserves, supply, FDV and market cap are read on every call. Name, price history, sparkline, emission, swaps and trading activity change slowly and are up to SUBNET_OVERVIEW_SLOW_TTL_SECS (5 min) old; the price changes are taken against the current price.

Query Parameters

  • idsarray string[]

    netuids, comma-separated (ids=1,2) or repeated (ids=1&ids=2); omit for all

Responses

GET/subnets
curl https://api.backprop.finance/api/subnets \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "success": true,  "body": [    {      "id": 0,      "name": "string",      "networkRegisteredAtTimestamp": 0,      "taoInPool": "string",      "alphaInPool": "string",      "alphaOutPool": "string",      "circulatingSupply": "string",      "isColdkeySwapScheduled": true,      "coldkeySwapScheduledExtrinsic": {        "block": 0,        "extrinsicIndex": 0,        "timestamp": 0,        "executionBlock": 0      },      "age": "string",      "taoEmissionPct": 0,      "priceChange1H": "string",      "priceChange24H": "string",      "priceChange7D": "string",      "sparkline": {        "start": 0,        "step": 0,        "values": [          0        ],        "times": [          0        ],        "end": 0      },      "priceInTAO": "string",      "fdvInTAO": 0,      "mcapInTAO": "string",      "volume24h": "string",      "priceVolumeMetrics": {        "additionalProp1": {          "subnetId": 0,          "distinctStakers": 0,          "distinctUnstakers": 0,          "distinctStakersOrUnstakers": 0,          "stakingTransactions": 0,          "unstakingTransactions": 0,          "totalBuyVolumeTao": "string",          "totalSellVolumeTao": "string"        }      },      "marketCapTAO7d": 0,      "marketCapTAO1d": 0,      "marketCapTAO1h": 0,      "fdvTAO7d": 0,      "fdvTAO1d": 0,      "fdvTAO1h": 0,      "isActive": true    }  ]}

List Price Moves

The limit newest price moves across every subnet, newest first: an alpha price 5% or more up or down against 75 blocks (~15 min, 15min) or 300 blocks (~1 h, 1hour) earlier, checked every 10th block. Each price is the lowest of the 5 blocks ending at its block, as Backprop's. 15% or more is an emergency. A subnet has at most one move per window and cooldown (75 or 300 blocks). 503 when Redis, where the moves are kept, is unavailable.

Query Parameters

  • limitintegermin: 1max: 100default: 20

    moves to return; at most the 100 kept

Responses

GET/subnets/important-price-changes
curl https://api.backprop.finance/api/subnets/important-price-changes \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "success": true,  "body": [    {      "id": "string",      "interval": "15min",      "timestamp": "string",      "pctChange": "string",      "isEmergency": true,      "subnetId": 0,      "oldPrice": "string",      "newPrice": "string",      "newBlockNumber": 0,      "oldBlockNumber": 0,      "volumeInPeriod": "string"    }  ]}

List Price Snapshots

Every subnet's alpha price in TAO at its newest block, and at exactly 300, 7,200 and 50,400 blocks before it (~1h, ~24h, ~7d) -- null when the subnet was registered later than that. netuid 0 is root and has no price, so it is not listed. Cached 12 s: identical requests within that share one read.

Responses

GET/subnets/prices
curl https://api.backprop.finance/api/subnets/prices \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "subnet_id": 0,    "block_number": 0,    "price_tao": 0,    "price_1h_ago": 0,    "price_24h_ago": 0,    "price_7d_ago": 0  }]

Get Price Snapshot

One subnet's row of /subnets/prices. 404 when it has no pool state in the newest 300 blocks, and for netuid 0 (root has no price).

Path Parameters

  • netuidintegermin: 0max: 300required

Responses

GET/subnets/prices/{netuid}
curl https://api.backprop.finance/api/subnets/prices/{netuid} \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "subnet_id": 0,  "block_number": 0,  "price_tao": 0,  "price_1h_ago": 0,  "price_24h_ago": 0,  "price_7d_ago": 0}

List Subnet Identities

Every subnet that has set an identity, in netuid order -- 122 of 129 on 2026-10-26. A subnet without one is absent, not listed with empty fields.

Responses

GET/subnets/identity
curl https://api.backprop.finance/api/subnets/identity \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "subnet_name": "string",    "github_repo": "string",    "subnet_contact": "string",    "subnet_url": "string",    "discord": "string",    "description": "string",    "logo_url": "string",    "additional": "string",    "block_updated": 0  }]

Get Subnet Identity

One subnet's identity. 404 when it has not set one.

Path Parameters

  • netuidintegermin: 0max: 300required

Responses

GET/subnets/identity/{netuid}
curl https://api.backprop.finance/api/subnets/identity/{netuid} \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "subnet_name": "string",  "github_repo": "string",  "subnet_contact": "string",  "subnet_url": "string",  "discord": "string",  "description": "string",  "logo_url": "string",  "additional": "string",  "block_updated": 0}

List Holder Stats

/subnets/{netuid}/holder-stats for every subnet with holders, root included, netuid order, all as of the same block. Computed once per wallet_balance cursor move (about a minute) and kept in Redis.

Responses

GET/subnets/holder-stats
curl https://api.backprop.finance/api/subnets/holder-stats \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "block": 0,  "time": "2024-01-15T14:42:00Z",  "items": [    {      "netuid": 0,      "block": 0,      "time": "2024-01-15T14:42:00Z",      "holders": 0,      "alpha": 0,      "validator_holders": 0,      "validator_alpha": 0,      "miner_holders": 0,      "miner_alpha": 0,      "owner_holders": 0,      "owner_alpha": 0,      "trader_holders": 0,      "trader_alpha": 0,      "primary_validator_holders": 0,      "primary_validator_alpha": 0,      "primary_miner_holders": 0,      "primary_miner_alpha": 0    }  ]}

Get Holder Stats

How many coldkeys hold the subnet's alpha and how much, in total and by their role on the subnet: validator (a uid with a validator permit), miner (a uid without), owner (the owner hotkey's uid), trader (no uid there). Roles overlap, so their figures can add up to more than the totals. From wallet_balance, as of block: the same rows as /subnets/holder-stats. 404 when the subnet has no holder.

Path Parameters

  • netuidintegermin: 0max: 300required

Responses

GET/subnets/{netuid}/holder-stats
curl https://api.backprop.finance/api/subnets/{netuid}/holder-stats \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "block": 0,  "time": "2024-01-15T14:42:00Z",  "holders": 0,  "alpha": 0,  "validator_holders": 0,  "validator_alpha": 0,  "miner_holders": 0,  "miner_alpha": 0,  "owner_holders": 0,  "owner_alpha": 0,  "trader_holders": 0,  "trader_alpha": 0,  "primary_validator_holders": 0,  "primary_validator_alpha": 0,  "primary_miner_holders": 0,  "primary_miner_alpha": 0}

Get Holder Stats History

The figures of /subnets/{netuid}/holder-stats recorded once an hour, oldest first. History starts when the recording job first ran; an hour it missed (backend down) is absent, not filled in. At most 180 days a request.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • startstringdate-time

    ISO 8601, UTC when no zone; default 30 days before end

  • endstringdate-time

    exclusive; default now

Responses

GET/subnets/{netuid}/holder-stats/history
curl https://api.backprop.finance/api/subnets/{netuid}/holder-stats/history \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "start": "2024-01-15T14:42:00Z",  "end": "2024-01-15T14:42:00Z",  "items": [    {      "netuid": 0,      "block": 0,      "time": "2024-01-15T14:42:00Z",      "holders": 0,      "alpha": 0,      "validator_holders": 0,      "validator_alpha": 0,      "miner_holders": 0,      "miner_alpha": 0,      "owner_holders": 0,      "owner_alpha": 0,      "trader_holders": 0,      "trader_alpha": 0,      "primary_validator_holders": 0,      "primary_validator_alpha": 0,      "primary_miner_holders": 0,      "primary_miner_alpha": 0    }  ]}

Get Subnet Statistics

Holders of the subnet's alpha now (as /subnets/{netuid}/holder-stats; null without any), and one point per candle of the range: price, alpha in and out of the pool, market cap and FDV in TAO, at the candle's last block.

Pages run newest to oldest, oldest first inside a page; follow next for older points until it is null (as /ohlcv). Market cap is null where the supply is not kept: hours stored before it was recorded, and blocks older than subnet_alpha_out's retention. 404 when the subnet has no pool.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • intervalstringdefault: 1henum: 1h | 4h | 1d | 1w
  • startstringdate-time

    ISO 8601, UTC when no zone; default: the first block exported

  • endstringdate-time

    exclusive; default: now

  • cursorstring

    next from the previous page

  • limitintegermin: 1max: 1000default: 720

    points per page; 720 hours is 30 days

Responses

GET/subnets/{netuid}/statistics
curl https://api.backprop.finance/api/subnets/{netuid}/statistics \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "netuid": 0,  "interval": "string",  "holders": {    "netuid": 0,    "block": 0,    "time": "2024-01-15T14:42:00Z",    "holders": 0,    "alpha": 0,    "validator_holders": 0,    "validator_alpha": 0,    "miner_holders": 0,    "miner_alpha": 0,    "owner_holders": 0,    "owner_alpha": 0,    "trader_holders": 0,    "trader_alpha": 0,    "primary_validator_holders": 0,    "primary_validator_alpha": 0,    "primary_miner_holders": 0,    "primary_miner_alpha": 0  },  "items": [    {      "time": "2024-01-15T14:42:00Z",      "block": 0,      "price_tao": 0,      "alpha_in": 0,      "alpha_out": 0,      "total_alpha": 0,      "market_cap_tao": 0,      "fdv_tao": 0    }  ],  "limit": 0,  "next": "string"}

Get Top Position Changes

The 10 wallets whose position on the subnet gained the most TAO value over the range, and the 10 that lost the most, as Backprop's: alpha x price at the newest balance snapshot (every 300 blocks, so up to ~1 h behind) minus alpha x price 7200 (1d) or 50400 (7d) blocks before it. Trades, emission and the price move all count; a position opened or closed in the range counts from or to 0 (Backprop leaves closed ones out). Empty lists for a subnet with no change. 503 when Redis, where a job keeps the lists, is unavailable or the job has not run yet.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • timeRangestringenum: 1d | 7drequired

Responses

GET/subnets/{netuid}/statistics/top-position-changes
curl https://api.backprop.finance/api/subnets/{netuid}/statistics/top-position-changes?timeRange=1d \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "success": true,  "body": {    "topGainers": [      {        "address": "string",        "amountInTAO": "string",        "amountInUSD": "string"      }    ],    "topLosers": [      {        "address": "string",        "amountInTAO": "string",        "amountInUSD": "string"      }    ],    "blockNumber": 0,    "fromBlockNumber": 0  }}

Get Top Purchases

The 10 biggest buys (by TAO paid) and the 10 biggest sells (by TAO received) against the subnet's pool over the last 7200 (1d) or 50400 (7d) blocks, in Backprop's shape: inAmt went into the pool, outAmt came out. The trades of /subnets/{netuid}/trades, with its kind and include_mev: transfers of stake within the subnet are not trades and stay out, where Backprop counts them (on SN64 they were 35 of the 50 biggest 7d buy rows). 503 before the trades are exported.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • timeRangestringenum: 1d | 7drequired
  • kindstringenum: trade | swap

    trade for buys and sells only, swap for cross-subnet swap legs only; omit for both

  • include_mevbooleandefault: true

    legs of detected MEV pairs count, flagged mev; false leaves them out

Responses

GET/subnets/{netuid}/statistics/top-purchases
curl https://api.backprop.finance/api/subnets/{netuid}/statistics/top-purchases?timeRange=1d \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "success": true,  "body": {    "topBuyTrades": [      {        "address": "string",        "inAmt": "string",        "outAmt": "string",        "id": "string",        "blockNumber": 0,        "kind": "trade",        "mev": true      }    ],    "topSellTrades": [      {        "address": "string",        "inAmt": "string",        "outAmt": "string",        "id": "string",        "blockNumber": 0,        "kind": "trade",        "mev": true      }    ],    "fromBlockNumber": 0,    "toBlockNumber": 0  }}

Get Wallet Transactions

Everything that moves one coldkey's (SS58) balances, newest first: trades, stake movements, TAO transfers, extrinsic fees, alpha burns, stake the chain adds by itself, refunds of a dissolved subnet, key swaps and subnet registrations. kind takes one label or a group of them, and the groups split the history with nothing in two:

  • trade = buy + sell (swap_fee is the pool's, in swap_fee_asset)
  • transfer = transfer_internal + transfer_external + cross_subnet_swap
  • tao = deposit + withdraw + dissolve_refund (a dissolved subnet's alpha paid back as TAO; netuid is that subnet)
  • fee = the fee of every extrinsic the wallet paid for, tip included, whatever it called; a hotkey's calls (set_weights, serve_axon...) are paid by, and listed under, its coldkey
  • alpha = burn + recycle + auto_stake (a miner's incentive the chain stakes for its owner) + root_claim (root dividends staked onto root)
  • custody = coldkey_swap (everything the old coldkey held moves to the new one) + hotkey_swap (the coldkey's hotkey and its stake move to a new key; listed for the owner only, not for nominators)
  • registration = subnet_registration (the TAO locked by a successful register_network; its fee is a fee row)

Without kind, every group. A wallet that sets weights pays thousands of fees a day: pass a group to page past them.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • kindstringenum: buy | sell | transfer_internal | transfer_external | cross_subnet_swap | deposit | withdraw | dissolve_refund | fee | burn | recycle | auto_stake | root_claim | coldkey_swap | hotkey_swap | subnet_registration | trade | transfer | tao | alpha | custody | registration
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/wallets/{coldkey}/transactions
curl https://api.backprop.finance/api/wallets/{coldkey}/transactions \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "block": 0,      "kind": "buy",      "direction": "in",      "netuid": 0,      "to_netuid": 0,      "alpha_amount": 0,      "tao_amount": 0,      "price": 0,      "hotkey": "string",      "to_hotkey": "string",      "counterparty": "string",      "swap_fee": 0,      "swap_fee_asset": "tao"    }  ],  "limit": 0,  "next": "string"}

Get Wallet Limit Orders

Limit-order events signed by one coldkey (SS58), newest first. Executions and cancellations: OrderSkipped carries no signer, so an order that only ever failed cannot be attributed to a wallet.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/wallets/{coldkey}/limit-orders
curl https://api.backprop.finance/api/wallets/{coldkey}/limit-orders \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "block": 0,      "event": "OrderExecuted",      "order_id": "string",      "signer": "string",      "netuid": 0,      "order_type": "string",      "amount_in": 0,      "amount_out": 0,      "skip_reason": 0,      "skip_pallet": 0,      "skip_error": 0,      "enabled": true,      "link": {        "output": {          "asset": "tao",          "netuid": 0,          "hotkey": "string",          "total": 0,          "expires_at": "2024-01-15T14:42:00Z",          "recorded_block": 0,          "status": "open",          "consumed_by": "string",          "consumed_amount": 0,          "undrawn": 0,          "closed_block": 0        },        "drew_from": {          "provider": "string",          "amount": 0,          "undrawn": 0,          "block": 0        }      }    }  ],  "limit": 0,  "next": "string"}

Get Wallet Staking Actions

What one coldkey (SS58) did to its stake, newest first: stake, unstake, move, transfer, swap, burn, recycle, claim_root. Identified by block and extrinsic index.

claim_root is a root dividend redeemed and staked onto root (netuid 0), one row per validator (hotkey), in TAO: the same rows as /transactions' root_claim. From spec 441 (block 8,765,683) on; a claim the chain runs itself has no extrinsic_idx and no tx_fee.

Two fees. swap_fee is the pool's, on stake and unstake only, in the asset that went in -- TAO on a stake, alpha on an unstake (swap_fee_asset). tx_fee is the extrinsic's transaction fee in TAO, tip included; every action of one batch extrinsic carries the same figure, so sum it per (block, extrinsic_idx), not per row.

Paged by whole blocks: a page can run over limit by the rest of its last block, and the cursor is a block number. Covers the rows the export holds.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • actionstringenum: stake | unstake | move | transfer | swap | burn | recycle | claim_root

    omit for every action

  • cursorstring

    next from the previous page -- a block number

  • limitintegermin: 1max: 100default: 10
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/wallets/{coldkey}/staking-actions
curl https://api.backprop.finance/api/wallets/{coldkey}/staking-actions \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "extrinsic_idx": 0,      "action": "stake",      "direction": "in",      "netuid": 0,      "hotkey": "string",      "to_netuid": 0,      "to_hotkey": "string",      "counterparty": "string",      "alpha_amount": 0,      "tao_amount": 0,      "price": 0,      "swap_fee": 0,      "swap_fee_asset": "tao",      "tx_fee": 0    }  ],  "limit": 0,  "next": "string"}

Get Wallet Balance

The coldkey's free TAO (SS58): System.Account.free, kept per block from balance events and checked against the chain to the rao. The same figure as /positions' netuid -1 row, on its own.

Path Parameters

  • coldkeystringrequired

Responses

GET/wallets/{coldkey}/balance
curl https://api.backprop.finance/api/wallets/{coldkey}/balance \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "coldkey": "string",  "free_tao": 0,  "last_change_block": 0,  "synced_block": 0}

Get Wallet Balance History

The coldkey's balance (SS58) over window, newest first, one point per interval, 1h, 4h or 1d for 1d, 7d and 30d (defaults 1h, 1h, 4h), 1d only for all; all with another is a 422. limit (default and at most 1,000) puts any bounded window in one page -- 30d hourly is 720 points -- and pages all past 1,000 days. Each point is the balance at the end of its interval:

  • free_tao: the same chain-read System.Account.free as /balance, kept hour by hour whenever it changes; 0 before since_block (an account with no history, say one that staked all it had, held none), null before staked_since_block.
  • staked_tao: alpha held on every subnet, root included, times the subnet's price then, in TAO; null before staked_since_block, where the stake history starts (all starts there too). The newest point is /positions' alpha_held x price summed over netuid >= 0.
  • total_tao: the two added; null when either is.

Intervals are aligned to multiples of themselves (a day starts at a multiple of 7,200 blocks); the newest holds the synced block and is still running. Free TAO is as of the block before the interval's end, stake as of that block.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • windowstringdefault: 7denum: 1d | 7d | 30d | all

    how far back

  • intervalstringenum: 1h | 4h | 1d

    one point per; omit for the window's default (1d: 1h, 7d: 1h, 30d: 4h, all: 1d)

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 1000default: 1000

Responses

GET/wallets/{coldkey}/balance/history
curl https://api.backprop.finance/api/wallets/{coldkey}/balance/history \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "coldkey": "string",  "window": "string",  "interval": "string",  "synced_block": 0,  "since_block": 0,  "staked_since_block": 0,  "points": [    {      "block": 0,      "free_tao": 0,      "staked_tao": 0,      "total_tao": 0    }  ],  "limit": 0,  "next": "string"}

Get Wallet Pnl History

The coldkey's PnL (SS58) over window, newest first, on /balance/history's windows, intervals and paging. Each point holds running totals since since_block (the engine's a0), every subnet summed, at the end of its interval, each priced at that block -- not today's price:

  • realized, emission_income, adjustment: as /pnl's, as levels.
  • unrealized: alpha x price - cost basis; an estimated cost is priced at its seed block, as /positions' avg_cost.
  • total: realized + unrealized + emission_income. A change between two points is the difference of their levels; /pnl's total over a window is the same difference taken at the synced block.

Points before since_block are null; ts is the time of the block a point is read at.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • windowstringdefault: 7denum: 1d | 7d | 30d | all

    how far back

  • intervalstringenum: 1h | 4h | 1d

    one point per; omit for the window's default (1d: 1h, 7d: 1h, 30d: 4h, all: 1d)

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 1000default: 1000

Responses

GET/wallets/{coldkey}/pnl/history
curl https://api.backprop.finance/api/wallets/{coldkey}/pnl/history \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "coldkey": "string",  "window": "string",  "interval": "string",  "synced_block": 0,  "since_block": 0,  "points": [    {      "block": 0,      "ts": "2024-01-15T14:42:00Z",      "realized": 0,      "unrealized": 0,      "emission_income": 0,      "adjustment": 0,      "total": 0,      "cost_estimated": true    }  ],  "limit": 0,  "next": "string"}

Get Wallet Emission History

The coldkey's emission (SS58) per subnet over window (default 30d), newest first, on /balance/history's windows, intervals and paging. Each point lists the subnets held or earning in its interval:

  • emission_alpha: alpha that came in with no trade behind it -- validator dividends, miner incentive, owner take, auto-stake; root's lands at each claim, so in lumps. As /pnl's emission_alpha, per interval.
  • alpha: held at the interval's start.
  • apr_pct: emission_alpha / alpha over the interval's blocks, x 2,628,000 blocks a year: simple, no tempo assumed. Backprop's apr is compounded 7,300 times a year; compound this one to compare.

The interval since_block (the engine's a0) falls in runs from it; points ending by it have null subnets and ts.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • windowstringdefault: 30denum: 1d | 7d | 30d | all

    how far back

  • intervalstringenum: 1h | 4h | 1d

    one point per; omit for the window's default (1d: 1h, 7d: 1h, 30d: 4h, all: 1d)

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 1000default: 1000

Responses

GET/wallets/{coldkey}/emissions/history
curl https://api.backprop.finance/api/wallets/{coldkey}/emissions/history \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "coldkey": "string",  "window": "string",  "interval": "string",  "synced_block": 0,  "since_block": 0,  "points": [    {      "block": 0,      "ts": "2024-01-15T14:42:00Z",      "subnets": [        {          "netuid": 0,          "emission_alpha": 0,          "alpha": 0,          "apr_pct": 0        }      ]    }  ],  "limit": 0,  "next": "string"}

Get Wallet Validators

The coldkey's current staking positions (SS58): live alpha per (subnet, validator hotkey). Summed per subnet, these are /positions' alpha_held.

block or timestamp: alpha and cost basis per subnet at the newest stake snapshot at or before that point -- X-Snapshot-Block says which. The snapshots are on a grid, not every block: every 300 blocks (~1 h) for the last 31 days, every 7,200 (a day) before that, back to the first snapshot at block 8,765,700. Past the newest, the newest. They are summed over validators, so v_hotkey and last_change_block are null: on a subnet staked through more than one validator, the row is their total. 422 with history_from_block before the first snapshot, and for block and timestamp together.

by=hotkey with block or timestamp: per (subnet, validator hotkey) instead, with shares, from the daily snapshot (every 7,200 blocks, back to block 8,769,600) at or before that point. Days before 2026-11-14 were read from the chain and have no cost basis (null). Positions under 1,000 rao are left out.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • blockintegermin: 0

    a past block: per-subnet alpha at the newest snapshot at or before it

  • timestampstringdate-time

    or a past time, ISO 8601; UTC when no zone is given

  • bystringdefault: subnetenum: subnet | hotkey

    with block or timestamp: hotkey reads the daily per-validator snapshot

Responses

GET/wallets/{coldkey}/staking
curl https://api.backprop.finance/api/wallets/{coldkey}/staking \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "v_hotkey": "string",    "alpha": 0,    "cost_basis_tao": 0,    "last_change_block": 0,    "synced_block": 0,    "shares": 0  }]

Get Wallet Position History

The coldkey's (SS58) stake per (subnet, validator hotkey) at the end of each day (every 7,200 blocks, from block 8,769,600), newest first, with the alpha each position earned since the day before.

alpha_earned is emission: the chain credits it as a higher share price, with no event, and it includes owner cuts and auto-stakes (also listed by /transactions as auto_stake, so do not add those again). Never negative. alpha_earned_by says how it was found: engine (the balance engine's own counter for the position, on days written since it was added), single_hotkey (the subnet's counter, the coldkey having this one hotkey there), no_leg (the position's alpha change, the subnet having no trade or movement that day), or null: a subnet staked through several hotkeys with a leg that day, where only subnet_alpha_earned is known. Both are null on the first day. Positions under 1,000 rao are left out; cost basis is null before 2026-11-14 (days read from the chain). Pass start_block: with a range the page is several times faster (fewer partitions to plan).

Path Parameters

  • coldkeystringrequired

Query Parameters

  • netuidintegermin: 0
  • hotkeystring

    one validator hotkey (SS58)

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/wallets/{coldkey}/positions/history
curl https://api.backprop.finance/api/wallets/{coldkey}/positions/history \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "netuid": 0,      "hotkey": "string",      "alpha": 0,      "shares": 0,      "cost_basis_tao": 0,      "alpha_earned": 0,      "alpha_earned_by": "engine",      "subnet_alpha_earned": 0    }  ],  "limit": 0,  "next": "string"}

Get Wallet

Per subnet for one coldkey (SS58): alpha held and cost basis live (per block), realized PnL and emission from the daily sweep. netuid -1 is the free TAO. Empty list when the wallet has had no stake activity since the export started.

Path Parameters

  • coldkeystringrequired

Responses

GET/wallets/{coldkey}/positions
curl https://api.backprop.finance/api/wallets/{coldkey}/positions \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "alpha_held": 0,    "avg_buy_price": 0,    "avg_buy_price_source": "cost_basis",    "avg_cost": 0,    "cost_since_block": 0,    "price": 0,    "realized_pnl_tao": 0,    "unrealized_pnl_tao": 0,    "cost_estimated": true,    "emission_alpha": 0,    "emission_value_tao": 0,    "last_updated_block": 0,    "last_change_block": 0,    "synced_block": 0  }]

Get Wallet Pnl

Per subnet for one coldkey (SS58): PnL over the window, in TAO.

total = trading_pnl (realized + change in unrealized) + emission_income (emission valued at the price it arrived at). adjustment is what the chain showed that no event explains; it is not in total. A day is 7,200 blocks: the window starts on the newest snapshot at least N days back, so it runs N to N+1 days -- from_block / from_ts say where. partial when the history starts later than that. Root dividends count when claimed. cost_estimated: some cost basis is a seed price, so the realized / unrealized split (not the total) is an estimate. Empty list for a wallet with nothing on any subnet.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • windowstringdefault: 7denum: 1d | 7d | 30d | all

    1d / 7d / 30d back from the synced block, or all since the engine started

  • netuidintegermin: 0

    one subnet; omit for every subnet held

Responses

GET/wallets/{coldkey}/pnl
curl https://api.backprop.finance/api/wallets/{coldkey}/pnl \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "window": "string",    "source": "engine",    "subnet_generation": 0,    "from_block": 0,    "to_block": 0,    "from_ts": "2024-01-15T14:42:00Z",    "to_ts": "2024-01-15T14:42:00Z",    "partial": true,    "realized": 0,    "unrealized_change": 0,    "trading_pnl": 0,    "emission_alpha": 0,    "emission_income": 0,    "adjustment": 0,    "total": 0,    "cost_estimated": true  }]

Blocks

Block headers.

Latest Block

The newest block header Amp holds, depth 0.

Answered from memory: each process asks Amp for its head every second (LATEST_BLOCK_POLL_SECS) and keeps the header, so this runs no query and is at most a second behind Amp -- which is itself ~2-3 s behind the block's own timestamp. Not cached anywhere else (Cache-Control: no-cache). 503 before the first poll, and once polls have failed for 30 s.

Responses

GET/blocks/latest
curl https://api.backprop.finance/api/blocks/latest \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "block_num": 0,  "depth": 0,  "ts": "2024-01-15T14:42:00Z",  "extrinsic_count": 0,  "hash": "string",  "parent_hash": "string",  "state_root": "string",  "extrinsics_root": "string"}

List Blocks

Block headers from amp_dtao.blocks, newest first.

The range is optional: with neither bound, the newest blocks in the database. Same Page shape as every other list here, but the cursor is a plain block number, so before doubles as "start below this height" and a caller can jump instead of walking. depth counts from the newest block in the database, which trails Amp (and /blocks/latest) by a few seconds.

Query Parameters

  • start_blockintegermin: 0

    lowest block, inclusive; optional

  • end_blockintegermin: 0

    highest block, inclusive; optional

  • beforeintegermin: 0

    next from the previous page; omit for the newest

  • limitintegermin: 1max: 100default: 10

Responses

GET/blocks
curl https://api.backprop.finance/api/blocks \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block_num": 0,      "depth": 0,      "ts": "2024-01-15T14:42:00Z",      "extrinsic_count": 0,      "hash": "string",      "parent_hash": "string",      "state_root": "string",      "extrinsics_root": "string"    }  ],  "limit": 0,  "next": "string"}

Mempool

Extrinsics waiting in the transaction pool, and what became of them: included, replaced or dropped.

Get Txs

Extrinsics in the transaction pool, newest first by when they were first seen; with status, what became of them over the last 72 hours.

The pool is the RPC provider's, read every second. 89-98% of signed extrinsics were seen here before their block (2026-11-27), a median 6-11 s before. The rest -- price-limited stake trades sent to block producers directly -- are in no public pool; each is recorded from its block, included with seen_pending false (seen_pending=false lists them). A MevShield.submit_encrypted shows its signer and tip; its call stays hidden until included, as an extrinsic of its own.

503 for pending when the pool has not been read for 30 s.

Query Parameters

  • statusstringdefault: pendingenum: pending | included | replaced | dropped

    pending: waiting now. The others: what became of those seen, last 72 h

  • signerstring

    SS58 of the signing account

  • callstring

    Pallet.call among the calls that run, wrappers walked: SubtensorModule.register_network matches one inside a Proxy.proxy or a batch too

  • registrationboolean

    true: only those holding a register_network call; false: only the others

  • seen_pendingboolean

    with status=included, false: only those never in the pool -- sent to a block producer directly

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10

Responses

GET/mempool/txs
curl https://api.backprop.finance/api/mempool/txs \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "hash": "string",      "status": "pending",      "signer": "string",      "nonce": 0,      "tip_tao": 0,      "length": 0,      "call": "string",      "calls": [        "string"      ],      "registration": true,      "encrypted": true,      "first_seen": "2024-01-15T14:42:00Z",      "first_seen_block": 0,      "status_at": "2024-01-15T14:42:00Z",      "wait_seconds": 0,      "block": 0,      "extrinsic_idx": 0,      "replaced_by": "string",      "seen_pending": true    }  ],  "limit": 0,  "next": "string"}

Get Tx

One extrinsic by its hash: whether it waits, and since when, or where it went. One sent to a block producer directly is here from its block on (seen_pending false). 404 before that, for one over 72 hours old, and for an unsigned one never in the pool.

Path Parameters

  • hashstringrequired

    the hash returned on submit

Responses

GET/mempool/txs/{hash}
curl https://api.backprop.finance/api/mempool/txs/{hash} \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "hash": "string",  "status": "pending",  "signer": "string",  "nonce": 0,  "tip_tao": 0,  "length": 0,  "call": "string",  "calls": [    "string"  ],  "registration": true,  "encrypted": true,  "first_seen": "2024-01-15T14:42:00Z",  "first_seen_block": 0,  "status_at": "2024-01-15T14:42:00Z",  "wait_seconds": 0,  "block": 0,  "extrinsic_idx": 0,  "replaced_by": "string",  "seen_pending": true}

Limit Orders

LimitOrders pallet events, their calls and linked outputs.

List Limit Orders

Every limit-order event, newest first, from PostgreSQL.

Unfiltered, so unlike the two scoped routes this includes OrderSkipped -- which carries no netuid and no signer, and is the bulk of what the pallet emits. Most columns are NULL on any given row; which ones are populated follows event.

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/limit-orders
curl https://api.backprop.finance/api/limit-orders \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "block": 0,      "event": "OrderExecuted",      "order_id": "string",      "signer": "string",      "netuid": 0,      "order_type": "string",      "amount_in": 0,      "amount_out": 0,      "skip_reason": 0,      "skip_pallet": 0,      "skip_error": 0,      "enabled": true,      "link": {        "output": {          "asset": "tao",          "netuid": 0,          "hotkey": "string",          "total": 0,          "expires_at": "2024-01-15T14:42:00Z",          "recorded_block": 0,          "status": "open",          "consumed_by": "string",          "consumed_amount": 0,          "undrawn": 0,          "closed_block": 0        },        "drew_from": {          "provider": "string",          "amount": 0,          "undrawn": 0,          "block": 0        }      }    }  ],  "limit": 0,  "next": "string"}

List Limit Order Events

Limit-order events in [start_block, end_block], newest first, each with the LimitOrders call behind it -- found inside any batch or proxy -- the signed order it carried, and the order's state at that block and now.

Every filter is optional; the range always applies, at most 50,400 blocks (a week). netuid and signer are the order's, so they match OrderSkipped too, which carries neither in the event itself. LimitOrdersPalletStatusChanged names no order and only comes back unfiltered.

call, order and both states are null for blocks past synced_block, where sync_limit_order_calls has not reached yet.

Query Parameters

  • start_blockintegermin: 0

    default: 7,200 blocks up to end_block

  • end_blockintegermin: 0

    default: the newest block exported

  • netuidintegermin: 0max: 300
  • signerstring

    the order's signer, SS58

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10

Responses

GET/limit-orders/events
curl https://api.backprop.finance/api/limit-orders/events \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "block": 0,      "event": "OrderExecuted",      "order_id": "string",      "signer": "string",      "netuid": 0,      "order_type": "string",      "amount_in": 0,      "amount_out": 0,      "skip_reason": 0,      "skip_pallet": 0,      "skip_error": 0,      "enabled": true,      "link": {        "output": {          "asset": "tao",          "netuid": 0,          "hotkey": "string",          "total": 0,          "expires_at": "2024-01-15T14:42:00Z",          "recorded_block": 0,          "status": "open",          "consumed_by": "string",          "consumed_amount": 0,          "undrawn": 0,          "closed_block": 0        },        "drew_from": {          "provider": "string",          "amount": 0,          "undrawn": 0,          "block": 0        }      },      "extrinsic_idx": 0,      "call": {        "name": "execute_orders",        "path": "string",        "wrappers": "string",        "signer": "string",        "origin": "string",        "netuid": 0,        "should_fail": true,        "n_orders": 0,        "extrinsic_success": true      },      "order": {        "version": 0,        "hotkey": "string",        "amount": 0,        "linked_provider": "string",        "linked_pct": 0,        "limit_price": 0,        "expiry": 0,        "fee_rate": 0,        "fee_recipient": "string",        "relayer": [          "string"        ],        "max_slippage": 0,        "chain_id": 0,        "partial_fills_enabled": true,        "has_linked_order": true,        "partial_fill": 0      },      "state": {        "block": 0,        "status": "fulfilled",        "filled": 0      },      "latest_state": {        "block": 0,        "status": "fulfilled",        "filled": 0      }    }  ],  "limit": 0,  "next": "string",  "start_block": 0,  "end_block": 0,  "synced_block": 0}

List Linked Outputs

OrderV2 linked outputs, newest first: every LinkedOutputRecorded (an executed order leaves an output for a linked order to draw on), LinkedOutputConsumed (the linked order draws it) and LinkedOutputPruned (it expired undrawn). order_id matches the order on either side. Each limit-order route carries the same as link, folded per order.

Query Parameters

  • order_idstring

    an order's H256: its own output's events and the output it drew on

  • eventstringenum: LinkedOutputRecorded | LinkedOutputConsumed | LinkedOutputPruned
  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/limit-orders/linked-outputs
curl https://api.backprop.finance/api/limit-orders/linked-outputs \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "block": 0,      "extrinsic_idx": 0,      "event": "LinkedOutputRecorded",      "order_id": "string",      "consumer": "string",      "signer": "string",      "asset": "tao",      "netuid": 0,      "hotkey": "string",      "total": 0,      "amount": 0,      "undrawn": 0,      "expires_at": "2024-01-15T14:42:00Z"    }  ],  "limit": 0,  "next": "string"}

Hyperparameters

Subnet hyperparameters and their changes.

Get Hyperparameters

The six parameters a subnet owner can change, newest first.

Default is the current values: one row per subnet, or one row when netuid is given. Not paged -- the chain caps the subnet count, so the whole answer is ~129 rows.

history=true returns the change log instead, which is what updated_block is for: the block at which that row's values took effect. A subnet appears once per change, so a subnet that has never changed appears once, at the block observation began.

A null value means the subnet has no entry for that parameter and the chain uses its own default -- not that the value is unknown.

Query Parameters

  • netuidintegermin: 0max: 300

    omit for every subnet

  • historybooleandefault: false

    every recorded change, not just the current values

  • limitintegermin: 1max: 1000default: 100

    history only

Responses

GET/hyperparameters
curl https://api.backprop.finance/api/hyperparameters \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "updated_block": 0,    "tempo": 0,    "activity_cutoff": 0,    "activity_cutoff_factor_milli": 0,    "weights_set_rate_limit": 0,    "commit_reveal_enabled": true,    "reveal_period_epochs": 0,    "network_registered_at": 0,    "first_emission_block": 0  }]

Weights

Validator weight setting.

List Weight Events

Weight sets, commits and reveals, newest first. Needs netuid, hotkey or both.

kind groups the six chain events: set is WeightsSet; commit is TimelockedWeightsCommitted and WeightsCommitted; reveal is TimelockedWeightsRevealed, WeightsRevealed and WeightsBatchRevealed.

A timelocked commit is revealed by the chain itself once its drand round arrives, with no extrinsic: that reveal and the WeightsSet it produces have extrinsic_idx null.

Once retention has cut, X-History-From-Block is the first block PostgreSQL keeps. A page below it -- a range or a cursor reaching there -- is read from Amp over Flight, marked X-Data-Source: flight, and next walks on across the floor; a hotkey or netuid filter there reads every file the block range leaves in, so give one.

Query Parameters

  • netuidintegermin: 0max: 300
  • hotkeystring

    SS58

  • kindstringenum: set | commit | reveal

    omit for all three

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/weights/events
curl https://api.backprop.finance/api/weights/events \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "time": "2024-01-15T14:42:00Z",      "block": 0,      "event": "WeightsSet",      "kind": "set",      "hotkey": "string",      "netuid": 0,      "mechanism": 0,      "uid": 0,      "extrinsic_idx": 0,      "commit_hash": "string",      "reveal_round": 0    }  ],  "limit": 0,  "next": "string"}

List Validator Weight Activity

Every validator-permit holder's last update, with its newest weight set, commit and reveal. Omit both filters for every subnet.

last_update_block is the chain's LastUpdate: the newest commit on a commit-reveal subnet, the newest weight set otherwise -- not simply the newest WeightsSet, which on a commit-reveal subnet is the reveal and does not count. offline is the chain's own inactivity rule, last update + cutoff_blocks < as_of_block, where as_of_block is how far the export has got.

Not paged: ~1,400 rows across every subnet, one read.

Query Parameters

  • netuidintegermin: 0max: 300
  • hotkeystring

    SS58

  • offlinebooleandefault: false

    only validators past the chain's activity cutoff

Responses

GET/weights/validators
curl https://api.backprop.finance/api/weights/validators \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "netuid": 0,    "uid": 0,    "hotkey": "string",    "coldkey": "string",    "tempo": 0,    "commit_reveal": true,    "cutoff_blocks": 0,    "last_update_block": 0,    "last_update_time": "2024-01-15T14:42:00Z",    "blocks_since_update": 0,    "last_weights_block": 0,    "last_weights_time": "2024-01-15T14:42:00Z",    "last_commit_block": 0,    "last_commit_time": "2024-01-15T14:42:00Z",    "last_reveal_block": 0,    "last_reveal_time": "2024-01-15T14:42:00Z",    "offline": true,    "as_of_block": 0  }]

Alpha Changes

Alpha burned and recycled.

List Alpha Changes

Alpha taken out of circulation, newest first: AlphaBurned and AlphaRecycled, with the coldkey, hotkey and subnet it came from. All filters are optional and combine with AND.

Paged by whole blocks: a page can run over limit by the rest of its last block, and the cursor is a block number.

Query Parameters

  • eventstringenum: AlphaBurned | AlphaRecycled

    omit for both

  • coldkeystring

    SS58

  • hotkeystring

    SS58

  • netuidintegermin: 0max: 300
  • start_blockintegermin: 0
  • end_blockintegermin: 0
  • cursorstring

    next from the previous page -- a block number

  • limitintegermin: 1max: 100default: 10

Responses

GET/alpha-changes
curl https://api.backprop.finance/api/alpha-changes \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "extrinsic_idx": 0,      "event": "AlphaBurned",      "coldkey": "string",      "hotkey": "string",      "netuid": 0,      "alpha_amount": 0    }  ],  "limit": 0,  "next": "string"}

Native Transfers

Balances.Transfer of free TAO.

List Native Transfers

Every Balances.Transfer, newest first. All filters are optional.

Paged by whole blocks: a page is at least limit rows, extended to the end of the last block it reaches, so it can run over limit by up to one block's transfers. The table carries no per-event index, so a row-level cursor would drop rows -- app/repositories/native_transfers.py has the numbers.

Staking moves TAO in and out of each subnet's own account (SS58 starting 5EYCAe5…) as a Balances.Transfer, 99.4% of the stream since spec 411. Those are left out, unless account, from or to names a subnet account.

Query Parameters

  • accountstring

    SS58; either side. Not combinable with from/to

  • fromstring

    SS58 sender

  • tostring

    SS58 recipient

  • start_blockintegermin: 0
  • end_blockintegermin: 0
  • cursorstring

    next from the previous page -- a block number

  • limitintegermin: 1max: 100default: 10

Responses

GET/native-transfers
curl https://api.backprop.finance/api/native-transfers \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "extrinsic_idx": 0,      "from_account": "string",      "to_account": "string",      "amount": 0    }  ],  "limit": 0,  "next": "string"}

Extrinsics

Extrinsics by signer, pallet or call, last 31 days.

Operations

List Extrinsics

Every extrinsic of the last 31 days, newest first; older blocks return an empty page. All filters are optional and combine.

The outermost call only, with no hash, fee, error or arguments. Filtering on a call misses it when made through a wrapper (Proxy.proxy, Utility.batch_all, MevShield.submit_encrypted), and for Proxy.proxy the signer is the proxy, not the account it acts for. Inherents (Timestamp.set, Drand.write_pulse, Ethereum.transact, ...) have no signer and are about half of all rows.

Query Parameters

  • signerstring

    SS58 of the signing account

  • palletstring

    e.g. SubtensorModule, as the chain names it

  • callstring

    e.g. add_stake_limit; needs pallet

  • start_blockintegermin: 0
  • end_blockintegermin: 0
  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10

Responses

GET/extrinsics
curl https://api.backprop.finance/api/extrinsics \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "extrinsic_idx": 0,      "pallet": "string",      "call": "string",      "signer": "string",      "nonce": 0,      "tip_tao": 0,      "success": true    }  ],  "limit": 0,  "next": "string"}

Stake Movements

Stake moved, transferred or swapped between keys and subnets.

List Stake Movements

Every stake movement, newest first, with both sides of every key. All filters are optional and combine with AND.

What each event changes is looser than its name: StakeMoved changes the hotkey and can change the subnet; StakeTransferred changes the coldkey, except when sent to one's own coldkey on another subnet; StakeSwapped changes only the subnet; StakeAndHotkeyTransferred changes coldkey and hotkey.

/subnets/{netuid}/transfers serves the same rows labelled by kind, by what changed rather than by the event name, first match wins: external the coldkey changed; internal same coldkey, same subnet; and cross_subnet_swap same coldkey, another subnet. The rule decides, not the event name; on dev (2026-10-13): StakeSwapped always cross_subnet_swap; StakeMoved internal (70%) or cross_subnet_swap; StakeTransferred external (65%) or cross_subnet_swap when sent to one's own coldkey on another subnet; StakeAndHotkeyTransferred external, all but 3 of 15,646.

tao_amount is TAO whichever the event -- the chain reports it that way.

mev marks an MEV victim: a move between two subnets whose pool leg, on either subnet, sits between the two legs of another wallet's MEV pair -- the pairs /subnets/trades flags mev. A move within one subnet never touches a pool, so it is never one.

Paged by whole blocks, like /native-transfers: a page can run over limit by the rest of its last block, and the cursor is a block number.

Query Parameters

  • eventstringenum: StakeMoved | StakeTransferred | StakeSwapped | StakeAndHotkeyTransferred
  • coldkeystring

    SS58; matches either side

  • hotkeystring

    SS58; matches either side

  • netuidintegermin: 0max: 300

    matches either side

  • start_blockintegermin: 0
  • end_blockintegermin: 0
  • cursorstring

    next from the previous page -- a block number

  • limitintegermin: 1max: 100default: 10

Responses

GET/stake-movements
curl https://api.backprop.finance/api/stake-movements \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "extrinsic_idx": 0,      "event": "StakeMoved",      "from_coldkey": "string",      "to_coldkey": "string",      "from_hotkey": "string",      "to_hotkey": "string",      "from_netuid": 0,      "to_netuid": 0,      "tao_amount": 0,      "mev": true    }  ],  "limit": 0,  "next": "string"}

Key Swaps

Coldkey and hotkey swaps.

List Coldkey Swaps

The coldkey swap lifecycle, newest first: announced, then swapped -- or reset, disputed or cleared on the way. ColdkeySwapped is the swap itself; an announcement only names the hash of the new key.

Paged by whole blocks: the table has no unique key per event.

Query Parameters

  • coldkeystring

    SS58; matches the old or the new key

  • eventstringenum: ColdkeySwapAnnounced | ColdkeySwapped | ColdkeySwapReset | ColdkeySwapDisputed | ColdkeySwapCleared | AllBalanceUnstakedAndTransferredToNewColdkey
  • start_blockintegermin: 0
  • end_blockintegermin: 0
  • cursorstring

    next from the previous page -- a block number

  • limitintegermin: 1max: 100default: 10

Responses

GET/coldkey-swaps
curl https://api.backprop.finance/api/coldkey-swaps \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "time": "2024-01-15T14:42:00Z",      "extrinsic_idx": 0,      "event": "ColdkeySwapAnnounced",      "old_coldkey": "string",      "new_coldkey": "string",      "new_coldkey_hash": "string",      "tao_amount": 0    }  ],  "limit": 0,  "next": "string"}

List Hotkey Swaps

Hotkey swaps, newest first: HotkeySwapped moves the key on every subnet at once (netuid null), HotkeySwappedOnSubnet on one.

Query Parameters

  • hotkeystring

    SS58; matches the old or the new key

  • coldkeystring

    SS58; the owner of both keys

  • netuidintegermin: 0max: 300

    also returns HotkeySwapped, which covers every subnet

  • start_blockintegermin: 0
  • end_blockintegermin: 0
  • cursorstring

    next from the previous page

  • limitintegermin: 1max: 100default: 10

Responses

GET/hotkey-swaps
curl https://api.backprop.finance/api/hotkey-swaps \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "id": "string",      "block": 0,      "time": "2024-01-15T14:42:00Z",      "extrinsic_idx": 0,      "event": "HotkeySwapped",      "coldkey": "string",      "old_hotkey": "string",      "new_hotkey": "string",      "netuid": 0    }  ],  "limit": 0,  "next": "string"}

List Validators

Validators ranked by global weighted stake, largest first.

GWS = every subnet's alpha stake valued at its spot price, plus root stake x TaoWeight (0.18) -- the explorers' figure, using the stake delegated straight to the hotkey (before childkey routing). Checked against taostats for all 143 validators it lists: median difference 0.007%.

A validator is a hotkey holding a validator permit or a subnet's owner uid, or a parent of child hotkeys -- the largest operators validate only through children and hold no uid themselves.

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 10

Responses

GET/validators
curl https://api.backprop.finance/api/validators \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "rank": 0,      "hotkey": "string",      "coldkey": "string",      "global_weighted_stake_tao": 0,      "global_alpha_stake_as_tao": 0,      "root_stake_tao": 0,      "weighted_root_stake_tao": 0,      "dominance_pct": 0,      "active_subnets": 0,      "synced_block": 0    }  ],  "limit": 0,  "next": "string"}

Get Validator Subnets

The subnets a validator hotkey (SS58) validates on, with its stake and 30-day APY on each, and its root beta basket.

Stake comes in two pairs: direct_* is delegated straight to the hotkey, inherited_* is after childkey routing -- the figure explorers show. APY is the same as /subnets/{netuid}/validators prints, 30-day window only: simple, rate x 2,628,000 (7,200 blocks a day x 365) / tempo, averaged over every epoch the subnet ran in the window, those the validator was not in counting as 0 (taostats' convention). epochs_30d below the subnet's own count -- 2,182 on SN1 (tempo 99), 600 at tempo 360 -- means it was not in all of them. Root APY is TAO per TAO; net_root_apy_30d_pct_total sums it over every subnet, since root stake earns on all of them at once.

parents on each subnet is the largest 3 by proportion, parents_total how many there are -- one hotkey has 1,615 across its subnets; page them with /validators/{hotkey}/parents. children is whole (at most 5).

root_basket is the fund its root dividends go into, from the runtime's BetaBasketRuntimeApi, snapshotted every 500 blocks: NAV (realizable and spot), shares, lifetime flows and per-subnet holdings, plus the return and APY of the share price over up to 30 days (return_window_blocks). Null when the hotkey has no basket.

Path Parameters

  • hotkeystringrequired

Responses

GET/validators/{hotkey}/subnets
curl https://api.backprop.finance/api/validators/{hotkey}/subnets \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "hotkey": "string",  "subnets": [    {      "netuid": 0,      "uid": 0,      "role": "string",      "has_validator_permit": true,      "direct_alpha_last_epoch": 0,      "inherited_alpha": 0,      "direct_root_live": 0,      "inherited_root": 0,      "stake_weight": 0,      "validator_trust": 0,      "take_pct": 0,      "tempo": 0,      "net_apy_30d_pct": 0,      "gross_apy_30d_pct": 0,      "net_root_apy_30d_pct": 0,      "gross_root_apy_30d_pct": 0,      "epochs_30d": 0,      "latest_epoch_block": 0,      "parents": [],      "parents_total": 0,      "children": []    }  ],  "net_root_apy_30d_pct_total": 0,  "gross_root_apy_30d_pct_total": 0,  "root_basket": {    "as_of_block": 0,    "nav_tao": 0,    "spot_nav_tao": 0,    "shares": 0,    "share_price_tao": 0,    "deposited_tao": 0,    "redeemed_tao": 0,    "lifetime_return_pct": 0,    "return_30d_pct": 0,    "apy_30d_pct": 0,    "return_window_blocks": 0,    "basket_rate": 0,    "basket_rate_raw": "string",    "holdings": [      {        "netuid": 0,        "alpha": 0,        "spot_tao": 0,        "realizable_tao": 0,        "weight_pct": 0      }    ]  }}

Get Validator Apy

A validator hotkey's (SS58) APY over a long window on every subnet it earned on, and its root APY summed over them. The same figures as /subnets/{netuid}/validators/apy; see there for the window and the annualisation. Empty when it earned nothing in the window.

Path Parameters

  • hotkeystringrequired

Query Parameters

  • windowstringdefault: 1yenum: 1y | all

    1y: the last 365 days; all: since each subnet's registration

Responses

GET/validators/{hotkey}/apy
curl https://api.backprop.finance/api/validators/{hotkey}/apy \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "hotkey": "string",  "window": "1y",  "subnets": [    {      "netuid": 0,      "hotkey": "string",      "epochs": 0,      "take_pct": 0,      "net_apy_pct": 0,      "gross_apy_pct": 0,      "net_root_apy_pct": 0,      "gross_root_apy_pct": 0,      "since_block": 0,      "to_block": 0,      "direct_root_live": 0,      "subnets": 0    }  ],  "net_root_apy_pct_total": 0,  "gross_root_apy_pct_total": 0}

Get Validator Apy History

A validator hotkey's (SS58) APY on one subnet, one point per block-day (epoch_block // 7200, not a UTC date), newest first. limit (default and at most 1,000) puts any window in one page.

The formula of /validators/{hotkey}/apy over one day: the day's return x 2,628,000 blocks (365 days) / 7,200, simple, from the per-day sums of the epoch dividends (validator_yield_daily). Whole days only: the newest point is the last day the subnet's newest read epoch has passed -- the day running now, a few epochs annualised, swings tenfold. The window starts as there: window back, the subnet's current registration or where the indexed history begins, whichever is latest. A day the hotkey earned nothing in is absent, not 0. Null on dust (average stake under 1 alpha / 1 TAO).

Each point also carries the day's sums: dividends, average stake and epochs. To get a longer window, sum those and divide once -- the mean of the daily APYs weights a day with little stake like one with much.

netuid 0 (root): the hotkey's root return on every subnet that day, summed and annualised over the day -- root stake earns on all of them at once. Only the root fields are filled, with subnets. 422 on a bad hotkey or cursor.

Path Parameters

  • hotkeystringrequired

Query Parameters

  • netuidintegermin: 0max: 300required

    the subnet; 0: root, summed over every subnet

  • windowstringdefault: 30denum: 30d | 90d | 1y | all

    how far back

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 1000default: 1000

Responses

GET/validators/{hotkey}/apy/history
curl https://api.backprop.finance/api/validators/{hotkey}/apy/history \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "hotkey": "string",  "netuid": 0,  "window": "30d",  "points": [    {      "day": 0,      "from_block": 0,      "to_block": 0,      "epochs": 0,      "subnets": 0,      "take_pct": 0,      "net_apy_pct": 0,      "gross_apy_pct": 0,      "net_root_apy_pct": 0,      "gross_root_apy_pct": 0,      "alpha_dividends": 0,      "avg_alpha_stake": 0,      "root_dividends_tao": 0,      "avg_root_stake": 0    }  ],  "limit": 0,  "next": "string"}

Get Validator Parents

Every parent hotkey routing stake to hotkey (SS58) on netuid, largest proportion first -- the share of the parent's stake there given to this hotkey. The full list behind the capped parents of /subnets/{netuid}/validators (10) and /validators/{hotkey}/subnets (3); a child can have dozens (62 on one subnet today). Empty when it has none.

Path Parameters

  • hotkeystringrequired

Query Parameters

  • netuidintegermin: 0max: 300required

    the subnet the links are on

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 100

Responses

GET/validators/{hotkey}/parents
curl https://api.backprop.finance/api/validators/{hotkey}/parents \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "hotkey": "string",      "proportion": 0    }  ],  "limit": 0,  "next": "string"}

Get Validator Stakers

Every coldkey staked through hotkey (SS58) on netuid at one day, with its alpha and AlphaV2 shares -- the list a validator's rakeback is paid from. Read from the daily snapshot (every 7,200 blocks, back to block 8,769,600) at or before block or timestamp, the newest without either; X-Snapshot-Block says which day. Ordered by coldkey, not by size, so a page costs limit rows: walk next to the end for the whole list (7,773 stakers on the largest). Days before 2026-11-14 were read from the chain and have no cost basis (null). Positions under 1,000 rao are left out. 422 with history_from_block before the first day, and for block and timestamp together.

Path Parameters

  • hotkeystringrequired

Query Parameters

  • netuidintegermin: 0max: 300required

    the subnet the stake is on

  • blockintegermin: 0

    the daily snapshot at or before this block; omit for the newest

  • timestampstringdate-time

    or a time, ISO 8601; UTC when no zone is given

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 100

Responses

GET/validators/{hotkey}/stakers
curl https://api.backprop.finance/api/validators/{hotkey}/stakers \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "coldkey": "string",      "alpha": 0,      "shares": 0,      "cost_basis_tao": 0    }  ],  "limit": 0,  "next": "string"}

Baskets

Root validators' beta baskets (Root Reborn): NAV, share price, return and BasketRate per 500-block snapshot.

List Baskets

Every root validator's beta basket at the newest snapshot, largest NAV first: the fund its root dividends are deposited into, held as alpha across subnets. Without holdings (see /baskets/{hotkey}).

From the runtime's BetaBasketRuntimeApi, snapshotted every 500 blocks (~100 min) since block 9,150,000 on this deployment. nav_tao is what a redemption pays (slippage-aware), spot_nav_tao the mark at spot. share_price_tao = nav / shares moves only on dividends and the holdings' prices, so its change is the fund's return: over 30 days, apy_30d_pct (null until a full 30 days of snapshots exist).

basket_rate: SubtensorModule.BasketRate, the fund's cumulative shares per TAO of root stake. Between two snapshots, Δbasket_rate x root stake (TAO) x share_price_tao is the TAO a staker's root stake earned through this validator; /baskets/{hotkey}/history has every snapshot's. basket_rate_raw is the same, exact.

Responses

GET/baskets
curl https://api.backprop.finance/api/baskets \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
[  {    "as_of_block": 0,    "nav_tao": 0,    "spot_nav_tao": 0,    "shares": 0,    "share_price_tao": 0,    "deposited_tao": 0,    "redeemed_tao": 0,    "lifetime_return_pct": 0,    "return_30d_pct": 0,    "apy_30d_pct": 0,    "return_window_blocks": 0,    "basket_rate": 0,    "basket_rate_raw": "string",    "hotkey": "string"  }]

Get Basket

One root validator's (SS58) beta basket at its newest snapshot, with its holdings (netuid 0 is the fund's TAO). The same figures as /baskets and /validators/{hotkey}/subnets' root_basket. 404 when the hotkey has no basket, 422 on a bad hotkey.

Path Parameters

  • hotkeystringrequired

Responses

GET/baskets/{hotkey}
curl https://api.backprop.finance/api/baskets/{hotkey} \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "as_of_block": 0,  "nav_tao": 0,  "spot_nav_tao": 0,  "shares": 0,  "share_price_tao": 0,  "deposited_tao": 0,  "redeemed_tao": 0,  "lifetime_return_pct": 0,  "return_30d_pct": 0,  "apy_30d_pct": 0,  "return_window_blocks": 0,  "basket_rate": 0,  "basket_rate_raw": "string",  "holdings": [    {      "netuid": 0,      "alpha": 0,      "spot_tao": 0,      "realizable_tao": 0,      "weight_pct": 0    }  ],  "hotkey": "string"}

Get Basket History

Every snapshot of one root validator's (SS58) beta basket, newest first: one each 500 blocks (~100 min, ~17 a day), from block 9,150,000 on this deployment. limit up to 1,000 (~59 days); start_block / end_block jump to a range.

For rakeback: what a root staker earned through this validator between two snapshots is (basket_rate at the later - at the earlier) x its root stake (TAO) x share_price_tao, in TAO -- assuming the stake did not change between them. Use basket_rate_raw to subtract exactly. Empty for a hotkey with no basket; 422 on a bad hotkey or cursor.

Path Parameters

  • hotkeystringrequired

Query Parameters

  • cursorstring

    next from the previous page -- a block number

  • limitintegermin: 1max: 1000default: 100
  • start_blockintegermin: 0

    first block, inclusive; omit for no lower bound

  • end_blockintegermin: 0

    last block, inclusive; omit for the newest

Responses

GET/baskets/{hotkey}/history
curl https://api.backprop.finance/api/baskets/{hotkey}/history \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "block": 0,      "nav_tao": 0,      "spot_nav_tao": 0,      "shares": 0,      "share_price_tao": 0,      "deposited_tao": 0,      "redeemed_tao": 0,      "basket_rate": 0,      "basket_rate_raw": "string"    }  ],  "limit": 0,  "next": "string"}

Accounts

One SS58 key as a coldkey and as a hotkey.

Get Account

One SS58 key as a coldkey and as a hotkey -- a key can be both. As a coldkey: free TAO, stake per subnet valued at spot, and the hotkeys it owns with their uid and role on each subnet. As a hotkey: its owner, its free TAO, and per subnet its uid, role (owner, validator, miner, or parent when it validates through a child), the stake it holds and its childkey links. synced gives each source's block. 404 when this index has never seen the key; 422 on a malformed address.

Path Parameters

  • addressstringrequired

Responses

GET/accounts/{address}
curl https://api.backprop.finance/api/accounts/{address} \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "address": "string",  "is_coldkey": true,  "is_hotkey": true,  "as_coldkey": {    "free_tao": 0,    "staked_tao_value": 0,    "stake": [      {        "netuid": 0,        "alpha": 0,        "tao_value": 0,        "validators": 0      }    ],    "owned_hotkeys": [      {        "hotkey": "string",        "free_tao": 0,        "subnets": []      }    ],    "owned_hotkeys_total": 0  },  "as_hotkey": {    "owner_coldkey": "string",    "free_tao": 0,    "subnets": [      {        "netuid": 0,        "uid": 0,        "role": "string",        "stake_alpha": 0,        "own_alpha": 0,        "parents": [],        "parents_total": 0,        "children": []      }    ]  },  "synced": {    "wallet_balance": 0,    "hotkey_state": 0,    "uids": 0  }}

Subnet Prices

Every subnet's alpha price in TAO, pushed as the export writes each block (~12 s). Format after taomarketcap's Subnet Prices Stream, with block_number, time and an id: (the block) on every message:

id: 9268861
data: {"type":"full","block_number":9268861,"time":"...","data":{"1":0.0065,"2":0.0029,...}}

id: 9268862
data: {"type":"delta","block_number":9268862,"time":"...","data":{"3":0.0257}}

id: 9268863
data: {"type":"heartbeat","block_number":9268863}

full first: every subnet with a pool (root has none and is left out). Then one message a block: delta with only the prices that changed by more than 1e-12 relative (null: the subnet is gone), or heartbeat when none did. Smaller moves are float rounding of the pool ratio, not trades; every price a client holds stays within 1e-12 of the database's. A : ping comment every 15 s keeps the connection open while no block arrives.

Reconnecting with Last-Event-ID (browsers send it on their own) resumes after that block, if it is among the last 300; otherwise full again. A client that falls 64 blocks behind is disconnected and resumes the same way.

Headers

  • last-event-idstring

Responses

GET/sse/subnets/prices
curl https://api.backprop.finance/api/sse/subnets/prices \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": {},      "ctx": {}    }  ]}

TAO/USD Price

TAO's price in USD, the body of /prices/tao-usd, pushed when it changes: as it trades where live exchange feeds are on (at most 4 messages a second), otherwise each CoinGecko refresh (about every 30 s):

data: {"symbol": "TAO-USD", "price_usd": 232.9, "source": "coingecko", "updated_at": "2026-10-30T11:40:12Z"}

The current price first, then one message per change -- none while it stands still, or while every source is unreachable (the last price stands). No id:: there is nothing to replay, a reconnect gets the current price. A : ping comment every 15 s keeps the connection open.

Responses

GET/sse/prices/tao-usd
curl https://api.backprop.finance/api/sse/prices/tao-usd \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'

Trades

Every pool trade on every subnet, pushed as the export writes each block (~12 s): the rows of /subnets/{netuid}/trades, for all subnets at once. MEV legs are in, flagged mev, as there; include_mev=false leaves them out.

id: 9280291
data: {"type":"trades","block_number":9280291,"time":"...","data":[
       {"id":"9280291-2-138","netuid":55,"time":"...","address":"5G...","validator":"5E...",
        "type":"buy","kind":"trade","price":0.0023,"tao_amount":20.52,"alpha_amount":8903.49,"mev":false}]}

id: 9280292
data: {"type":"heartbeat","block_number":9280292}

One message a block, trades (oldest first in the block) or heartbeat when the block has none this stream wants -- so id: moves on every block. Nothing is sent on connecting; the first message is the next block. A block is sent once both the trades and the stake movements that label them trade or swap are exported past it. A : ping comment every 15 s keeps the connection open while no block arrives.

Reconnecting with Last-Event-ID (browsers send it on their own) replays the blocks after it from the last 300. Further back, a {"type":"gap","from_block":..,"to_block":..} comes first: those blocks were not sent -- read them from the REST route with start_block / end_block. A client that falls 64 blocks behind is disconnected and resumes the same way.

Query Parameters

  • kindstringenum: trade | swap

    trade: buys and sells; swap: legs of stake moving between subnets; omit for both

  • include_mevbooleandefault: true

    both legs of every detected MEV pair are sent, flagged mev; false leaves them out

Headers

  • last-event-idstring

Responses

GET/sse/trades
curl https://api.backprop.finance/api/sse/trades \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": {},      "ctx": {}    }  ]}

Subnet Trades

/sse/trades for one subnet: its pool's trades, a heartbeat on blocks without any. Same messages, include_mev, resuming and gaps.

Path Parameters

  • netuidintegermin: 0max: 300required

Query Parameters

  • kindstringenum: trade | swap

    trade: buys and sells; swap: legs of stake moving between subnets; omit for both

  • include_mevbooleandefault: true

    both legs of every detected MEV pair are sent, flagged mev; false leaves them out

Headers

  • last-event-idstring

Responses

GET/sse/subnets/{netuid}/trades
curl https://api.backprop.finance/api/sse/subnets/{netuid}/trades \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": {},      "ctx": {}    }  ]}

Wallet Trades

/sse/trades for one coldkey (SS58): its trades on every subnet, a heartbeat on blocks without any. Same messages, include_mev, resuming and gaps. 422 on a malformed address.

Path Parameters

  • coldkeystringrequired

Query Parameters

  • kindstringenum: trade | swap

    trade: buys and sells; swap: legs of stake moving between subnets; omit for both

  • include_mevbooleandefault: true

    both legs of every detected MEV pair are sent, flagged mev; false leaves them out

Headers

  • last-event-idstring

Responses

GET/sse/wallets/{coldkey}/trades
curl https://api.backprop.finance/api/sse/wallets/{coldkey}/trades \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": {},      "ctx": {}    }  ]}

Block Stream

Every block header, pushed as Amp has it (~12 s): the body of /blocks/latest, from the same once-a-second poll, one message a block.

id: 9496749
data: {"type":"block","block_number":9496749,"data":{"block_num":9496749,"depth":0,"ts":"...",
       "extrinsic_count":14,"hash":"0x...","parent_hash":"0x...","state_root":"0x...","extrinsics_root":"0x..."}}

The newest block first, then every block after it, none skipped -- but for Amp stalling more than 300 blocks, when the blocks before the last 300 come as a gap (below) on the open stream. depth is counted when the block is read: 0 for the head, more for blocks read on the same poll behind it. Not finality (see /blocks/latest). A : ping comment every 15 s keeps the connection open while no block arrives.

Reconnecting with Last-Event-ID (browsers send it on their own) replays the blocks after it from the last 300. Further back, a {"type":"gap","from_block":..,"to_block":..} comes first: those blocks were not sent -- read them from /blocks with start_block / end_block. A client that falls 64 blocks behind is disconnected and resumes the same way.

Headers

  • last-event-idstring

Responses

GET/sse/blocks
curl https://api.backprop.finance/api/sse/blocks \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": {},      "ctx": {}    }  ]}

Mempool Stream

The transaction pool as it changes: the rows of /mempool/txs, one message each time an extrinsic is first seen or its status moves, about 1-2 s after the pool or the block shows it.

id: 41279
data: {"type":"pending","data":{"hash":"0x...","status":"pending","signer":"5F...",
       "calls":["SubtensorModule.register_network"],"registration":true,...}}

id: 41302
data: {"type":"included","data":{"hash":"0x...","status":"included","block":9596770,
       "extrinsic_idx":12,"wait_seconds":7.4,...}}

type is the new status: pending, included, replaced or dropped (a dropped one can come back as pending, or included). Nothing is sent on connecting -- /mempool/txs has what waits now -- and a : ping comment every 15 s keeps the connection open. signer, registration and call filter, and combine.

id: is a sequence number shared by every server, so reconnecting with Last-Event-ID (browsers send it on their own) resumes after it from the last ~30 minutes of changes. Further back, a {"type":"gap","from_seq":..,"to_seq":..} comes first: changes were missed -- read /mempool/txs again. A client that falls 64 reads behind is disconnected and resumes the same way. 503 while the pool is not being read (30 s without).

Query Parameters

  • signerstring

    SS58 of the signing account

  • registrationboolean

    true: only extrinsics holding a register_network call

  • callstring

    Pallet.call among the calls that run, wrappers walked

Headers

  • last-event-idstring

Responses

GET/sse/mempool
curl https://api.backprop.finance/api/sse/mempool \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": {},      "ctx": {}    }  ]}

Prices

TAO in USD, from CoinGecko.

Get TAO/USD Price

TAO's price in USD. From live exchange feeds where they are on (source okx or kraken), otherwise CoinGecko's aggregate, refreshed about every 30 s (coingecko); updated_at is the source's time for the price. The route answers from our copy and never calls a source. 503 with Retry-After when no source has a price.

Responses

GET/prices/tao-usd
curl https://api.backprop.finance/api/prices/tao-usd \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "symbol": "string",  "price_usd": 0,  "source": "coingecko",  "updated_at": "string"}

Exports

Bulk files: every pool trade as Parquet, a file per 7,200 blocks.

Get Trade Files

Every pool trade on every subnet as Parquet (zstd), one file per 7,200 blocks (~a day, ~1 MB): a backfill is one download a day instead of ~200 pages of /subnets/trades. This is the list, newest file first, limit (up to 100) a page; /exports/trades/{block} fetches one.

File k holds blocks k*7200 .. k*7200+7199, so the file for block b starts at b // 7200 * 7200. Rows are /subnets/trades?include_mev=true's, oldest first, with the chain's integers: block, event_index, extrinsic_index, time, netuid, address, validator (SS58), type, kind, mev, tao_amount_rao, alpha_amount_raw, fee_rao (rao and alpha have 9 decimals), price (TAO per alpha), id (as on /subnets/trades and /sse/trades).

A complete file never changes. The newest is open (complete false): it is rewritten about every 10 minutes up to last_block; carry on from there with /sse/trades (Last-Event-ID) or /subnets/trades with start_block. History starts at dTAO, block 4,920,351.

Query Parameters

  • cursorstring

    next from the previous page; omit for the first

  • limitintegermin: 1max: 100default: 100

Responses

GET/exports/trades
curl https://api.backprop.finance/api/exports/trades \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "items": [    {      "name": "string",      "start_block": 0,      "end_block": 0,      "last_block": 0,      "first_time": "2024-01-15T14:42:00Z",      "last_time": "2024-01-15T14:42:00Z",      "rows": 0,      "bytes": 0,      "complete": true    }  ],  "limit": 0,  "next": "string",  "version": "string",  "window_blocks": 0,  "updated_at": "2024-01-15T14:42:00Z",  "watermark": 0}

Get Trade File

The file holding block (the one starting at block // 7200 * 7200), as Parquet with Content-Disposition: attachment: one request, the API key sent only here. A complete file is Cache-Control: private, immutable; the open one no-cache.

url=true answers {url, expires_at} instead: a URL signed for that one file, GET only, valid 15 minutes, that downloads from Google Cloud Storage without an API key. For bulk or parallel downloads, which then do not pass through this API.

Path Parameters

  • blockintegermin: 0required

    any block; the file holding it is the one sent

Query Parameters

  • urlbooleandefault: false

    true: a signed GCS URL for the file, as JSON, instead of the file

Responses

GET/exports/trades/{block}
curl https://api.backprop.finance/api/exports/trades/{block} \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "url": "string",  "expires_at": "2024-01-15T14:42:00Z"}

Meta

How fresh the data is: Amp's head, PostgreSQL's, and each exported table's watermark.

Freshness

How far behind the chain each store is. source_block is Amp's head and indexed_block the newest block in PostgreSQL: the same numbers as the X-Source-Block and X-Indexed-Block headers on every response. exports is each exported table's watermark: every row up to its block is in. The tables are exported by separate jobs, so they can be blocks apart, and a route reading a table trails source_block by that table's lag. cache_ttl_secs is the max-age of the per-block routes; a response's Age header says how far into it a cached copy is.

Responses

GET/meta/freshness
curl https://api.backprop.finance/api/meta/freshness \  --request GET \  --header 'accept: application/json' \  --header 'x-api-key: YOUR_API_KEY'
{  "source_block": 0,  "indexed_block": 0,  "cache_ttl_secs": 0,  "exports": [    {      "table": "string",      "block": 0,      "updated_at": "2024-01-15T14:42:00Z"    }  ]}

Models