getLatestBlockhash RPC Metodu

En son blockhash'i döndürür

Sürüm Kısıtlaması

Bu metot sadece solana-core v1.9 veya daha yeni sürümlerde kullanılabilir. Lütfen solana-core v1.8 ve altındaki sürümler için getRecentBlockhash kullanın.

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getLatestBlockhash",
> "params": [
> {
> "commitment": "processed"
> }
> ]
> }
> '

params

objectoptional

Aşağıdaki alanları içeren yapılandırma nesnesi:

result

Response
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 2792
},
"value": {
"blockhash": "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N",
"lastValidBlockHeight": 3090
}
},
"id": 1
}
object

value alanı aşağıdakileri içeren bir JSON nesnesine ayarlanmış RpcResponse JSON nesnesi:

Is this page helpful?