@@ -12,6 +12,7 @@ import (
1212 "github.com/cosmos/cosmos-sdk/client/flags"
1313 "github.com/cosmos/cosmos-sdk/client/tx"
1414 sdk "github.com/cosmos/cosmos-sdk/types"
15+ "github.com/cosmos/cosmos-sdk/version"
1516 "github.com/cosmos/cosmos-sdk/x/bank/types"
1617)
1718
@@ -80,15 +81,16 @@ When using '--dry-run' a key name cannot be used, only a bech32 address.
8081// For a better UX this command is limited to send funds from one account to two or more accounts.
8182func NewMultiSendTxCmd (ac address.Codec ) * cobra.Command {
8283 cmd := & cobra.Command {
83- Use : "multi-send [from_key_or_address] [to_address_1, to_address_2, ...] [amount]" ,
84+ Use : "multi-send [from_key_or_address] [to_address_1 to_address_2 ...] [amount]" ,
8485 Short : "Send funds from one account to two or more accounts." ,
8586 Long : `Send funds from one account to two or more accounts.
8687By default, sends the [amount] to each address of the list.
8788Using the '--split' flag, the [amount] is split equally between the addresses.
88- Note, the '--from' flag is ignored as it is implied from [from_key_or_address].
89- When using '--dry-run' a key name cannot be used, only a bech32 address.
90- ` ,
91- Args : cobra .MinimumNArgs (4 ),
89+ Note, the '--from' flag is ignored as it is implied from [from_key_or_address] and
90+ separate addresses with space.
91+ When using '--dry-run' a key name cannot be used, only a bech32 address.` ,
92+ Example : fmt .Sprintf ("%s tx bank multi-send cosmos1... cosmos1... cosmos1... cosmos1... 10stake" , version .AppName ),
93+ Args : cobra .MinimumNArgs (4 ),
9294 RunE : func (cmd * cobra.Command , args []string ) error {
9395 cmd .Flags ().Set (flags .FlagFrom , args [0 ])
9496 clientCtx , err := client .GetClientTxContext (cmd )
0 commit comments