Skip to main content

platform.getSubnets RPC Method

Get all the Subnets that exist.

Updated on
Apr 29, 2026
To use the platform.getSubnets method on the P-Chain, ensure that the end of your URL includes ext/bc/P.

Parameters

ids
array

The ids of the subnets to get information about

Returns

subnets
array

An array containing objects, each representing a subnet with specific details such as its ID, control keys, and threshold

id
string

The id of thesubnet

controlKeys
array

List of control keys for the subnet

key
string

A control key for the subnet

threshold
string

The threshold signatures from addresses in controlKeys are needed to add a validator to the subnet

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"subnets": [
5
{
6
"id": "11111111111111111111111111111111LpoYY",
7
"controlKeys": [],
8
"threshold": "0"
9
}
10
]
11
},
12
"id": 1
13
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"subnets": [
5
{
6
"id": "11111111111111111111111111111111LpoYY",
7
"controlKeys": [],
8
"threshold": "0"
9
}
10
]
11
},
12
"id": 1
13
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free