Shred Delivery and Sender are now live! Get earliest access to raw Solana data and optimized transaction sending. Learn about Shred Delivery | Learn about Sender
简体中文
返回最新的区块哈希。
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getLatestBlockhash", "params": [ { "commitment": "已处理", "minContextSlot": 1000 } ] }'
{ "jsonrpc": "2.0", "id": "1", "result": { "context": { "slot": 2792 }, "value": { "blockhash": "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N", "lastValidBlockHeight": 3090 } } }
您的Helius API密钥。您可以在仪表板中免费获取一个。
JSON-RPC协议版本。
2.0
"2.0"
请求的唯一标识符。
"1"
要调用的RPC方法名称。
getLatestBlockhash
"getLatestBlockhash"
请求的可选配置对象。
Show child attributes
成功检索到最新的区块哈希信息。
与请求匹配的标识符。
包含区块哈希信息的RpcResponse。
此页面对您有帮助吗?