getBlockCommitment RPC-methode
Geeft commitment terug voor een specifiek blok
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlockCommitment",> "params": [> 5> ]> }> '
params
u64required
Bloknummer, geïdentificeerd door Slot.
result
Response
{"jsonrpc": "2.0","result": {"commitment": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0, 0, 0, 10, 32],"totalStake": 42},"id": 1}
object
Het resultatenveld is een JSON-object dat het volgende bevat:
Is this page helpful?