Parameters
chainId
string
default:"25"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"genesis"
required
JSON-RPC method name.
This method does not require any parameters.
Returns
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=25 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "genesis",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"genesis": {
"genesis_time": "2019-04-22T17:00:00Z",
"chain_id": "cosmoshub-2",
"initial_height": "2",
"consensus_params": {
"block": {
"__truncated": true
},
"evidence": {
"__truncated": true
},
"validator": {
"__truncated": true
}
},
"validators": [
{
"__truncated": true
}
],
"app_hash": "",
"app_state": {}
}
}
}