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.
AllBalances
AllBalances queries the balance of all coins for a single account. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryAllBalancesRequest:
Response
QueryAllBalancesResponse:
Balance
Balance queries the balance of a single coin for a single account.
Request
QueryBalanceRequest:
Response
QueryBalanceResponse:
DenomMetadata
DenomMetadata queries the client metadata of a given coin denomination.
Request
QueryDenomMetadataRequest:
Response
QueryDenomMetadataResponse:
DenomMetadataByQueryString
DenomMetadataByQueryString queries the client metadata of a given coin denomination.
Request
QueryDenomMetadataByQueryStringRequest:
Response
QueryDenomMetadataByQueryStringResponse:
DenomOwners
DenomOwners queries for all account addresses that own a particular token denomination. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryDenomOwnersRequest:
Response
QueryDenomOwnersResponse:
DenomOwnersByQuery
DenomOwnersByQuery queries for all account addresses that own a particular token denomination.
Request
QueryDenomOwnersByQueryRequest:
Response
QueryDenomOwnersByQueryResponse:
DenomsMetadata
DenomsMetadata queries the client metadata for all registered coin denominations.
Request
QueryDenomsMetadataRequest:
Response
QueryDenomsMetadataResponse:
Params
Params queries the parameters of x/bank module.
Request
QueryParamsRequest:
This message has no fields.
Response QueryParamsResponse:
SendEnabled
SendEnabled queries for SendEnabled entries. This query only returns denominations that have specific SendEnabled settings. Any denomination that does not have a specific setting will use the default params.default_send_enabled, and will not be returned by this query.
Request
QuerySendEnabledRequest:
Response
QuerySendEnabledResponse:
SpendableBalanceByDenom
SpendableBalanceByDenom queries the spendable balance of a single denom for a single account. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QuerySpendableBalanceByDenomRequest:
Response
QuerySpendableBalanceByDenomResponse:
SpendableBalances
SpendableBalances queries the spendable balance of all coins for a single account. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QuerySpendableBalancesRequest:
Response
QuerySpendableBalancesResponse:
SupplyOf
SupplyOf queries the supply of a single coin. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QuerySupplyOfRequest:
Response
QuerySupplyOfResponse:
TotalSupply
TotalSupply queries the total supply of all coins. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryTotalSupplyRequest:
Response
QueryTotalSupplyResponse:
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
MultiSend
MultiSend defines a method for sending coins from some accounts to other accounts.
In a transaction:
MsgMultiSendResponse:
This message has no fields.
Send
Send defines a method for sending coins from one account to another account.
In a transaction:
MsgSendResponse:
This message has no fields.
SetSendEnabled
SetSendEnabled is a governance operation for setting the SendEnabled flag on any number of Denoms. Only the entries to add or update should be included. Entries that already exist in the store, but that aren’t included in this message, will be left unchanged.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:
MsgSetSendEnabledResponse:
This message has no fields.
UpdateParams
UpdateParams defines a governance operation for updating the x/bank module parameters. The authority is defined in the keeper.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:
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.bank.v1beta1.DenomOwner
DenomOwner defines structure representing an account that owns or holds a particular denominated token. It contains the account address and account balance of the denominated token.cosmos.bank.v1beta1.DenomUnit
DenomUnit represents a struct that describes a given denomination unit of the basic token.cosmos.bank.v1beta1.Input
Input models transaction input.cosmos.bank.v1beta1.Metadata
Metadata represents a struct that describes a basic token.cosmos.bank.v1beta1.Output
Output models transaction outputs.cosmos.bank.v1beta1.Params
Params defines the parameters for the bank module.cosmos.bank.v1beta1.SendEnabled
SendEnabled maps coin denom to a send_enabled status (whether a denom is sendable).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; }