curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getSubnets' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getSubnets",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"subnets": [
{
"id": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
"controlKeys": [
"<string>"
],
"threshold": "100000"
}
]
},
"id": 1
}Returns information about the specified Subnets. The response will include the primary network.
curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getSubnets' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getSubnets",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"subnets": [
{
"id": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
"controlKeys": [
"<string>"
],
"threshold": "100000"
}
]
},
"id": 1
}JSON-RPC request
Was this page helpful?