getGenesisHash

Returns the genesis hash.

This method will use 30 Compute Units.


Parameters

None.

Returns

result The hash encoded as base-58 string.

// Result
{
	"jsonrpc": "2.0",
	"result": "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d",
	"id": 1
}
curl https://mainnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","id":1, "method":"getGenesisHash"}'
    

Last updated

Was this helpful?