Last updated 11 months ago
Was this helpful?
Get the Subnet that validates a given blockchain.
This method will use 80 .
80
blockchainID - string - the blockchain’s ID.
blockchainID
subnetID - string - the ID of the Subnet that validates the blockchain.
subnetID
// Result { "jsonrpc": "2.0", "result": { "subnetID": "2bRCr6B4MiEfSjidDwxDpdCyviwnfUVqB2HGwhm947w9YYqb7r" }, "id": 1 }
curl https://mainnet.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/P \ -X POST \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "platform.validatedBy", "params": { "blockchainID": "KDYHHKjM4yTJTT8H8qPs5KXzE6gQH5TZrmP1qVr1P6qECj3XN" }, "id": 1 }'
curl https://fuji.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/P \ -X POST \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "platform.validatedBy", "params": { "blockchainID": "KDYHHKjM4yTJTT8H8qPs5KXzE6gQH5TZrmP1qVr1P6qECj3XN" }, "id": 1 }'