Metodo RPC getSlotLeader
Restituisce l'attuale slot leader
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getSlotLeader",> "params": [> {> "commitment": "finalized"> }> ]> }> '
params
objectoptional
Oggetto di configurazione contenente i seguenti campi:
result
Response
{"jsonrpc": "2.0","result": "ENvAW7JScgYq6o4zKZwewtkzzJgDzuJAFxYasvmEQdpS","id": 1}
string
Pubkey di identità del nodo come stringa codificata in base-58
Is this page helpful?