Skip to main content
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
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.

AppliedPlan

AppliedPlan queries a previously applied upgrade plan by its name. Request QueryAppliedPlanRequest: Response QueryAppliedPlanResponse:

Authority

Returns the account with authority to conduct upgrades Request QueryAuthorityRequest: This message has no fields. Response QueryAuthorityResponse:

CurrentPlan

CurrentPlan queries the current upgrade plan. Request QueryCurrentPlanRequest: This message has no fields. Response QueryCurrentPlanResponse:

ModuleVersions

ModuleVersions queries the list of module versions from state. Request QueryModuleVersionsRequest: Response QueryModuleVersionsResponse:

UpgradedConsensusState

This method is deprecated.
UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier This rpc is deprecated now that IBC has its own replacement (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) Request QueryUpgradedConsensusStateRequest: Response QueryUpgradedConsensusStateResponse:

Transaction messages

These messages are included in signed transactions, not called as endpoints. See Transactions for the execution model, and Sending transactions for the envelope they go into. Examples use CLI transaction JSON. Decimal fields use values such as "0.05", even when their proto type is bytes. The gRPC TxEncode method instead requires the scaled value "50000000000000000". See scalar encodings.
  • Handler: Generated client method
  • Signer: Account that must sign
  • Amino name: Legacy identifier used by hardware wallets and other Amino signers

CancelUpgrade

CancelUpgrade is a governance operation for cancelling a previously approved software upgrade.
The signer is the governance module account, which no user holds a key for. This message executes only through a passed governance proposal, not as a transaction you submit directly.
In a transaction:
Response MsgCancelUpgradeResponse: This message has no fields.

SoftwareUpgrade

SoftwareUpgrade is a governance operation for initiating a software upgrade.
The signer is the governance module account, which no user holds a key for. This message executes only through a passed governance proposal, not as a transaction you submit directly.
In a transaction:
Response MsgSoftwareUpgradeResponse: This message has no fields.

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.upgrade.v1beta1.ModuleVersion

ModuleVersion specifies a module and its consensus version.

cosmos.upgrade.v1beta1.Plan

Plan specifies information about a planned upgrade and when it should occur.