Learn getGenesisHash use cases, code examples, request parameters, response structure, and tips.
getGenesisHash
RPC method returns the genesis hash of the Solana cluster to which you are connected. The genesis hash is a unique identifier for a specific Solana network (e.g., Mainnet Beta, Devnet, Testnet, or a private cluster).
result
field of the JSON-RPC response will be a string containing the base-58 encoded genesis hash.
getGenesisHash
RPC method to retrieve the unique identifier for a Solana cluster.