platform.validatedBy RPC Method
Parameters
blockchainID
string
the blockchain’s ID.
Returns
subnetID
string
the ID of theSubnet that validates the blockchain.
Request
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/P \2--header 'Content-Type: application/json' \3--data-raw '{4"jsonrpc": "2.0",5"method": "platform.validatedBy",6"params": {7"blockchainID": "2H1pfQqnJq1NEw1YK6CWdoH2ucrvaET8renpkxChLtnNWGYrYa"8},9"id": 110}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free