跳转到主要内容
POST
/
isBlockhashValid
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --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
  }
}

Authorizations

api-key
string
query
required

您的 Helius API 密钥。您可以在仪表板中免费获取一个。

Body

application/json
jsonrpc
enum<string>
default:2.0

JSON-RPC 协议版本。

Available options:
2.0
Example:

"2.0"

id
string
default:1

请求的唯一标识符。

Example:

"45"

method
enum<string>
default:isBlockhashValid

要调用的 RPC 方法名称。

Available options:
isBlockhashValid
Example:

"isBlockhashValid"

params
array

用于评估区块哈希有效性的参数。

Response

成功评估Blockhash的有效性。

jsonrpc
enum<string>

JSON-RPC协议版本。

Available options:
2.0
Example:

"2.0"

id
string

与请求匹配的标识符。

Example:

"45"

result
object

Blockhash有效性结果。

I