Many subnets' reviewed setup requirements in one call: no steps, no commands
https://api.bittensor.ai/api/v2/subnets/repo-requirements- Status
- Beta
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
For choosing subnets to run: per subnet, what its reviewed setup needs, cut from what GET /api/v2/subnets/{netuid}/repo?include=details serves in details.setup_review.
Full description
For choosing subnets to run: per subnet, what its reviewed setup needs, cut from what GET /api/v2/subnets/{netuid}/repo?include=details serves in details.setup_review. Each item names the repository served for the subnet's current life (as include=meta's repo_url), the analysed commit, when it was analysed and reviewed, review_status (reviewed, not_reviewed_yet, temporarily_unavailable, no_setup_steps, with review_status_reason), the review's risk_level and flags, per role whether the review covers it at all (roles.<role>.status reviewed, no_steps_for_role or no_public_software_for_role: a review can exist with steps for one role only, which never means the other needs nothing), whether the repository has software for the role (roles.<role>.public_software: about that repository only) and which other repositories do (public_software_elsewhere, measured_elsewhere), its counts and its hardware (cpu, ram_gb, disk_gb, gpu, vram_gb; null is unknown, named in hardware.unavailable, never "none needed"), the requirements by name (environment variables, API keys, accounts, tools, ...; never values), and assurance (what the review screened: the steps, never the code, which is third-party and not audited by bittensor.ai). No setup steps and no commands: read them, screened, on /repo?include=details. netuids (up to 128) answers those subnets in one page; without it every registered subnet, by netuid, keyset-paged through meta.page.next_cursor. role keeps one role's roles member and requirements. Cached 5 minutes (slow class); an answer in which some review could not be read this time (review_status temporarily_unavailable: on a first call for many subnets the reviews are still being read) is kept only a few seconds, so asking again shortly serves them. Errors are application/problem+json: INVALID_NETUID (malformed, or more than 128), INVALID_ROLE, INVALID_LIMIT, INVALID_CURSOR, UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503).
Beta: this route may change with one release's notice in the v2 changelog; additive changes need none (x-stability: beta).
Query parameters
- netuidsquery· string
A comma list (or the parameter repeated) of subnets, each 0..65535, at most 128 distinct; duplicates are ignored. A slot with no registered subnet is listed in
meta.netuids_not_found. Omitted: every registered subnet, paged. Malformed or too many: a 400INVALID_NETUID.- rolequery· string
minerorvalidator: only that role'srolesmember (the other null) and requirements (bothones kept). Omitted: both. Anything else is a 400INVALID_ROLE.- limitquery· integer · default 128 · 1 to 128
Subnets per page, 1..128 (default 128). Anything else is a 400
INVALID_LIMIT.- cursorquery· string · up to 200 characters
meta.page.next_cursorof the previous page, passed back unchanged with the same other parameters. It is opaque, names the last row served and is bound to the other parameters: a cursor used with different parameters, altered, or whose row is no longer listed is a 400INVALID_CURSOR.
Response
data is a list of objects with these fields. Amounts are integer strings in their base unit, and null means unknown, never zero (see Units and formats). meta.at names the block the answer was read at.
One item per registered subnet asked (or on this page), by netuid.
- netuidinteger · unit id
Subnet slot.
- generationinteger · unit id · can be null
Opaque life id (the life's registration identifier), NOT a block height; use
life_start_heightfor the first block. The subnet life the slot holds at the head (meta.at).- life_start_heightinteger · unit block · can be null
The first block of the life
generationnames (GET /subnets/generations'start_height): use it, nevergeneration, for heights, ages and dates. Null exactly whengenerationis null (root without a life, no subnet), or transiently when this API cannot read the lives. Root'sgeneration0 starts at 0.- is_current_lifeboolean · can be null
Whether
generationis the slot's current life (true) or an ended one, re-registered since (false). Null exactly whengenerationis null, or transiently when this API cannot read the lives. Root'sgeneration0 is current.- repositorystring · can be null
The GitHub repository served for this life (as
GET /api/v2/subnets?include=metanames it inmeta.repo_url). Null when no source names one for this life (review_status_reason).- repo_sourcestring · can be null
Which source chose
repository:owner_claim,chain_identityorregistry. Null withrepository. New values may be added; show an unknown value as is (or generically).- repo_source_detailstring · can be null
Why the owner's claim or the on-chain identity was passed over (
/repo'srepo_source_detail, e.g.chain_identity_rejected: org_page), with or without arepository. Null when nothing was passed over.- commit_shastring · can be null
The commit the analysis and its review are of. Null when there is no usable analysis.
- head_shastring · can be null
The repository's default-branch head as last seen upstream (re-checked about hourly). Null when not observed, or without a
repository.- analysed_commit_is_headboolean · can be null
Whether
commit_shaishead_sha(true: the review is of the current code). Null when either is unknown.- analyzed_atstring (date-time) · can be null
When that analysis ran. Null when there is no usable analysis.
- Format: date and time, ISO 8601 in UTC
- reviewed_atstring (date-time) · can be null
When the review last changed. Null unless
review_statusisreviewed.- Format: date and time, ISO 8601 in UTC
- review_statusstring
reviewed(the setup review is served below),not_reviewed_yet(the analysis has no review yet: no step here is screened),temporarily_unavailable(the analysis or its review could not be read this time, or is still being read: ask again in a few seconds),no_setup_steps(no repository, or no usable analysis of it, for this life). Onlyreviewedfillsroles,requirements,risk_levelandflags; a review with nothing for a role says so in that role'sstatus. New values may be added; show an unknown value as is (or generically).- review_status_reasonstring · can be null
Why
review_statusis notreviewed:no_repository,previous_life(the slot's tracked repository belongs to an earlier subnet in this slot),not_analysed,repository_unavailable(the repository is named but cannot be read: it is gone from GitHub or private, so there is nothing to analyse until its owner publishes it),analysis_unavailable,not_reviewed,review_unavailable. Null when reviewed. New values may be added; treat unknown values as unavailable.- review_versioninteger · unit id · can be null
The rules version of the review. Null unless reviewed, or when not recorded.
- risk_levelstring · can be null
The review's riskiest level (
none,caution,danger) over every step of both roles and every non-test container finding;unknownwhen it found nothing to assess (never read as safe). Null unless reviewed. New values may be added; show an unknown value as is (or generically).- flagsarray of string
Every reviewed step's risk flags and non-test container finding's flag together, sorted (both roles).
[]unless reviewed. Known values:custom_package_index,destructive_command,disables_security,firewall_lockout,installs_own_package_by_name,malicious_host,mnemonic_on_command_line,non_https,obfuscated_command,opens_port,other_repo,package_lookalike,pipe_to_shell,pipe_to_shell_unvetted,privileged_container,secret_in_command,spends_tao,sudo,superseded_repository,suspicious_host,third_party_package_source,unlisted_package,unvetted_host,wallet_exfiltration,wallet_key_material,auto_update_with_wallet,auto_updater,default_credential,docker_socket_mount,runs_remote_code,unpinned_image. New values may be added; show an unknown value as is (or generically).- rolesobject · can be null
Per role: whether the review has anything for it (
statusreviewed/no_steps_for_role/no_public_software_for_role), whether the repository has software for the role (public_software) and its counts. Null unless reviewed.2 fields in roles
- minerobject · can be null
The miner. Null when
role=validator.9 fields in miner
- statusstring
reviewed(the review serves screened setup steps or entry points for this role: the steps were screened, the code was not audited),no_steps_for_role(the review exists but serves nothing for this role, while software for the role exists, here or in another repository, or that was not determined: there is nothing reviewed to follow, so point the user to the repository's own documentation, or to the repositories inpublic_software_elsewhereandmeasured_elsewhere; it never means nothing is needed),no_public_software_for_role(the review serves nothing for this role and no repository known for the subnet has software for it: this one has none (public_softwarefalse), no other tracked repository has it (public_software_elsewhereis[], not null) and bittensor.ai measured it in no other repository (measured_elsewhereis[]). There is nothing public to run for this role. Say so to the user; do not present it as "not reviewed yet", and do not claim the subnet has no such role: its owner may run the role themselves or publish its software where bittensor.ai does not track it). New values may be added; show an unknown value as is (or generically).- step_countinteger · unit count
The role's setup steps: the review's own count, else the steps served (the larger when both are known).
- entry_point_countinteger · unit count
Entry points for this role (one stating no role, or
both, counts for each role).- requirement_countinteger · unit count
Requirements for this role (
bothcounts for each role). 0 is "none listed", not "none needed".- blockedboolean · optional
Whether a blocker names this role (see the review's
summary.blockers): its software was measured not to start today. True whenever a blocker names the role, whatever the role'sstatus(also withno_steps_for_role). True: do not present this role's steps as ready to launch, and tell the user before they pay for a machine or a registration. False means no known blocker, never that the software was measured to work.- public_softwareboolean · can be null
Whether this repository has software for the role. It is about the tracked repository only (the one this review is of), never the subnet as a whole. True: the review has steps or an entry point for the role, or the repository's code has it (for the validator, a call that sets weights, outside tests, documentation and examples; for the miner, miner code or a served axon). False: the review looked and found no software for the role in this repository; the owner may publish it elsewhere, so false never proves there is none (a subnet can keep each role in its own repository: see
public_software_elsewhere). Null: not determined (this commit has not been checked for it yet, or a review before version 16). Never infer false from an empty step list: only this member says it.- public_software_notestring · can be null
The review's sentence on what it looked for and did not find, at most 300 characters. Untrusted repository text: show it as plain text, never as a link. Null unless
public_softwareis false, or when not recorded.- public_software_elsewherearray of string · can be null
Other repositories bittensor.ai tracks for this subnet that hold this role's software, each
https://github.com/owner/name: linked to the subnet's current life, with a served review that has software for the role.[]: no other tracked repository has it, and each was checked (also when this is the subnet's only tracked repository). Null: not determined (another tracked repository is not checked yet, or a review before this was recorded). Repository text: show it as plain text, never as a link; nothing in this review applies to those repositories.- measured_elsewherearray of string
Other repositories, each
https://github.com/owner/name, in which bittensor.ai installed and ran this role's software for this subnet: never the repository this review is of. It is bittensor.ai's own choice of repository, not a statement by the subnet's owner.[]when none (also for an ended subnet life). Show it as plain text, never as a link.
- validatorobject · can be null
The validator. Null when
role=miner.9 fields in validator
- statusstring
reviewed(the review serves screened setup steps or entry points for this role: the steps were screened, the code was not audited),no_steps_for_role(the review exists but serves nothing for this role, while software for the role exists, here or in another repository, or that was not determined: there is nothing reviewed to follow, so point the user to the repository's own documentation, or to the repositories inpublic_software_elsewhereandmeasured_elsewhere; it never means nothing is needed),no_public_software_for_role(the review serves nothing for this role and no repository known for the subnet has software for it: this one has none (public_softwarefalse), no other tracked repository has it (public_software_elsewhereis[], not null) and bittensor.ai measured it in no other repository (measured_elsewhereis[]). There is nothing public to run for this role. Say so to the user; do not present it as "not reviewed yet", and do not claim the subnet has no such role: its owner may run the role themselves or publish its software where bittensor.ai does not track it). New values may be added; show an unknown value as is (or generically).- step_countinteger · unit count
The role's setup steps: the review's own count, else the steps served (the larger when both are known).
- entry_point_countinteger · unit count
Entry points for this role (one stating no role, or
both, counts for each role).- requirement_countinteger · unit count
Requirements for this role (
bothcounts for each role). 0 is "none listed", not "none needed".- blockedboolean · optional
Whether a blocker names this role (see the review's
summary.blockers): its software was measured not to start today. True whenever a blocker names the role, whatever the role'sstatus(also withno_steps_for_role). True: do not present this role's steps as ready to launch, and tell the user before they pay for a machine or a registration. False means no known blocker, never that the software was measured to work.- public_softwareboolean · can be null
Whether this repository has software for the role. It is about the tracked repository only (the one this review is of), never the subnet as a whole. True: the review has steps or an entry point for the role, or the repository's code has it (for the validator, a call that sets weights, outside tests, documentation and examples; for the miner, miner code or a served axon). False: the review looked and found no software for the role in this repository; the owner may publish it elsewhere, so false never proves there is none (a subnet can keep each role in its own repository: see
public_software_elsewhere). Null: not determined (this commit has not been checked for it yet, or a review before version 16). Never infer false from an empty step list: only this member says it.- public_software_notestring · can be null
The review's sentence on what it looked for and did not find, at most 300 characters. Untrusted repository text: show it as plain text, never as a link. Null unless
public_softwareis false, or when not recorded.- public_software_elsewherearray of string · can be null
Other repositories bittensor.ai tracks for this subnet that hold this role's software, each
https://github.com/owner/name: linked to the subnet's current life, with a served review that has software for the role.[]: no other tracked repository has it, and each was checked (also when this is the subnet's only tracked repository). Null: not determined (another tracked repository is not checked yet, or a review before this was recorded). Repository text: show it as plain text, never as a link; nothing in this review applies to those repositories.- measured_elsewherearray of string
Other repositories, each
https://github.com/owner/name, in which bittensor.ai installed and ran this role's software for this subnet: never the repository this review is of. It is bittensor.ai's own choice of repository, not a statement by the subnet's owner.[]when none (also for an ended subnet life). Show it as plain text, never as a link.
- hardwareobject
Per role, always present: the CPU cores, memory, disk, GPU and GPU memory the analysis quotes from the repository, each with its file and line; each unknown member null, named in
unavailablewith its reason inunavailable_reasons(not_analysedwithout an analysis). Never "none needed".2 fields in hardware
- minerobject · can be null
The miner. Null when
role=validator.9 fields in miner
- cpuinteger · unit count · can be null
CPU cores the role needs (the minimum stated). Null: unknown.
- ram_gbstring · unit gigabytes · 3 decimals · can be null
System memory the role needs at minimum, in GB, a decimal string, at most 3 decimals, trailing zeros dropped. Null: unknown.
- Format: decimal number, as a string
- disk_gbstring · unit gigabytes · 3 decimals · can be null
Disk space the role needs, in GB, a decimal string, at most 3 decimals, trailing zeros dropped. Null: unknown.
- Format: decimal number, as a string
- gpu_requiredboolean · can be null
Whether the role needs a GPU (false: stated as not needed). Null: unknown.
- gpustring · can be null
The GPU model the role needs, as quoted. Untrusted repository text: show it as plain text, never as a link. Null: unknown.
- vram_gbstring · unit gigabytes · 3 decimals · can be null
GPU memory the role needs, in GB, a decimal string, at most 3 decimals, trailing zeros dropped. Null: unknown.
- Format: decimal number, as a string
- sourcesobject
Where each stated member is quoted from, keyed by member.
{}when none is stated.
- validatorobject · can be null
The validator. Null when
role=miner.9 fields in validator
- cpuinteger · unit count · can be null
CPU cores the role needs (the minimum stated). Null: unknown.
- ram_gbstring · unit gigabytes · 3 decimals · can be null
System memory the role needs at minimum, in GB, a decimal string, at most 3 decimals, trailing zeros dropped. Null: unknown.
- Format: decimal number, as a string
- disk_gbstring · unit gigabytes · 3 decimals · can be null
Disk space the role needs, in GB, a decimal string, at most 3 decimals, trailing zeros dropped. Null: unknown.
- Format: decimal number, as a string
- gpu_requiredboolean · can be null
Whether the role needs a GPU (false: stated as not needed). Null: unknown.
- gpustring · can be null
The GPU model the role needs, as quoted. Untrusted repository text: show it as plain text, never as a link. Null: unknown.
- vram_gbstring · unit gigabytes · 3 decimals · can be null
GPU memory the role needs, in GB, a decimal string, at most 3 decimals, trailing zeros dropped. Null: unknown.
- Format: decimal number, as a string
- sourcesobject
Where each stated member is quoted from, keyed by member.
{}when none is stated.
- requirementsarray of objects
What the role (with
role; else each role) needs before it runs, by name only (bothitems kept for either role), leaving out those only test or development compose profiles need (requirements_left_out).[]unless reviewed, or when the review lists none: never "none needed".7 fields in requirements (each item)
- rolestring
Who needs it:
miner,validatororboth. New values may be added; show an unknown value as is (or generically).- kindstring
env_var,port,api_key,account(an account with a third-party service),external_service,tool,python,os,axonorother.axon(roleminer; review version 13 and later): the miner's code serves a Bittensor axon. Validators connect to the miner, so it needs a public address and an open port;sourceis the line in the code. The port is unknown unless aportrequirement for the miner states it. New values may be added; show an unknown value as is (or generically).- namestring
Its name (e.g.
OPENAI_API_KEY). Untrusted repository text: show it as plain text, never as a link.- requiredboolean
Whether the documentation says it is required (false: optional).
- sourceobject · can be null
The first line in the repository that names it. Null when not recorded.
3 fields in source
- pathstring
The file, relative to the repository root.
- lineinteger · unit count · can be null
The line in that file (1-based). Null when not located.
- quotestring · can be null
The line as written. Untrusted repository text: show it as plain text, never as a link. Null when withheld or not recorded.
- profilesarray of string · can be null
The compose profiles of the service that needs it (
[]: a service without profiles, started by a plainup). A requirement whose profiles are all test or development ones (test,dev,e2e,example,ci) is not needed to run the subnet. Untrusted repository text: show it as plain text, never as a link. Null when found in the documentation rather than a compose file.- servicestring · can be null
The compose service that reads it (e.g. only the
pylonservice readsSUBTENSOR_RPC_URL): set it for that service, not every process. Untrusted repository text: show it as plain text, never as a link. Null when found in the documentation rather than a compose file, or on a review before version 11.
- requirements_left_outinteger · unit count
Requirements of the role(s) left out of
requirementsbecause only test or development compose profiles (test,dev,e2e,example,ci) need them;/repolists them with theirprofiles. 0 unless reviewed.- runnableobject · can be null
Per role: how many of its reviewed steps and entry points can be run as served (
runnable). Null unless reviewed.2 fields in runnable
- minerobject · can be null
The miner. Null when
role=validator.6 fields in miner
- readyinteger · unit count
Ready to run (after confirmation when
caution).- needs_inputinteger · unit count
With placeholders the user must fill in.
- missing_pathsinteger · unit count
Reading a file the repository does not have: out of date.
- withheldinteger · unit count
Withheld: never run.
- no_commandinteger · unit count
Without a command.
- not_assessedinteger · unit count
Without a
runnable(a review before version 2, or a value not listed here).
- validatorobject · can be null
The validator. Null when
role=miner.6 fields in validator
- readyinteger · unit count
Ready to run (after confirmation when
caution).- needs_inputinteger · unit count
With placeholders the user must fill in.
- missing_pathsinteger · unit count
Reading a file the repository does not have: out of date.
- withheldinteger · unit count
Withheld: never run.
- no_commandinteger · unit count
Without a command.
- not_assessedinteger · unit count
Without a
runnable(a review before version 2, or a value not listed here).
- other_repositoriesobject · can be null
Per role: the repositories other than
repositorythat its steps work in (the steps'other_repository), sorted. Repository text: plain text, never a link.[]when none (or before review version 3); null unless reviewed.2 fields in other_repositories
- minerarray of string · can be null
The miner's. Null when
role=validator.- validatorarray of string · can be null
The validator's. Null when
role=miner.
- chain_actionsarray of string
Every chain action the role(s)' steps and entry points take, sorted (
creates_coldkey,registers,stakes, ...): prepare each for the user to sign in their own wallet, never on a server.serves_axonis the exception: the running miner announces its address on chain, signed with its own hotkey, after registration, so that step runs as written and is not replaced by a prepared transaction.[]unless reviewed, or when none. Known values:creates_coldkey,creates_hotkey,imports_key,registers,stakes,sets_weights,serves_axon,transfers. New values may be added; show an unknown value as is (or generically).- container_scannedboolean
Whether the compose files and Dockerfiles were read (
container_findingsandauto_updatemean something only then). False unless reviewed.- container_findingsarray of objects
The risky container settings that are not test-only (
docker_socket_mount,auto_updater, ...), each with its file and line.[]when none, or unless reviewed.7 fields in container_findings (each item)
- flagstring
docker_socket_mount(a service mounts the Docker socket: root on the host),auto_updater(an updater replaces the running code or images unattended),unpinned_image(the updater's image, or the images it updates, are not pinned),auto_update_with_wallet(an updater runs beside a service that mounts a wallet or takes a wallet or key variable),default_credential(a secret-named variable has a literal or default value),runs_remote_code(the code downloads code and runs it with no hash or signature check, seeremote_code; review version 9 and later),auto_updater_opt_in(an auto-updater is available but stays off unless you install or switch it on; information only, it does not raise the risk and is not in the review'sflags; review version 11 and later),suspicious_host/malicious_host(a validator or setup document links to a host the checks flag; the host is not named,detailgives the reasons, and the review'srisk_levelisdanger; review version 11 and later). New values may be added. New values may be added; show an unknown value as is (or generically).- pathstring
The file, relative to the repository root. Untrusted repository text: show it as plain text, never as a link.
- lineinteger · unit count · can be null
The line in that file (1-based). Null when not located.
- servicestring · can be null
The compose service. Untrusted repository text: show it as plain text, never as a link. Null for a Dockerfile.
- profilesarray of string · can be null
The service's compose profiles (
[]: none). Untrusted repository text: show it as plain text, never as a link. Null for a Dockerfile.- detailstring · can be null
For
default_credential, the variable's NAME (its value is never served). Forsuspicious_hostandmalicious_host, why the host is flagged: the host reasons (hosts[].reasonsvalues such aspunycode,blocklisted_host,credentials_in_url), comma-separated. Null otherwise.- test_onlyboolean
Whether the file, service or profile is a test, development, example or CI one: listed, but not counted in the review's
risk_levelandflags.
- auto_updatearray of objects
The mechanisms that update the running code or images unattended.
[]when none, or unless reviewed.8 fields in auto_update (each item)
- mechanismstring
container_updater(an image updater service) orgit_pull(an updater script). New values may be added; show an unknown value as is (or generically).- defaultstring · can be null
on(runs with a plainup, or a setup step runs the script),profile(only under a compose profile),off(an opt-in script no step runs). Null when not stated. New values may be added; show an unknown value as is (or generically).- pinned_imageboolean · can be null
Whether the updater's own image is pinned. Null for
git_pull.- pathstring · can be null
The file, relative to the repository root. Untrusted repository text: show it as plain text, never as a link.
- lineinteger · unit count · can be null
The line in that file (1-based). Null when not located.
- profilesarray of string · can be null
The compose profiles it runs under (
[]: none). Untrusted repository text: show it as plain text, never as a link. Null for a script.- opt_outstring · can be null
The command-line flag the script offers to turn its updates off (e.g.
--no-auto-update, or--neuron.autoupdate=falsewith the value to pass; use it exactly as given): without it the script updates by default (defaulton), and a step that runs it without the flag isauto_updater. Untrusted repository text: show it as plain text, never as a link. Null when it offers none, or on a review before version 5.- source_repositorystring · can be null
The repository the updater pulls from (
https://host/owner/name), as a process-manager pack file names it; it may differ from the analysed repository (a-stagingone, say). Repository text: show it as plain text, never as a link. Null when not stated, not in that form, or on a review before version 6.
- remote_codearray of objects · can be null
Where the code runs code it downloads (an unverified one is the finding
runs_remote_code), or loads a model with the model's own code.[]when none, or unless reviewed; null on a review before version 9.6 fields in remote_code (each item)
- kindstring
downloaded_code(the code fetches code and unpacks or runs it; unverified, it raises the flagruns_remote_code) orhf_trust_remote_code(a model is loaded with its remote code allowed; recorded only, never flagged). New values may be added; show an unknown value as is (or generically).- pathstring
The file that fetches or loads it, relative to the repository root. Untrusted repository text: show it as plain text, never as a link.
- lineinteger · unit count · can be null
The line in that file (1-based). Null when not located.
- execobject · can be null
Where the fetched code is run (for
downloaded_code). Null when not located, or forhf_trust_remote_code.2 fields in exec
- pathstring
The file, relative to the repository root. Untrusted repository text: show it as plain text, never as a link.
- lineinteger · unit count · can be null
The line in that file (1-based). Null when not located.
- verifiedboolean
For
downloaded_code, whether a hash or signature check appears beside the download; forhf_trust_remote_code, whether the model revision is pinned. A pattern match in the code, not a proof that the check is sound.- quotestring · can be null
The line as written, at most 300 characters. Untrusted repository text: show it as plain text, never as a link. Null when not recorded.
- blockersarray of objects · optional
Known reasons a role's software cannot start today although its steps match the repository, each found by a dry run (e.g. the repository's bittensor version no longer works with the chain). While a blocker names a role, do not present that role's steps as ready to launch: tell the user before they pay for a machine or a registration. A blocker clears when the repository changes its bittensor requirement; the new version has not been tested until a new dry run.
[]means no known blocker, never that the software was measured to work (also[]unless reviewed, or on a review before version 15). Withrole, only the blockers that name that role. Each role's own answer isroles.<role>.blocked.5 fields in blockers (each item)
- kindstring
sdk_incompatible: the bittensor version the repository requires cannot talk to the chain today, so the software stops when it starts. The setup steps themselves still match the repository. New values may be added; show an unknown value as is (or generically).- rolesarray of string
The roles it stops:
miner,validatoror both. Never empty: a blocker whose roles could not be read is applied to both roles. New values may be added; show an unknown value as is (or generically).- detailstring · can be null
What stops, in one sentence, at most 300 characters. Untrusted repository text: show it as plain text, never as a link. Null when not recorded.
- sourceobject · can be null
Where it stops in the repository's code. Null when not recorded.
2 fields in source
- pathstring
The file, relative to the repository root. Untrusted repository text: show it as plain text, never as a link.
- lineinteger · unit count · can be null
The line in that file (1-based). Null when not located.
- reproduced_onarray of string
Where bittensor.ai reproduced the blocker:
public_finney(a run with no key against the public Finney endpoint),keyed(a run with a registered key),none(the software fails before it connects to the chain).[]means not recorded (a review before version 16), never "not reproduced". New values may be added; show an unknown value as is (or generically).
- assuranceobject · can be null
The review's
summary.assurance: what it screened (the steps, never the code) and what it did not.code_auditedis never true today: the software is third-party and not audited by bittensor.ai. Null unlessreview_statusisreviewed; nothing at all was screened then.7 fields in assurance
- code_auditedboolean
Whether bittensor.ai audited the repository's code. Always false today: nothing audits the code a step installs or runs, only the steps are screened. Never present a review as an audit or as safe.
- screenedarray of string
What this review screened, about the steps only (never the code):
steps_quoted_from_repository(at least one step is quoted verbatim from the repository),commands(each command's risk flags),links(each URL's host verdict),named_files_exist(the files the steps name were looked up in the repository's file list: they exist, nothing more),static_code_patterns(a pattern scan of compose files, Dockerfiles and scripts for auto-updaters, remote code, firewall changes, weight-setting calls and an axon; not a code review). An earlier review screenedcommandsandlinksonly.[]on a review before version 17, which did not record it (claim nothing screened). New values may be added; show an unknown value as is (or generically).- not_checkedarray of string
What no review checks, for every repository:
code_behaviour(what the code does when it runs),dependencies(the packages it installs),container_images(the images it pulls),run_time_downloads(what it downloads while running),commits_after_review(code committed afterreviewed_commit). Always all five. New values may be added; show an unknown value as is (or generically).- reviewed_commitstring · can be null
The commit whose steps were screened (the analysed commit), a full 40-character id. A fresh clone of the default branch may be newer: see
head_moved. Null when unknown: then no checkout command can be given.- repository_headstring · can be null
The newest observed head commit of the repository's default branch: bittensor.ai's own observation when known (the same head as the freshness
head_sha), else the review's. Null when neither is known.- head_movedboolean · can be null
True when the repository has commits after
reviewed_commit, so a freshgit clonegets code these steps were never screened against: say so, and offergit checkout <reviewed_commit>after the clone. False when the head isreviewed_commit; never false while the analysed commit is known not to be the head. Null when the head is unknown.- noticestring
The sentence to show with the steps, before the first command, on every page and in every answer that gives them (never behind a toggle): the software is third-party, not audited by bittensor.ai, and may be malicious; only the steps were screened. At most 1000 characters; never empty.
Response headers
10 headers: ETag, Cache-Control, CDN-Cache-Control, X-BTAI-Stale, X-BTAI-Stale-As-Of, RateLimit-Policy, RateLimit, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
- ETag
Strong validator of this answer. Send it back as
If-None-Match: an unchanged answer is a 304 Not Modified without a body. A settled answer's validator leaves the chain head out, so it stays valid as the head moves.- Cache-Control
One of three classes: settled
public, max-age=3600, stale-while-revalidate=86400(pinned to a block that cannot move), slowpublic, max-age=300, stale-while-revalidate=600(state that moves in minutes or days) or tippublic, max-age=6, stale-while-revalidate=12(follows the chain head); the label routes are cached until the next nightly copy (public, max-age=<seconds>, stale-while-revalidate=60). Neverimmutable.no-storeon an earlier answer served because the data source failed (X-BTAI-Stale).- CDN-Cache-Control
The same class for shared caches (RFC 9213; browsers ignore it): settled 24 h, slow 300 s, tip 6 s, each with
stale-while-revalidateandstale-if-error;no-storewithX-BTAI-Stale.- X-BTAI-Stale
Present only when the data source failed to answer (it timed out or was unavailable) and an earlier answer to the same request is served instead of a 503 (stale if error, RFC 5861). Then
if-error, withX-BTAI-Stale-As-Of,Age(its seconds since then) andWarning: 110 - "Response is Stale", andCache-Control: no-store: the answer is never kept as fresh, and a later request reads again. Prices and quotes are never served this way.- X-BTAI-Stale-As-Of
With
X-BTAI-Stale: when the earlier answer served was produced, an RFC 3339 UTC time (2026-10-21T12:00:00Z).- RateLimit-Policy
The tier's request quota of the current window (IETF draft), e.g.
"tier";q=600.- RateLimit
Requests left in the current window and the seconds until it resets (IETF draft), e.g.
"tier";r=597;t=42.- X-RateLimit-Limit
The tier's request quota of the current window.
- X-RateLimit-Remaining
Requests left in the current window.
- X-RateLimit-Reset
When the current window resets, Unix seconds.
Status codes
200 · 304 · 400 · 401 · 402 · 403 · 404 · 429 · 500 · 503
304 Not Modified: the If-None-Match validator still matches; no body.
Error codes
The codes this endpoint can return. Each links to what it means and what to do.
- AMBIGUOUS_CREDENTIALS
- BAD_GATEWAY
- BILLING_UNAVAILABLE
- BUDGET_EXCEEDED
- CONCURRENCY_LIMIT
- INSUFFICIENT_PERMISSIONS
- INTERNAL_ERROR
- INVALID_CURSOR
- INVALID_LIMIT
- INVALID_NETUID
- INVALID_ROLE
- PAYMENT_REQUIRED
- PLAN_REQUIRED
- RATE_LIMITED
- REPEATED_PARAMETER
- SERVICE_UNAVAILABLE
- SOURCE_BUSY
- SOURCE_NOT_READY
- SOURCE_TIMEOUT
- UNAUTHORIZED
- UNKNOWN_PARAMETER
- VALIDATION_ERROR
From the API's published specification, version 1.200.0.