UpgradedConsensusState
curl --request GET \
--url https://cosmos-rest.publicnode.com/cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}import requests
url = "https://cosmos-rest.publicnode.com/cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cosmos-rest.publicnode.com/cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}', 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/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}",
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/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}"
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/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cosmos-rest.publicnode.com/cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}")
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{
"upgraded_consensus_state": "aSDinaTvuI8gbWludGxpZnk="
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}upgrade
UpgradedConsensusState
gRPC: cosmos.upgrade.v1beta1.Query/UpgradedConsensusState (reference)
UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier This rpc is deprecated now that IBC has its own replacement (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
GET
/
cosmos
/
upgrade
/
v1beta1
/
upgraded_consensus_state
/
{lastHeight}
UpgradedConsensusState
curl --request GET \
--url https://cosmos-rest.publicnode.com/cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}import requests
url = "https://cosmos-rest.publicnode.com/cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cosmos-rest.publicnode.com/cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}', 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/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}",
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/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}"
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/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cosmos-rest.publicnode.com/cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight}")
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{
"upgraded_consensus_state": "aSDinaTvuI8gbWludGxpZnk="
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Path Parameters
Was this page helpful?