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
成功检索到区块承诺。
显示 子属性
此页面对您有帮助吗?