curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"method": "getLatestBlockhash",
"params": [
{
"commitment": "processed",
"minContextSlot": 1000
}
]
}
'{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"result": {
"context": {
"slot": 2792
},
"value": {
"blockhash": "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N",
"lastValidBlockHeight": 3090
}
}
}curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"method": "getLatestBlockhash",
"params": [
{
"commitment": "processed",
"minContextSlot": 1000
}
]
}
'{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"result": {
"context": {
"slot": 2792
},
"value": {
"blockhash": "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N",
"lastValidBlockHeight": 3090
}
}
}The JSON-RPC protocol version.
2.0 "2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getLatestBlockhash "getLatestBlockhash"
Optional configuration object for the request.
Successfully retrieved the latest blockhash information.
The JSON-RPC protocol version.
2.0 "2.0"
Identifier matching the request.
"1"
RpcResponse containing blockhash information.
Show child attributes
Blockhash and its validity details.
Show child attributes
The latest Solana blockhash encoded as a base-58 string, required for transaction creation.
"EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N"
The last Solana block height at which this blockhash will be accepted in transactions.
3090
Was this page helpful?