GetBlockByHeight
curl --request GET \
--url https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}import requests
url = "https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"block": {
"header": {
"version": {
"block": "<string>",
"app": "<string>"
},
"chain_id": "<string>",
"height": "<string>",
"time": "2023-11-07T05:31:56Z",
"last_block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"last_commit_hash": "aSDinaTvuI8gbWludGxpZnk=",
"data_hash": "aSDinaTvuI8gbWludGxpZnk=",
"validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"next_validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"consensus_hash": "aSDinaTvuI8gbWludGxpZnk=",
"app_hash": "aSDinaTvuI8gbWludGxpZnk=",
"last_results_hash": "aSDinaTvuI8gbWludGxpZnk=",
"evidence_hash": "aSDinaTvuI8gbWludGxpZnk=",
"proposer_address": "aSDinaTvuI8gbWludGxpZnk="
},
"data": {
"txs": [
"aSDinaTvuI8gbWludGxpZnk="
]
},
"evidence": {
"evidence": [
{
"duplicate_vote_evidence": {
"vote_a": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"timestamp": "2023-11-07T05:31:56Z",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"validator_index": 123,
"signature": "aSDinaTvuI8gbWludGxpZnk=",
"extension": "aSDinaTvuI8gbWludGxpZnk=",
"extension_signature": "aSDinaTvuI8gbWludGxpZnk="
},
"vote_b": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"timestamp": "2023-11-07T05:31:56Z",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"validator_index": 123,
"signature": "aSDinaTvuI8gbWludGxpZnk=",
"extension": "aSDinaTvuI8gbWludGxpZnk=",
"extension_signature": "aSDinaTvuI8gbWludGxpZnk="
},
"total_voting_power": "<string>",
"validator_power": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"light_client_attack_evidence": {
"conflicting_block": {
"signed_header": {
"header": {
"version": {
"block": "<string>",
"app": "<string>"
},
"chain_id": "<string>",
"height": "<string>",
"time": "2023-11-07T05:31:56Z",
"last_block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"last_commit_hash": "aSDinaTvuI8gbWludGxpZnk=",
"data_hash": "aSDinaTvuI8gbWludGxpZnk=",
"validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"next_validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"consensus_hash": "aSDinaTvuI8gbWludGxpZnk=",
"app_hash": "aSDinaTvuI8gbWludGxpZnk=",
"last_results_hash": "aSDinaTvuI8gbWludGxpZnk=",
"evidence_hash": "aSDinaTvuI8gbWludGxpZnk=",
"proposer_address": "aSDinaTvuI8gbWludGxpZnk="
},
"commit": {
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"timestamp": "2023-11-07T05:31:56Z",
"signature": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
},
"validator_set": {
"validators": [
{
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
}
],
"proposer": {
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
},
"total_voting_power": "<string>"
}
},
"common_height": "<string>",
"byzantine_validators": [
{
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
}
],
"total_voting_power": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}
]
},
"last_commit": {
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"timestamp": "2023-11-07T05:31:56Z",
"signature": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
},
"sdk_block": {
"header": {
"version": {
"block": "<string>",
"app": "<string>"
},
"chain_id": "<string>",
"height": "<string>",
"time": "2023-11-07T05:31:56Z",
"last_block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"last_commit_hash": "aSDinaTvuI8gbWludGxpZnk=",
"data_hash": "aSDinaTvuI8gbWludGxpZnk=",
"validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"next_validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"consensus_hash": "aSDinaTvuI8gbWludGxpZnk=",
"app_hash": "aSDinaTvuI8gbWludGxpZnk=",
"last_results_hash": "aSDinaTvuI8gbWludGxpZnk=",
"evidence_hash": "aSDinaTvuI8gbWludGxpZnk=",
"proposer_address": "<string>"
},
"data": {
"txs": [
"aSDinaTvuI8gbWludGxpZnk="
]
},
"evidence": {
"evidence": [
{
"duplicate_vote_evidence": {
"vote_a": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"timestamp": "2023-11-07T05:31:56Z",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"validator_index": 123,
"signature": "aSDinaTvuI8gbWludGxpZnk=",
"extension": "aSDinaTvuI8gbWludGxpZnk=",
"extension_signature": "aSDinaTvuI8gbWludGxpZnk="
},
"vote_b": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"timestamp": "2023-11-07T05:31:56Z",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"validator_index": 123,
"signature": "aSDinaTvuI8gbWludGxpZnk=",
"extension": "aSDinaTvuI8gbWludGxpZnk=",
"extension_signature": "aSDinaTvuI8gbWludGxpZnk="
},
"total_voting_power": "<string>",
"validator_power": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"light_client_attack_evidence": {
"conflicting_block": {
"signed_header": {
"header": {
"version": {
"block": "<string>",
"app": "<string>"
},
"chain_id": "<string>",
"height": "<string>",
"time": "2023-11-07T05:31:56Z",
"last_block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"last_commit_hash": "aSDinaTvuI8gbWludGxpZnk=",
"data_hash": "aSDinaTvuI8gbWludGxpZnk=",
"validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"next_validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"consensus_hash": "aSDinaTvuI8gbWludGxpZnk=",
"app_hash": "aSDinaTvuI8gbWludGxpZnk=",
"last_results_hash": "aSDinaTvuI8gbWludGxpZnk=",
"evidence_hash": "aSDinaTvuI8gbWludGxpZnk=",
"proposer_address": "aSDinaTvuI8gbWludGxpZnk="
},
"commit": {
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"timestamp": "2023-11-07T05:31:56Z",
"signature": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
},
"validator_set": {
"validators": [
{
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
}
],
"proposer": {
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
},
"total_voting_power": "<string>"
}
},
"common_height": "<string>",
"byzantine_validators": [
{
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
}
],
"total_voting_power": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}
]
},
"last_commit": {
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"timestamp": "2023-11-07T05:31:56Z",
"signature": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}base
GetBlockByHeight
gRPC: cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight (reference)
GetBlockByHeight queries block for given height.
GET
/
cosmos
/
base
/
tendermint
/
v1beta1
/
blocks
/
{height}
GetBlockByHeight
curl --request GET \
--url https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}import requests
url = "https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/blocks/{height}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"block": {
"header": {
"version": {
"block": "<string>",
"app": "<string>"
},
"chain_id": "<string>",
"height": "<string>",
"time": "2023-11-07T05:31:56Z",
"last_block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"last_commit_hash": "aSDinaTvuI8gbWludGxpZnk=",
"data_hash": "aSDinaTvuI8gbWludGxpZnk=",
"validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"next_validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"consensus_hash": "aSDinaTvuI8gbWludGxpZnk=",
"app_hash": "aSDinaTvuI8gbWludGxpZnk=",
"last_results_hash": "aSDinaTvuI8gbWludGxpZnk=",
"evidence_hash": "aSDinaTvuI8gbWludGxpZnk=",
"proposer_address": "aSDinaTvuI8gbWludGxpZnk="
},
"data": {
"txs": [
"aSDinaTvuI8gbWludGxpZnk="
]
},
"evidence": {
"evidence": [
{
"duplicate_vote_evidence": {
"vote_a": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"timestamp": "2023-11-07T05:31:56Z",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"validator_index": 123,
"signature": "aSDinaTvuI8gbWludGxpZnk=",
"extension": "aSDinaTvuI8gbWludGxpZnk=",
"extension_signature": "aSDinaTvuI8gbWludGxpZnk="
},
"vote_b": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"timestamp": "2023-11-07T05:31:56Z",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"validator_index": 123,
"signature": "aSDinaTvuI8gbWludGxpZnk=",
"extension": "aSDinaTvuI8gbWludGxpZnk=",
"extension_signature": "aSDinaTvuI8gbWludGxpZnk="
},
"total_voting_power": "<string>",
"validator_power": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"light_client_attack_evidence": {
"conflicting_block": {
"signed_header": {
"header": {
"version": {
"block": "<string>",
"app": "<string>"
},
"chain_id": "<string>",
"height": "<string>",
"time": "2023-11-07T05:31:56Z",
"last_block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"last_commit_hash": "aSDinaTvuI8gbWludGxpZnk=",
"data_hash": "aSDinaTvuI8gbWludGxpZnk=",
"validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"next_validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"consensus_hash": "aSDinaTvuI8gbWludGxpZnk=",
"app_hash": "aSDinaTvuI8gbWludGxpZnk=",
"last_results_hash": "aSDinaTvuI8gbWludGxpZnk=",
"evidence_hash": "aSDinaTvuI8gbWludGxpZnk=",
"proposer_address": "aSDinaTvuI8gbWludGxpZnk="
},
"commit": {
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"timestamp": "2023-11-07T05:31:56Z",
"signature": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
},
"validator_set": {
"validators": [
{
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
}
],
"proposer": {
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
},
"total_voting_power": "<string>"
}
},
"common_height": "<string>",
"byzantine_validators": [
{
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
}
],
"total_voting_power": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}
]
},
"last_commit": {
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"timestamp": "2023-11-07T05:31:56Z",
"signature": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
},
"sdk_block": {
"header": {
"version": {
"block": "<string>",
"app": "<string>"
},
"chain_id": "<string>",
"height": "<string>",
"time": "2023-11-07T05:31:56Z",
"last_block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"last_commit_hash": "aSDinaTvuI8gbWludGxpZnk=",
"data_hash": "aSDinaTvuI8gbWludGxpZnk=",
"validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"next_validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"consensus_hash": "aSDinaTvuI8gbWludGxpZnk=",
"app_hash": "aSDinaTvuI8gbWludGxpZnk=",
"last_results_hash": "aSDinaTvuI8gbWludGxpZnk=",
"evidence_hash": "aSDinaTvuI8gbWludGxpZnk=",
"proposer_address": "<string>"
},
"data": {
"txs": [
"aSDinaTvuI8gbWludGxpZnk="
]
},
"evidence": {
"evidence": [
{
"duplicate_vote_evidence": {
"vote_a": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"timestamp": "2023-11-07T05:31:56Z",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"validator_index": 123,
"signature": "aSDinaTvuI8gbWludGxpZnk=",
"extension": "aSDinaTvuI8gbWludGxpZnk=",
"extension_signature": "aSDinaTvuI8gbWludGxpZnk="
},
"vote_b": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"timestamp": "2023-11-07T05:31:56Z",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"validator_index": 123,
"signature": "aSDinaTvuI8gbWludGxpZnk=",
"extension": "aSDinaTvuI8gbWludGxpZnk=",
"extension_signature": "aSDinaTvuI8gbWludGxpZnk="
},
"total_voting_power": "<string>",
"validator_power": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"light_client_attack_evidence": {
"conflicting_block": {
"signed_header": {
"header": {
"version": {
"block": "<string>",
"app": "<string>"
},
"chain_id": "<string>",
"height": "<string>",
"time": "2023-11-07T05:31:56Z",
"last_block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"last_commit_hash": "aSDinaTvuI8gbWludGxpZnk=",
"data_hash": "aSDinaTvuI8gbWludGxpZnk=",
"validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"next_validators_hash": "aSDinaTvuI8gbWludGxpZnk=",
"consensus_hash": "aSDinaTvuI8gbWludGxpZnk=",
"app_hash": "aSDinaTvuI8gbWludGxpZnk=",
"last_results_hash": "aSDinaTvuI8gbWludGxpZnk=",
"evidence_hash": "aSDinaTvuI8gbWludGxpZnk=",
"proposer_address": "aSDinaTvuI8gbWludGxpZnk="
},
"commit": {
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"timestamp": "2023-11-07T05:31:56Z",
"signature": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
},
"validator_set": {
"validators": [
{
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
}
],
"proposer": {
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
},
"total_voting_power": "<string>"
}
},
"common_height": "<string>",
"byzantine_validators": [
{
"address": "aSDinaTvuI8gbWludGxpZnk=",
"pub_key": {
"ed25519": "aSDinaTvuI8gbWludGxpZnk=",
"secp256k1": "aSDinaTvuI8gbWludGxpZnk="
},
"voting_power": "<string>",
"proposer_priority": "<string>"
}
],
"total_voting_power": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}
]
},
"last_commit": {
"height": "<string>",
"round": 123,
"block_id": {
"hash": "aSDinaTvuI8gbWludGxpZnk=",
"part_set_header": {
"total": 123,
"hash": "aSDinaTvuI8gbWludGxpZnk="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "aSDinaTvuI8gbWludGxpZnk=",
"timestamp": "2023-11-07T05:31:56Z",
"signature": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Path Parameters
Response
A successful response.
GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
Was this page helpful?