Bank
Overview
The bank
module handles account balance transfers for Heimdall. This module corresponds to the bank
module from cosmos-sdk.
Messages
MsgSend
MsgSend
handles transfer between accounts in Heimdall. Here is a structure for transaction message:
// MsgSend - high-level transaction of the coin module
type MsgSend struct {
FromAddress types.HeimdallAddress `json:"from_address"`
ToAddress types.HeimdallAddress `json:"to_address"`
Amount types.Coins `json:"amount"`
}
MsgMultiSend
MsgMultiSend
handles multi transfer between account for Heimdall.
// MsgMultiSend - high-level transaction of the coin module
type MsgMultiSend struct {
Inputs []Input `json:"inputs"`
Outputs []Output `json:"outputs"`
}
Parameters
The bank module contains the following parameters:
Key | Type | Default value |
---|---|---|
sendenabled | bool | true |
CLI commands
Send balance
Following command will send 1000 matic tokens to mentioned address
heimdallcli tx bank send <address> 1000matic --chain-id <chain-id>