getBlockhash

JSON-RPC-Anfrage

{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockhash",
"params": []
}

JSON-RPC-Antwort

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockhash": "base58Blockhash"
}
}

cURL-Beispiel

curl -X POST http://localhost:8080 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getBlockhash","params":[]}'

TypeScript SDK

const { blockhash } = await client.getBlockhash();
console.log("Current blockhash:", blockhash);

Is this page helpful?

Inhaltsverzeichnis

Seite bearbeiten

Verwaltet von

© 2026 Solana Foundation.
Alle Rechte vorbehalten.
Verbinden Sie sich