bank
module is responsible for handling token transfer functionalities such as multi-asset coin transfers between accounts and tracking special-case pseudo-transfers which must work differently with particular kinds of accounts (notably delegating/undelegating for vesting accounts). It exposes several interfaces with varying capabilities for secure interaction with other modules which must alter user balances.
In addition, the bank
module tracks and provides query support for the total supply of all assets used in the application.
For more information, visit https://docs.cosmos.network/main/modules/bank/
Message Types
Msg
defines the bank Msg service.
tx.proto
MsgSend
MsgSend
represents a message to send coins from one account to another.
tx.proto
MsgSendResponse
MsgSendResponse
defines the Msg/Send
response type.
tx.proto
MsgMultiSend
MsgMultiSend
represents an arbitrary multi-in, multi-out send message.
tx.proto
MsgMultiSendResponse
MsgMultiSendResponse
defines the Msg/MultiSend
response type.
tx.proto
Queries
Query
defines the gRPC querier service.
query.proto
QueryBalanceRequest
QueryBalanceRequest
is the request type for the Query/Balance
RPC method.
query.proto
QueryBalanceResponse
QueryBalanceResponse
is the response type for the Query/Balance
RPC method.
query.proto
QueryAllBalanceRequest
QueryAllBalanceRequest
is the request type for the Query/AllBalances
RPC method.
query.proto
QueryAllBalancesResponse
QueryAllBalancesResponse
is the response type for the Query/AllBalances
RPC method.
query.proto
QuerySpendableBalancesRequest
QuerySpendableBalancesRequest
defines the gRPC request structure for querying an account’s spendable balances.
query.proto
QuerySpendableBalancesResponse
QuerySpendableBalancesResponse
defines the gRPC response structure for querying an account’s spendable balances.
query.proto
QueryTotalSupplyRequest
QueryTotalSupplyRequest
is the request type for the Query/TotalSupply
RPC method.
query.proto
QueryTotalSupplyResponse
QueryTotalSupplyResponse
is the response type for the Query/TotalSupply
RPC method.
query.proto
QuerySupplyOfRequest
QuerySupplyOfRequest
is the request type for the Query/SupplyOf
RPC method.
query.proto
QuerySupplyOfResponse
QuerySupplyOfResponse
is the response type for the Query/SupplyOf
RPC method.
query.proto
QueryParamsRequest
QueryParamsRequest
defines the request type for querying x/bank parameters.
query.proto
QueryParamsResponse
QueryParamsResponse
defines the response type for querying x/bank parameters.
query.proto
QueryDenomMetadataRequest
QueryDenomMetadataRequest
is the request type for the Query/DenomMetadata
RPC method.
query.proto
QueryDenomMetadataResponse
QueryDenomMetadataResponse
is the response type for the Query/DenomMetadata
RPC method.
query.proto
QueryDenomsMetadataRequest
QueryDenomsMetadataRequest
is the request type for the Query/DenomsMetadata
RPC method.
query.proto
QueryDenomsMetadataResponse
QueryDenomsMetadataResponse
is the response type for the Query/DenomsMetadata
RPC method.
query.proto
QueryDenomOwnersRequest
QueryDenomOwnersRequest
defines the request type for the DenomOwners
RPC query, which queries for a paginated set of all account holders of a particular denomination.
query.proto
QueryDenomOwnersResponse
QueryDenomOwnersResponse
defines the RPC response of a DenomOwners
RPC query.
query.proto