gRPCIsBlockhashValid

solana-mainnet.nodit.io:443 geyser.Geyser/IsBlockhashValidunary

Checks whether a blockhash is still valid. Use it to confirm that a signed transaction's blockhash has not expired before sending it.

Request Body
blockhashstringrequired

Blockhash to check (Base58).

commitmentstring (enum)

Commitment level used for the check. One of PROCESSED, CONFIRMED, or FINALIZED. Defaults to PROCESSED when omitted.

Responses
slotstring (uint64)

Current slot number used for the check.

validboolean

true if the blockhash is valid, false if it has expired or is unknown.

X-API-KEY
RequestCU10
grpcurl
grpcurl \
  -import-path . -proto geyser.proto \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -d '{
    "blockhash": "8ZPbuZ5Y3iuhyBuUNKFxa8bW8Z6nb9gpwNFWmMjXZVsZ",
    "commitment": "CONFIRMED"
  }' \
  solana-mainnet.nodit.io:443 geyser.Geyser/IsBlockhashValid
Response
Example · 200
{
  "slot": "372215930",
  "valid": true
}