{ "opencollection": "1.0.0", "info": { "name": "Cosmos SDK - gRPC Gateway docs Query Service API", "version": "1.0.0" }, "items": [ { "info": { "name": "Service", "type": "folder" }, "items": [ { "info": { "name": "Config queries for the operator configuration.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/node/v1beta1/config" }, "docs": "Config queries for the operator configuration." }, { "info": { "name": "Status queries for the node status.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/node/v1beta1/status" }, "docs": "Status queries for the node status." }, { "info": { "name": "ABCIQuery defines a query handler that supports ABCI queries directly to the\napplication, bypassing Tendermint completely. The ABCI query must contain\na valid and supported path, including app, custom, p2p, and store.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/abci_query", "params": [ { "name": "data", "value": "", "type": "query" }, { "name": "path", "value": "", "type": "query" }, { "name": "height", "value": "", "type": "query" }, { "name": "prove", "value": "", "type": "query" } ] }, "docs": "ABCIQuery defines a query handler that supports ABCI queries directly to the\napplication, bypassing Tendermint completely. The ABCI query must contain\na valid and supported path, including app, custom, p2p, and store." }, { "info": { "name": "GetLatestBlockResults returns the block results for the latest block.\nBlock results contain finalize_block_events which include consensus-level\nevents like slashing, jailing, and validator set updates.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/block_results/latest" }, "docs": "GetLatestBlockResults returns the block results for the latest block.\nBlock results contain finalize_block_events which include consensus-level\nevents like slashing, jailing, and validator set updates." }, { "info": { "name": "GetBlockResults queries block results for given height.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/block_results/:height", "params": [ { "name": "height", "value": "", "type": "path" } ] }, "docs": "GetBlockResults queries block results for given height." }, { "info": { "name": "GetLatestBlock returns the latest block.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/blocks/latest" }, "docs": "GetLatestBlock returns the latest block." }, { "info": { "name": "GetBlockByHeight queries block for given height.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/blocks/:height", "params": [ { "name": "height", "value": "", "type": "path" } ] }, "docs": "GetBlockByHeight queries block for given height." }, { "info": { "name": "GetNodeInfo queries the current node info.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/node_info" }, "docs": "GetNodeInfo queries the current node info." }, { "info": { "name": "GetSyncing queries node syncing.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/syncing" }, "docs": "GetSyncing queries node syncing." }, { "info": { "name": "GetLatestValidatorSet queries latest validator-set.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/validatorsets/latest", "params": [ { "name": "pagination.key", "value": "", "type": "query", "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set." }, { "name": "pagination.offset", "value": "", "type": "query", "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set." }, { "name": "pagination.limit", "value": "", "type": "query", "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app." }, { "name": "pagination.countTotal", "value": "", "type": "query", "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set." }, { "name": "pagination.reverse", "value": "", "type": "query", "description": "reverse is set to true if results are to be returned in the descending order." } ] }, "docs": "GetLatestValidatorSet queries latest validator-set." }, { "info": { "name": "GetValidatorSetByHeight queries validator-set at a given height.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/base/tendermint/v1beta1/validatorsets/:height", "params": [ { "name": "height", "value": "", "type": "path" }, { "name": "pagination.key", "value": "", "type": "query", "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set." }, { "name": "pagination.offset", "value": "", "type": "query", "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set." }, { "name": "pagination.limit", "value": "", "type": "query", "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app." }, { "name": "pagination.countTotal", "value": "", "type": "query", "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set." }, { "name": "pagination.reverse", "value": "", "type": "query", "description": "reverse is set to true if results are to be returned in the descending order." } ] }, "docs": "GetValidatorSetByHeight queries validator-set at a given height." }, { "info": { "name": "TxDecode decodes the transaction.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/cosmos/tx/v1beta1/decode" }, "docs": "TxDecode decodes the transaction." }, { "info": { "name": "TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/cosmos/tx/v1beta1/decode/amino" }, "docs": "TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON." }, { "info": { "name": "TxEncode encodes the transaction.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/cosmos/tx/v1beta1/encode" }, "docs": "TxEncode encodes the transaction." }, { "info": { "name": "TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/cosmos/tx/v1beta1/encode/amino" }, "docs": "TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes." }, { "info": { "name": "Simulate simulates executing a transaction for estimating gas usage.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/cosmos/tx/v1beta1/simulate" }, "docs": "Simulate simulates executing a transaction for estimating gas usage." }, { "info": { "name": "GetTxsEvent fetches txs by event.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/tx/v1beta1/txs", "params": [ { "name": "events", "value": "", "type": "query", "description": "events is the list of transaction event type.\nDeprecated post v0.47.x: use query instead, which should contain a valid\nevents query." }, { "name": "pagination.key", "value": "", "type": "query", "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set." }, { "name": "pagination.offset", "value": "", "type": "query", "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set." }, { "name": "pagination.limit", "value": "", "type": "query", "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app." }, { "name": "pagination.countTotal", "value": "", "type": "query", "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set." }, { "name": "pagination.reverse", "value": "", "type": "query", "description": "reverse is set to true if results are to be returned in the descending order." }, { "name": "orderBy", "value": "", "type": "query", "description": " - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults\nto ASC in this case.\n - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order\n - ORDER_BY_DESC: ORDER_BY_DESC defines descending order" }, { "name": "page", "value": "", "type": "query", "description": "page is the page number to query, starts at 1. If not provided, will\ndefault to first page." }, { "name": "limit", "value": "", "type": "query", "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app." }, { "name": "query", "value": "", "type": "query", "description": "query defines the transaction event query that is proxied to Tendermint's\nTxSearch RPC method. The query must be valid." } ] }, "docs": "GetTxsEvent fetches txs by event." }, { "info": { "name": "BroadcastTx broadcast transaction.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/cosmos/tx/v1beta1/txs" }, "docs": "BroadcastTx broadcast transaction." }, { "info": { "name": "GetBlockWithTxs fetches a block with decoded txs.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/tx/v1beta1/txs/block/:height", "params": [ { "name": "height", "value": "", "type": "path", "description": "height is the height of the block to query." }, { "name": "pagination.key", "value": "", "type": "query", "description": "key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set." }, { "name": "pagination.offset", "value": "", "type": "query", "description": "offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set." }, { "name": "pagination.limit", "value": "", "type": "query", "description": "limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app." }, { "name": "pagination.countTotal", "value": "", "type": "query", "description": "count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set." }, { "name": "pagination.reverse", "value": "", "type": "query", "description": "reverse is set to true if results are to be returned in the descending order." } ] }, "docs": "GetBlockWithTxs fetches a block with decoded txs." }, { "info": { "name": "GetTx fetches a tx by hash.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/cosmos/tx/v1beta1/txs/:hash", "params": [ { "name": "hash", "value": "", "type": "path", "description": "hash is the tx hash to query, encoded as a hex string." } ] }, "docs": "GetTx fetches a tx by hash." } ] } ], "bundled": true }