-
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
Delegator Guide (CLI) sending offline transactions #3908
Labels
T:Docs
Changes and features related to documentation.
Comments
cc: @gamarin2 |
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! |
We should also add a section on sending offline |
Fixed in #3922 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: