Parameters
chainId
string
default:"1329"
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:"block_by_hash"
required
JSON-RPC method name.
The parameters for method block:_by_hash [hash].Positional parameters for block_by_hash:params[]: 32 Bytes - hash of the block where this transaction was included. Null when pending.
Returns
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1329 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "block_by_hash",
"params": [
"0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"block_id": {
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
"parts": {
"total": 1,
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
}
},
"block": {
"header": {
"version": {
"__truncated": true
},
"chain_id": "cosmoshub-2",
"height": "12",
"time": "2019-04-22T17:01:51.701356223Z",
"last_block_id": {
"__truncated": true
},
"last_commit_hash": "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812",
"data_hash": "970886F99E77ED0D60DA8FCE0447C2676E59F2F77302B0C4AA10E1D02F18EF73",
"validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
"__truncated": true
},
"data": [
"yQHwYl3uCkKoo2GaChRnd+THLQ2RM87nEZrE19910Z28ABIUWW/t8AtIMwcyU0sT32RcMDI9GF0aEAoFdWF0b20SBzEwMDAwMDASEwoNCgV1YXRvbRIEMzEw..."
],
"evidence": [
{
"__truncated": true
}
],
"last_commit": {
"height": 0,
"round": 0,
"block_id": {
"__truncated": true
},
"signatures": [
"..."
]
}
}
}
}