Shred Delivery and Sender are now live! Get earliest access to raw Solana data and optimized transaction sending. Learn about Shred Delivery | Learn about Sender
简体中文
返回特定区块的承诺。
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getBlockCommitment", "params": [ 430 ] }'
{ "jsonrpc": "2.0", "id": "<string>", "result": { "commitment": null, "totalStake": 384962848972206900 } }
您的 Helius API 密钥。您可以在仪表板中免费获取一个。
JSON-RPC协议版本。
2.0
请求的唯一标识符。
"1"
要调用的RPC方法名称。
getBlockCommitment
请求的参数。
由Slot标识的区块号(作为u64整数)。
u64
成功检索到区块承诺。
Show child attributes
此页面对您有帮助吗?