⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

subnetInfo_getSubnetsInfo

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 information for all subnets.

JavaScript (fetch)

Decoding

The result is SCALE-encoded bytes. Use polkadot.js with Bittensor type definitions to decode into rich structures (e.g., metagraphs, hyperparameters). See Bittensor runtime docs for exact types.

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_getSubnetsInfo","params":[null],"id":1}'