Skip to main content

platform.getSubnets RPC Method

Get all the Subnets that exist.

Updated on
Dec 4, 2024

platform.getSubnets RPC Method

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
1
curl --location --request POST https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"method": "platform.getSubnets",
6
"params": {
7
"ids":["11111111111111111111111111111111LpoYY"]
8
},
9
"id": 1
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free