-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new command for MsgMultiSend
to send different amounts to multiple addresses.
#14617
Comments
Why not allowing the existing command to support this? We could add a flag that reads from an CSV as well so it works for both cases (same amount to multiple addresses or different amounts to multiple addresses) 🤔 |
curious for thoughts on using a CSV vs flags. Counter example could be something like.
|
@julienrbrt That is actually how I originally developed it. What I found was that the documentation became unwieldy - there were tons of flags and it wasn't clear to the user that there were two separate ways to use the command (one with the CSVs specified and one without). I can go change it back to that again, and work on the docs a bit more. IMO, if a CSV is specified it should send the exact amounts that are in the CSV (split flag should not be allowed in that case). Otherwise there are more edge cases to worry about, and the CSV format would be different. |
I agree. You can make the csv and split flag mutually exclusive and add an error msg when used together. Having good docs is for sure a win. |
I would personally prefer not to read from CSV. Instead just augment the current
Then we split on E.g.
Note, these should NOT be flags. This input is integral to the command, i.e. not optional and thus should be an arg. |
are you able to use the multi msg command, this seems like a fine alternative to multisend |
|
I am actually in favour of adding a
|
What does |
Delegates to multiple validators in a single transaction (we can avoid generating multiple messages for it) |
I'm not sure how I feel about that UX. But it also conflates the convo we're having here about |
Because no other users since this issue has requested this feature, and the possible UX confusion of adding a |
Summary
Create new command for
MsgMultiSend
to send different amounts to multiple addresses.Problem Definition
Currently
multi-send
will only send the same amount to multiple addresses. This has it's purposes, but there is a need to be able to send different amount. For example the rewards for Game of Chains requires distributing ~97 different amounts of atom to 97 different validators from a multi sig wallet. Doing 97 transactions would be a huge effort, and currently the cosmos-sdk does not support this.Proposal
Create a new command
multi-send-csv
that allows you to define an input address,token and and multiple outputaddress,token in 2 CSVs. For example.input.csv
output.csv
Then use the command.
Which would create the following output.
The text was updated successfully, but these errors were encountered: