platform.getValidatorsAt RPC Method
Parameter
Höhe
int
Wird geladen...
subnetID
Zeichenkette
Wird geladen...
Rücksendungen
Validatoren
Objekt
Wird geladen...
Anfrage
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--header 'Content-Type: application/json' \3--data-raw '{4"jsonrpc": "2.0",5"id": 1,6"method": "platform.getValidatorsAt",7"params": [8{9"height": 1,10"subnetID": "11111111111111111111111111111111LpoYY"11}12]13}'
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--header 'Content-Type: application/json' \3--data-raw '{4"jsonrpc": "2.0",5"id": 1,6"method": "platform.getValidatorsAt",7"params": [8{9"height": 1,10"subnetID": "11111111111111111111111111111111LpoYY"11}12]13}'
1import { ethers } from "ethers";23(async () => {4const Anbieter = new ethers.JsonRpcProvider(5„https://docs-demo.avalanche-mainnet.quiknode.pro“6);7const params = [8{9"height": 1,10"subnetID": "11111111111111111111111111111111LpoYY",11}12];13const result = await provider.send("platform.getValidatorsAt", params);14Konsole.Protokoll(Ergebnis);15})();
1import { ethers } from "ethers";23(async () => {4const Anbieter = new ethers.JsonRpcProvider(5„https://docs-demo.avalanche-mainnet.quiknode.pro“6);7const params = [8{9"height": 1,10"subnetID": "11111111111111111111111111111111LpoYY",11}12];13const result = await provider.send("platform.getValidatorsAt", params);14Konsole.Protokoll(Ergebnis);15})();
1aus web3 import Web3, HTTPProvider23w3 = Web3(HTTPProvider(„https://docs-demo.avalanche-mainnet.quiknode.pro“)))4params = {5"height": 1,6"subnetID": "11111111111111111111111111111111LpoYY"7}89request = w3.provider.make_request('platform.getValidatorsAt', [params])10print(request)
1aus web3 import Web3, HTTPProvider23w3 = Web3(HTTPProvider(„https://docs-demo.avalanche-mainnet.quiknode.pro“)))4params = {5"height": 1,6"subnetID": "11111111111111111111111111111111LpoYY"7}89request = w3.provider.make_request('platform.getValidatorsAt', [params])10print(request)
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen