New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
简体中文
返回特定区块的承诺。
cURL
curl --request POST \ --url 'https://mainnet.helius-rpc.com/?api-key=' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": "1", "method": "getBlockCommitment", "params": [ 430 ] } '
{ "jsonrpc": "2.0", "id": "<string>", "result": { "commitment": "<unknown>", "totalStake": 384962848972206900 } }
您的 Helius API 密钥。您可以在仪表板中免费获取一个。
JSON-RPC协议版本。
2.0
请求的唯一标识符。
"1"
要调用的RPC方法名称。
getBlockCommitment
请求的参数。
由Slot标识的区块号(作为u64整数)。
u64
成功检索到区块承诺。
显示 子属性
记录在每个深度上对区块投票的集群权益数量(以lamports为单位)的u64整数数组。
[0, 0, 0, 0, 0, 10, 32]
当前纪元的总活跃质押,以 lamports 为单位。
384962848972206900
此页面对您有帮助吗?