Bank
The 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.
MsgSend
MsgSend
represents a message to send coins from one account to another.
MsgSendResponse
MsgSendResponse
defines the Msg/Send
response type.
MsgMultiSend
MsgMultiSend
represents an arbitrary multi-in, multi-out send message.
MsgMultiSendResponse
MsgMultiSendResponse
defines the Msg/MultiSend
response type.
Queries
Query
defines the gRPC querier service.
QueryBalanceRequest
QueryBalanceRequest
is the request type for the Query/Balance
RPC method.
QueryBalanceResponse
QueryBalanceResponse
is the response type for the Query/Balance
RPC method.
QueryAllBalanceRequest
QueryAllBalanceRequest
is the request type for the Query/AllBalances
RPC method.
QueryAllBalancesResponse
QueryAllBalancesResponse
is the response type for the Query/AllBalances
RPC method.
QuerySpendableBalancesRequest
QuerySpendableBalancesRequest
defines the gRPC request structure for querying an account’s spendable balances.
QuerySpendableBalancesResponse
QuerySpendableBalancesResponse
defines the gRPC response structure for querying an account’s spendable balances.
QueryTotalSupplyRequest
QueryTotalSupplyRequest
is the request type for the Query/TotalSupply
RPC method.
QueryTotalSupplyResponse
QueryTotalSupplyResponse
is the response type for the Query/TotalSupply
RPC method.
QuerySupplyOfRequest
QuerySupplyOfRequest
is the request type for the Query/SupplyOf
RPC method.
QuerySupplyOfResponse
QuerySupplyOfResponse
is the response type for the Query/SupplyOf
RPC method.
QueryParamsRequest
QueryParamsRequest
defines the request type for querying x/bank parameters.
QueryParamsResponse
QueryParamsResponse
defines the response type for querying x/bank parameters.
QueryDenomMetadataRequest
QueryDenomMetadataRequest
is the request type for the Query/DenomMetadata
RPC method.
QueryDenomMetadataResponse
QueryDenomMetadataResponse
is the response type for the Query/DenomMetadata
RPC method.
QueryDenomsMetadataRequest
QueryDenomsMetadataRequest
is the request type for the Query/DenomsMetadata
RPC method.
QueryDenomsMetadataResponse
QueryDenomsMetadataResponse
is the response type for the Query/DenomsMetadata
RPC method.
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.
QueryDenomOwnersResponse
QueryDenomOwnersResponse
defines the RPC response of a DenomOwners
RPC query.
Was this page helpful?