Skip to content

Balance transfers

Heimdall’s bank module handles balance transfers between accounts. This module corresponds to the bank module from cosmos-sdk.



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 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"`


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>

Last update: December 5, 2023
Authors: Nadim Kobeissi