Skip to main content

Utility

Blockchain Integration Data Query Apis Protocol Rest Queries Utility (v1.0.0)

Download OpenAPI specification:Download

API Documentation for Blockchain Integration Data Query Apis Protocol Rest Queries Utility

Bech32Prefix

Bech32Prefix queries bech32Prefix

Since: cosmos-sdk 0.46

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "bech32Prefix": "string"
}

AddressBytesToString

AddressBytesToString converts Account Address bytes to string

Since: cosmos-sdk 0.46

Authorizations:
bearerAuth
path Parameters
address_bytes
required
string <byte> (address_bytes)

(proto bytes)

Responses

Response samples

Content type
application/json
{
  • "addressString": "string"
}

ABCIQuery

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.

Since: cosmos-sdk 0.46

Authorizations:
bearerAuth
query Parameters
data
string <byte> (data)

(proto bytes)

path
string (path)

(proto string)

height
integer or string <int64> (height)

(proto int64)

prove
boolean (prove)

(proto bool)

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "log": "string",
  • "info": "string",
  • "index": 0,
  • "key": "string",
  • "value": "string",
  • "proofOps": {
    },
  • "height": 0,
  • "codespace": "string"
}

GetLatestBlock

GetLatestBlock returns the latest block.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "blockId": {
    },
  • "block": {
    },
  • "sdkBlock": {
    }
}

GetBlockByHeight

GetBlockByHeight queries block for given height.

Authorizations:
bearerAuth
path Parameters
height
required
integer or string <int64> (height)

(proto int64)

Responses

Response samples

Content type
application/json
{
  • "blockId": {
    },
  • "block": {
    },
  • "sdkBlock": {
    }
}

GetNodeInfo

GetNodeInfo queries the current node info.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "defaultNodeInfo": {
    },
  • "applicationVersion": {
    }
}

GetSyncing

GetSyncing queries node syncing.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "syncing": true
}