Skip to content
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

Delegator Guide (CLI) sending offline transactions #3908

Closed
4 tasks
patrickwieth opened this issue Mar 15, 2019 · 4 comments
Closed
4 tasks

Delegator Guide (CLI) sending offline transactions #3908

patrickwieth opened this issue Mar 15, 2019 · 4 comments
Labels
T:Docs Changes and features related to documentation.

Comments

@patrickwieth
Copy link

patrickwieth commented Mar 15, 2019

It was not possible for me sending an offline tx following the advice from the Delegator Guide (CLI) (https://github.com/cosmos/cosmos-sdk/blob/develop/docs/gaia/delegator-guide-cli.md#signing-transactions-from-an-offline-computer). It was however possible to get it running with the help of @sunnya97 , so I will post here, what was missing.

First I ran into the problem that is already documented here: #3889 and solved it by creating a local pubkey as mentioned in the thread, should either be fixed in gaiacli or should be documented in the guide

gaiacli tx sign unsignedTx.json --from > signedTx.json

This command is mentioned in the guide, but what made it work was:

gaiacli tx sign unsignedTX.json --from --offline --account-number 1234 --sequence 0 --chain-id cosmoshub-1 >
signedTx.json

so --offline is missing, --account-number must be first looked up what account-number someone has, --sequence must be looked up and --chain-id is necessary as well.

Last but not least, --gas auto from this command mentioned in the guide:

gaiacli tx staking delegate --from --gas auto --gas-prices --generate-only > unsignedTX.json

repeatedly gave me too low gasWanted and thus the tx was not finally computed, so I had to increase it manually.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@fedekunze
Copy link
Collaborator

cc: @gamarin2

@fedekunze fedekunze added the T:Docs Changes and features related to documentation. label Mar 15, 2019
@gamarin2
Copy link
Contributor

Thank you for the feedback!

#3889 is a separate issue and in the process of being fixed.

For the rest, I will open a PR!

@jackzampolin
Copy link
Member

We should also add a section on sending offline tx distr withdraw* commands as this is challenging. Alternately we could provide ssh tunnel instructions.

@gamarin2
Copy link
Contributor

Fixed in #3922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T:Docs Changes and features related to documentation.
Projects
None yet
Development

No branches or pull requests

4 participants