platform.getSubnets RPC Method
To use the platform.getSubnets method on the P-Chain, ensure that the end of your URL includes ext/bc/P.
Parameters
ids
array
Loading...
Returns
subnets
array
Loading...
id
string
Loading...
controlKeys
array
Loading...
key
string
Loading...
threshold
string
Loading...
Request
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "platform.getSubnets",6"params": {7"ids": [8"11111111111111111111111111111111LpoYY"9]10},11"id": 112}'
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "platform.getSubnets",6"params": {7"ids": [8"11111111111111111111111111111111LpoYY"9]10},11"id": 112}'
Response
1{2"jsonrpc": "2.0",3"result": {4"subnets": [5{6"id": "11111111111111111111111111111111LpoYY",7"controlKeys": [],8"threshold": "0"9}10]11},12"id": 113}
1{2"jsonrpc": "2.0",3"result": {4"subnets": [5{6"id": "11111111111111111111111111111111LpoYY",7"controlKeys": [],8"threshold": "0"9}10]11},12"id": 113}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free