Skip to main content
Generated from cosmos/cosmos-sdk@c1126e4e5460 on ref main.

Queries

A node exposes only the services its application registers:
  • gRPC on port 9090
  • REST on port 1317, if the method has an HTTP binding
Run grpcurl -plaintext localhost:9090 list to see what a node serves. Queries are read-only and never pass through consensus. See Queries. Replace <string> placeholders with real values and omit unused filters. Payloads use protobuf JSON, and some string fields accept enum constants listed under Types. Field tables give the encoding each value takes. Examples assume a local node. For TLS endpoints, use port 443 and omit -plaintext. See gRPC services for reflection, address formats, and decimal encoding.

BroadcastTx

BroadcastTx broadcast transaction. Request BroadcastTxRequest: Response BroadcastTxResponse:

GetBlockWithTxs

GetBlockWithTxs fetches a block with decoded txs. Request GetBlockWithTxsRequest: Response GetBlockWithTxsResponse:

GetTx

GetTx fetches a tx by hash. Request GetTxRequest: Response GetTxResponse:

GetTxsEvent

GetTxsEvent fetches txs by event. Request GetTxsEventRequest: Response GetTxsEventResponse:

Simulate

Simulate simulates executing a transaction for estimating gas usage. Request SimulateRequest: Response SimulateResponse:

TxDecode

TxDecode decodes the transaction. Request TxDecodeRequest: Response TxDecodeResponse:

TxDecodeAmino

TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. Request TxDecodeAminoRequest: Response TxDecodeAminoResponse:

TxEncode

TxEncode encodes the transaction. Request TxEncodeRequest: Response TxEncodeResponse:

TxEncodeAmino

TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. Request TxEncodeAminoRequest: Response TxEncodeAminoResponse:

Types

Messages referenced by the fields above. Protocol buffers version 3 has no required fields, so every field is optional on the wire, and a [] suffix marks a repeated field.

cosmos.base.abci.v1beta1.ABCIMessageLog

ABCIMessageLog defines a structure containing an indexed tx ABCI message log.

cosmos.base.abci.v1beta1.Attribute

Attribute defines an attribute wrapper where the key and value are strings instead of raw bytes.

cosmos.base.abci.v1beta1.GasInfo

GasInfo defines tx execution gas context.

cosmos.base.abci.v1beta1.Result

Result is the union of ResponseFormat and ResponseCheckTx.

cosmos.base.abci.v1beta1.StringEvent

StringEvent defines en Event object wrapper where all the attributes contain key/value pairs that are strings instead of raw bytes.

cosmos.base.abci.v1beta1.TxResponse

TxResponse defines a structure containing relevant tx data and metadata. The tags are stringified and the log is JSON decoded.

cosmos.base.query.v1beta1.PageRequest

PageRequest is to be embedded in gRPC request messages for efficient pagination. Ex: message SomeRequest { Foo some_parameter = 1; PageRequest pagination = 2; }

cosmos.base.query.v1beta1.PageResponse

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

cosmos.base.v1beta1.Coin

Coin defines a token with a denomination and an amount. NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.

cosmos.crypto.multisig.v1beta1.CompactBitArray

CompactBitArray is an implementation of a space efficient bit array. This is used to ensure that the encoded data takes up a minimal amount of space after proto encoding. This is not thread safe, and is not intended for concurrent usage.

cosmos.tx.signing.v1beta1.SignMode

Written as a quoted string in JSON.

cosmos.tx.v1beta1.AuthInfo

AuthInfo describes the fee and signer modes that are used to sign a transaction.

cosmos.tx.v1beta1.BroadcastMode

Written as a quoted string in JSON.

cosmos.tx.v1beta1.Fee

Fee includes the amount of coins paid in fees and the maximum gas to be used by the transaction. The ratio yields an effective “gasprice”, which must be above some minimum to be accepted into the mempool.

cosmos.tx.v1beta1.ModeInfo

ModeInfo describes the signing mode of a single or nested multisig signer.

cosmos.tx.v1beta1.ModeInfo.Multi

Multi is the mode info for a multisig public key

cosmos.tx.v1beta1.ModeInfo.Single

Single is the mode info for a single signer. It is structured as a message to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the future

cosmos.tx.v1beta1.OrderBy

Written as a quoted string in JSON.

cosmos.tx.v1beta1.SignerInfo

SignerInfo describes the public key and signing mode of a single top-level signer.

cosmos.tx.v1beta1.Tip

Tip is the tip used for meta-transactions.

cosmos.tx.v1beta1.Tx

Tx is the standard type used for broadcasting transactions.

cosmos.tx.v1beta1.TxBody

TxBody is the body of a transaction that all signers sign over.