For the complete documentation index, see llms.txt. This page is also available as Markdown.

subnetinfo_getsubnetinfo bittensor

Bittensor-specific custom RPC method. This method is implemented by the Subtensor runtime and is not part of the standard Substrate JSON-RPC surface. Call against a GetBlock endpoint configured for the Substrate interface. The Bittensor Python SDK provides typed wrappers; standard Polkadot.js and substrateinterface require the raw RPC interface (see SDK Integration tabs below).

Returns information for a single subnet by its netUid. Same response shape as one element of subnetInfo_getSubnetsInfo. Cheaper than fetching all subnets when you only need one.

Parameters

Parameter
Type
Required
Description

netuid

integer

Yes

Subnet ID (numeric, e.g. 1 for the root subnet)

blockHash

string

No

Block hash to query at. Omit for the latest block.

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "subnetInfo_getSubnetInfo",
    "params": [
        1
    ],
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result

object | null

Subnet info, or null if no subnet exists at the given netUid

Use Cases

  • Subnet detail pages in dashboards

  • Pre-flight checks before submitting a register-neuron extrinsic

  • Reading current registration cost (burn) for a specific subnet

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

-32601

Method not found

Method does not exist on this interface — check whether you're calling a Substrate method on an EVM endpoint or vice versa

-32603

Internal error

Server-side error while processing the request

429

Too Many Requests

Rate limit exceeded for your plan

SDK Integration

Was this helpful?