curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.validatedBy' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.validatedBy",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"subnetID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
},
"id": 1
}Returns the ID of the Subnet that validates the specified blockchain
curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.validatedBy' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.validatedBy",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"subnetID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
},
"id": 1
}JSON-RPC request
Was this page helpful?