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.

Account

Account returns account details based on address. Request QueryAccountRequest: Response QueryAccountResponse:

AccountAddressByID

AccountAddressByID returns account address based on account number. Request QueryAccountAddressByIDRequest: Response QueryAccountAddressByIDResponse:

AccountInfo

AccountInfo queries account info which is common to all account types. Request QueryAccountInfoRequest: Response QueryAccountInfoResponse:

Accounts

Accounts returns all the existing accounts. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set. Request QueryAccountsRequest: Response QueryAccountsResponse:

AddressBytesToString

AddressBytesToString converts Account Address bytes to string Request AddressBytesToStringRequest: Response AddressBytesToStringResponse:

AddressStringToBytes

AddressStringToBytes converts Address string to bytes Request AddressStringToBytesRequest: Response AddressStringToBytesResponse:

Bech32Prefix

Bech32Prefix queries bech32Prefix Request Bech32PrefixRequest: This message has no fields. Response Bech32PrefixResponse:

ModuleAccountByName

ModuleAccountByName returns the module account info by module name Request QueryModuleAccountByNameRequest: Response QueryModuleAccountByNameResponse:

ModuleAccounts

ModuleAccounts returns all the existing module accounts. Request QueryModuleAccountsRequest: This message has no fields. Response QueryModuleAccountsResponse:

Params

Params queries all parameters. Request QueryParamsRequest: This message has no fields. Response QueryParamsResponse:

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

UpdateParams

UpdateParams defines a (governance) operation for updating the x/auth module parameters. The authority defaults to the x/gov module account.
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 MsgUpdateParamsResponse: 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.auth.v1beta1.BaseAccount

BaseAccount defines a base account type. It contains all the necessary fields for basic account functionality. Any custom account type should extend this type for additional functionality (e.g. vesting).

cosmos.auth.v1beta1.Params

Params defines the parameters for the auth module.

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; }