getGenesisHash RPC Method
Returns the genesis hash
params
Noneresult
string
A Hash as base-58 encoded string
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getGenesisHash"> }> '
Response
{"jsonrpc": "2.0","result": "GH7ome3EiwEr7tu9JuTh2dpYWBJK3z69Xm1ZE3MEE6JC","id": 1}
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getGenesisHash"> }> '
params
Noneresult
Response
{"jsonrpc": "2.0","result": "GH7ome3EiwEr7tu9JuTh2dpYWBJK3z69Xm1ZE3MEE6JC","id": 1}
string
A Hash as base-58 encoded string
Is this page helpful?