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
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
}JSON-RPC request
Was this page helpful?