cURL
curl --request POST \ --url 'https://api.avax.network/ext/bc/P#platform.getL1Validator' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "platform.getL1Validator", "params": {}, "id": 1 }'
{ "jsonrpc": "2.0", "result": { "subnetID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "height": "1000000000" }, "id": 1 }
GetL1Validator returns the L1 validator if it exists
JSON-RPC request
"2.0"
"platform.getL1Validator"
Method parameters
Show child attributes
1
Successful response
Method result
Was this page helpful?