blockhash

Get a recent blockhash for transaction construction with an optional offset value.

Request

Method:

GET ./api/v2/system/blockhash

Parameters:

Parameter
Type
Description

offeset

uint64

OPTIONAL. Slot offset from the most recent cached blockhash. Default 0.

Request example:

curl --header "Authorization: $AUTH_HEADER" \
'https://ny.solana.dex.blxrbdn.com/api/v2/system/blockhash?offset=5'

Response:

Fields:

Fields
Type
Description

blockHash

string

The recent Solana blockhash with the applied offset.

timestamp

google.protobuf.Timestamp

Time stamp of the event.

Response Example:

{
  "blockHash": "14hCT6G6XwE4EPEQUTyv5ZP6v5ySRXKRajfLydKt6XnU",
  "timestamp": null
}

Last updated