getLatestBlockhash RPC-Methode
Gibt den neuesten Blockhash zurück
Versionseinschränkung
Diese Methode ist nur in solana-core
v1.9 oder neuer verfügbar. Bitte
verwenden Sie getRecentBlockhash für
solana-core
v1.8 und älter.
$ 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
Konfigurationsobjekt, das die folgenden Felder enthält:
result
Response
{"jsonrpc": "2.0","result": {"context": {"slot": 2792},"value": {"blockhash": "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N","lastValidBlockHeight": 3090}},"id": 1}
object
RpcResponse JSON-Objekt mit value
Feld, das auf ein JSON-Objekt gesetzt ist,
das Folgendes enthält:
Is this page helpful?