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": "45", "method": "isBlockhashValid", "params": [ "J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW", { "commitment": "processed" } ] } '
{ "jsonrpc": "2.0", "id": "45", "result": { "context": { "slot": 2483 }, "value": false } }
您的 Helius API 密钥。您可以在仪表板中免费获取一个。
JSON-RPC 协议版本。
2.0
"2.0"
请求的唯一标识符。
"45"
要调用的 RPC 方法名称。
isBlockhashValid
"isBlockhashValid"
用于评估区块哈希有效性的参数。
要检查其有效性状态的Blockhash,作为base-58编码的字符串。
"J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW"
成功评估Blockhash的有效性。
JSON-RPC协议版本。
与请求匹配的标识符。
Blockhash有效性结果。
显示 子属性
响应的上下文。
获取数据的槽位。
2483
布尔值,指示此 blockhash 是否仍在其有效窗口内并可用于新交易。
false
此页面对您有帮助吗?