Solana
Solana
Solana
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
getGenesisHash is a Solana JSON-RPC method that returns the cluster's genesis hash — the base-58 fingerprint of the very first block that anchors the ledger securing SOL. Because Solana has no chain ID, this hash is the canonical way to tell clusters apart: mainnet, devnet, and testnet each have a distinct, immutable genesis hash. Send the request as a JSON-RPC 2.0 POST with an empty positional params array to https://solana.therpc.io/YOUR_API_KEY and you get the hash string back.
هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| string | The base-58 genesis hash. |
| الكود | الرسالة | السبب |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |