subnetInfo_getSubnetInfo - JSON-RPC Method
Fetch SCALE-encoded information for a specific Bittensor subnet (by netuid).
Bittensor RPC endpoint: endpoint URLs, plans and pricing.
Description
Bittensor‑specific APIs to inspect subnets: hyperparameters, dynamic state, metagraphs, mechagraphs, and pruning hints. Use to build subnet dashboards and analytics.
Returns SCALE-encoded info for the subnet identified by netuid.
Parameters
| Param | Type | Description |
|---|---|---|
netuid | number | Subnet id (e.g., 1) |
at | string? | Optional block hash |
Code Examples
curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "subnetInfo_getSubnetInfo",
"params": [1, null],
"id": 1
}'