Granite Upgrade Activates in09d:00h:01m:37s
Subnets

platform.getSubnets

GetSubnets returns the subnets whose ID are in [args.IDs] The response will include the primary network

POST
/ext/bc/P#platform.getSubnets

JSON-RPC request

jsonrpcstring
methodstring
params

Method parameters

idinteger

Response Body

application/json

application/json

curl -X POST "https://api.avax.network/ext/bc/P#platform.getSubnets" \  -H "Content-Type: application/json" \  -d '{    "jsonrpc": "2.0",    "method": "platform.getSubnets",    "params": {},    "id": 1  }'
{
  "jsonrpc": "2.0",
  "result": {
    "subnets": [
      {
        "id": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
        "controlKeys": [
          "string"
        ],
        "threshold": "100000"
      }
    ]
  },
  "id": 1
}
{
  "jsonrpc": "2.0",
  "error": {
    "code": 0,
    "message": "string",
    "data": {}
  },
  "id": 1
}

Is this guide helpful?