Generated from
cosmos/cosmos-sdk@2086680ff8b0 on ref release/v0.55.x.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
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; }