POST
/
P#platform.getSubnets
platform.getSubnets
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
}

Body

application/json

JSON-RPC request

jsonrpc
string
default:2.0
required
Example:

"2.0"

method
string
default:platform.getSubnets
required
Example:

"platform.getSubnets"

params
object
required

Method parameters

id
integer
default:1
required
Example:

1

Response

Successful response

jsonrpc
string
required
Example:

"2.0"

result
object
required

Method result

id
integer
required
Example:

1