cURL
curl --request POST \ --url 'https://api.avax.network/ext/bc/P#platform.getSubnet' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "method": "platform.getSubnet", "params": {}, "id": 1 } '
{ "jsonrpc": "2.0", "result": { "isPermissioned": true, "controlKeys": [ "<string>" ], "threshold": "100000", "locktime": "1000000000", "subnetTransformationTxID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "conversionID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "managerChainID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "managerAddress": {} }, "id": 1 }
Calls the platform.getSubnet method
JSON-RPC request
"2.0"
"platform.getSubnet"
Method parameters
Show child attributes
Avalanche ID in cb58 format
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
1
Successful response
Method result
Unsigned 32-bit integer as string
"100000"
Unsigned 64-bit integer as string
"1000000000"
External type: types.JSONByteSlice
Was this page helpful?