Reference
API reference
Every public endpoint, grouped by what it is about. Each page lists the parameters, the fields of the answer with their units, and the errors it can return. All paths are relative to https://api.bittensor.ai/api/v2.
Subnets and staking
- Subnets48 endpointsEvery subnet: price, market data, metagraph, validators, emissions, registrations, hyperparameters, holders, trades and each life of a subnet slot.
- Validators3 endpointsThe validator directory and what running a validator on a subnet takes.
- Hotkeys14 endpointsOne hotkey or several: owner, subnets, stakers, take, emissions, weights, performance and staking quotes.
- Staking1 endpointNetwork-wide staking figures, such as the root accrual rate.
- Basket funds10 endpointsBasket funds: their value per unit, holders, events and performance.
Accounts and portfolios
- Accounts25 endpointsBalances and stake of an account or several, their activity, trades, balance history, key swaps and the rich list.
- Portfolio13 endpointsStake positions, daily balance and value series, income and accounting lines, basket positions and returns, for one account or several as one portfolio.
- Transfers1 endpointTAO transfers between accounts, filtered by account, amount or block range.
- Identities1 endpointOn-chain identities: search them and read an account's identity history.
- Address labels9 endpointsLabels for known addresses and the entities (exchanges, funds, teams) behind them.
- Multisigs3 endpointsMultisig accounts, their signatories and their operations.
- Leaderboard1 endpointStaking coldkeys ranked by stake or rewards.
Prices and markets
Chain data
- Blocks5 endpointsBlocks by height or hash, with their extrinsics, calls and events.
- Extrinsics5 endpointsSigned and unsigned extrinsics: filter them, read one, its call tree, its events and what it changed.
- Calls3 endpointsThe calls extrinsics dispatched, including nested calls, and every call or event name.
- Events2 endpointsThe events the chain emitted, filtered by pallet, name, block range or account.
- Runtimes and storage12 endpointsEvery runtime version: its metadata, pallets, runtime APIs, code and what changed between two versions; and any storage item's value at any block, decoded with the runtime that wrote it.
- Search2 endpointsFind blocks, extrinsics, accounts, subnets, validators, EVM items and runtime items.
Network and EVM
Service
204 endpoints, from API release 1.165.0. The same information, machine-readable, is in the OpenAPI document.