Metodo RPC getLatestBlockhash
Restituisce l'ultimo blockhash
Restrizione di versione
Questo metodo è disponibile solo in solana-core
v1.9 o più recente. Si prega
di utilizzare getRecentBlockhash per
solana-core
v1.8 e versioni precedenti.
$ 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
Oggetto di configurazione contenente i seguenti campi:
result
Response
{"jsonrpc": "2.0","result": {"context": {"slot": 2792},"value": {"blockhash": "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N","lastValidBlockHeight": 3090}},"id": 1}
object
Oggetto JSON RpcResponse con il campo value
impostato su un oggetto JSON che
include:
Is this page helpful?