-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
cmd/baseserver: add a direct /send command #202
Comments
/cc @ethanfrey @mappum |
There is a reason to separate them to allow for multisig and checking the TX before sending. The /send helper is nice, but you need the name envelope for it to work. I will open two new issues. Please put this as lower priority |
Thinking more about this, I see the utility for the main case. I want to allow the mutisig case with minimal code duplication. I would also prefer Here is a proposal (depends on #205 being finished)
So:
Or course, in this case, the last tx to post may not want to sign (we got enough sigs, just put it on the chain already) |
relevant to #324. closing but should be considered there |
Merge pull request from GHSA-86h5-xcpx-cfqc
Currently in order to send money from one account, it requires the following steps(in order):
obtained from a draft of the initial requirements doc at https://github.com/tendermint/basecoin/blob/9037b3508a7ba72baf45bf86396964851479efd4/docs/rest/API_draft.md.
However, while testing out things I noticed this dance can be simplified, just like for basecli to send it is one step
$ basecli tx send --name=cool --amount=900mycoin --to=7C6AAAECE9BC4D04971B196B1CBA7D7CD78F72B8 --sequence=1 Please enter passphrase for cool: XXXXXXXXXXXXXXXX
Which gives
I propose we make a route for /send whose request looks like this
which will then perform all the steps necessary to send a transaction and post it to the blockchain.
The text was updated successfully, but these errors were encountered: