Skip to main content

Services documentation

Use high performance APIs provided by Infura to scale your dapp or Snap.

getGenesisHash

Returns the genesis hash for the network. This method uses 160 credits from your daily balance.

Parameters

None

Returns

result: (string) - The hash encoded as a base58 string.

Request

curl https://solana-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getGenesisHash"}'

Response

{
"jsonrpc":"2.0",
"result":"EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG",
"id":1
}