Skip to main content

platform.getSubnets RPC Method

Get all the Subnets that exist.

Updated on
Nov 2, 2023

platform.getSubnets RPC Method

Parameters

ids
[]string
The ids of the subnets to get information about.

Returns

id
string
The id of thesubnet.
controlKeys
[]string
keyvalues.
threshold
string
thresholdsignatures from addresses in controlKeys are needed to add a validator to the subnet.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"method": "platform.getSubnets",
6
"params": {
7
"ids":["BE5Nv8objSftNwxzcxkZGwCfVs3FPdJBio4DBwCF2A5i7RasU"]
8
},
9
"id": 1
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free