Cosmos API - Added Methods
v1.5.3https://axelar.nownodes.ioAxelar API (API Changelog 1.4.10 to 1.5.3)API Changelog 1.4.10 to 1.5.3 - Cosmos API added methods. These methods first appear in version 1.5.3 and did not exist in version 1.4.10. Each method is documented in full, in the format of the 1.5.3 API reference.
API Changelog 1.4.10 to 1.5.3 / Added methods
Service
GetLatestBlock returns the latest block.
New in 1.5.3: this CometBFT endpoint did not exist in the 1.4.10 API. In 1.4.10 the equivalent data was exposed only under /cosmos/base/tendermint/v1beta1, and those tendermint endpoints remain available in 1.5.3.
Response
A successful response.
An unexpected error response
GetBlockByHeight queries block for given height.
New in 1.5.3: this CometBFT endpoint did not exist in the 1.4.10 API. In 1.4.10 the equivalent data was exposed only under /cosmos/base/tendermint/v1beta1, and those tendermint endpoints remain available in 1.5.3.
Parameters
heightstring<int64>requiredpathResponse
A successful response.
An unexpected error response
GetNodeInfo queries the current node info.
New in 1.5.3: this CometBFT endpoint did not exist in the 1.4.10 API. In 1.4.10 the equivalent data was exposed only under /cosmos/base/tendermint/v1beta1, and those tendermint endpoints remain available in 1.5.3.
Response
A successful response.
An unexpected error response
GetSyncing queries node syncing.
New in 1.5.3: this CometBFT endpoint did not exist in the 1.4.10 API. In 1.4.10 the equivalent data was exposed only under /cosmos/base/tendermint/v1beta1, and those tendermint endpoints remain available in 1.5.3.
Response
A successful response.
An unexpected error response
GetLatestValidatorSet queries latest validator-set.
New in 1.5.3: this CometBFT endpoint did not exist in the 1.4.10 API. In 1.4.10 the equivalent data was exposed only under /cosmos/base/tendermint/v1beta1, and those tendermint endpoints remain available in 1.5.3.
Parameters
pagination.keystring<byte>querykey is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
pagination.offsetstring<uint64>queryoffset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
pagination.limitstring<uint64>querylimit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
pagination.count_totalboolean<boolean>querycount_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.
pagination.reverseboolean<boolean>queryreverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
Response
A successful response.
An unexpected error response
GetValidatorSetByHeight queries validator-set at a given height.
New in 1.5.3: this CometBFT endpoint did not exist in the 1.4.10 API. In 1.4.10 the equivalent data was exposed only under /cosmos/base/tendermint/v1beta1, and those tendermint endpoints remain available in 1.5.3.
Parameters
heightstring<int64>requiredpathpagination.keystring<byte>querykey is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
pagination.offsetstring<uint64>queryoffset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
pagination.limitstring<uint64>querylimit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
pagination.count_totalboolean<boolean>querycount_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.
pagination.reverseboolean<boolean>queryreverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
Response
A successful response.
An unexpected error response
QueryService
Grants returns list of Authorization, granted to the grantee by the granter for a specific msg type.
New in 1.5.3: grants query addressed by granter and grantee path parameters. This endpoint did not exist in the 1.4.10 API, where grants were queried only via /cosmos/authz/v1beta1/grants with query-string parameters; that endpoint remains available in 1.5.3.
Parameters
granterstringrequiredpathgranteestringrequiredpathmsg_type_urlstringquerypagination.keystring<byte>querypagination.offsetstring<uint64>querypagination.limitstring<uint64>querypagination.count_totalbooleanquerypagination.reversebooleanqueryResponse
A successful response.
An unexpected error response