ABCIQuery
curl --request GET \
--url https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/abci_queryimport requests
url = "https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/abci_query"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/abci_query', 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/abci_query",
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/abci_query"
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/abci_query")
.asString();require 'uri'
require 'net/http'
url = URI("https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/abci_query")
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{
"code": 123,
"log": "<string>",
"info": "<string>",
"index": "<string>",
"key": "aSDinaTvuI8gbWludGxpZnk=",
"value": "aSDinaTvuI8gbWludGxpZnk=",
"proof_ops": {
"ops": [
{
"type": "<string>",
"key": "aSDinaTvuI8gbWludGxpZnk=",
"data": "aSDinaTvuI8gbWludGxpZnk="
}
]
},
"height": "<string>",
"codespace": "<string>"
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}base
ABCIQuery
gRPC: cosmos.base.tendermint.v1beta1.Service/ABCIQuery (reference)
ABCIQuery defines a query handler that supports ABCI queries directly to the application, bypassing Tendermint completely. The ABCI query must contain a valid and supported path, including app, custom, p2p, and store.
GET
/
cosmos
/
base
/
tendermint
/
v1beta1
/
abci_query
ABCIQuery
curl --request GET \
--url https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/abci_queryimport requests
url = "https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/abci_query"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/abci_query', 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/abci_query",
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/abci_query"
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/abci_query")
.asString();require 'uri'
require 'net/http'
url = URI("https://cosmos-rest.publicnode.com/cosmos/base/tendermint/v1beta1/abci_query")
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{
"code": 123,
"log": "<string>",
"info": "<string>",
"index": "<string>",
"key": "aSDinaTvuI8gbWludGxpZnk=",
"value": "aSDinaTvuI8gbWludGxpZnk=",
"proof_ops": {
"ops": [
{
"type": "<string>",
"key": "aSDinaTvuI8gbWludGxpZnk=",
"data": "aSDinaTvuI8gbWludGxpZnk="
}
]
},
"height": "<string>",
"codespace": "<string>"
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Response
A successful response.
ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
Note: This type is a duplicate of the ResponseQuery proto type defined in Tendermint.
ProofOps is Merkle proof defined by the list of ProofOps.
Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
Show child attributes
Show child attributes
Was this page helpful?