cURL
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.
JSON-RPC request
"2.0"
"platform.getSubnets"
Method parameters
Show child attributes
Avalanche ID in cb58 format
1
Successful response
Method result
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Unsigned 32-bit integer as string
"100000"
Was this page helpful?