getGenesisHash

getGenesisHash RPC Method

post
/

Returns the genesis hash of the Solana network. The genesis hash is a unique identifier for the blockchain network that represents the initial state of the ledger.

Authorizations
AuthorizationstringOptional

Authorization header for API key authentication.

Example:

Authorization: your-api-key-here
Body
jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The RPC method name

Example: getGenesisHashPossible values:
Responses
chevron-right
200

Successful Response

application/json

RPC response containing the genesis hash

jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier matching the original request

Example: 1
stringOptional
or
numberOptional
resultstringOptional

Genesis hash as a base-58 encoded string. This is a unique identifier for the blockchain network that represents the initial state of the ledger. Present when the request is successful.

Example: GH7ome3EiwEr7tu9JuTh2dpYWBJK3z69Xm1ZE3MEE6JCPattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
post
/

Last updated