⚡ We welcome businesses to test our enterprise-grade service

sol
Solana (SOL)

Method: POST isBlockhashValid

dropdown

方法 RPC isBlockhashValid 例如 Solana (SOL)

POST isBlockhashValid

Method not allowed

新:此方法仅在solana-core v1.9或更新中可用。 请使用getfeecalculatorforblockhash进行索拉纳核v1.8

返回Blockhash是否仍然有效

Parameters

blockhash - 细绳

该块的重叠,作为基本58编码的字符串

commitment - 目的

选修的

承诺(用于检索Blockhash)

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "isBlockhashValid",
"params": ["J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW", null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}