getBlockCommitment RPC Metodu
Belirli bir blok için taahhüt bilgisini döndürür
$ 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
Slot ile tanımlanan blok numarası.
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
Sonuç alanı aşağıdakileri içeren bir JSON nesnesi olacaktır:
Is this page helpful?