Skip to content

Instantly share code, notes, and snippets.

@blockpane
Created January 27, 2023 20:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save blockpane/3b823c158c7cfbcb4f433f0ce8dc5d8d to your computer and use it in GitHub Desktop.
Save blockpane/3b823c158c7cfbcb4f433f0ce8dc5d8d to your computer and use it in GitHub Desktop.
AuthZ Cheatsheet

Claims:

Setup:

simd tx distribution set-withdraw-addr <claim_address> -y --from validator
simd tx authz grant <claim_address> generic --msg-type=/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission --from validator
simd tx authz grant <claim_address> generic --msg-type=/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward --from validator

Use:

simd tx authz exec <(simd tx distribution withdraw-rewards <valoper_address> --commission -y --from <validator_address> --generate-only) --from claim -y

Gov:

Setup:

simd tx authz grant <voter_address> generic --msg-type=/cosmos.gov.v1beta1.MsgVote --from validator

Use:

simd tx authz exec <(simd tx gov vote <proposal_id> <yes_no_etc> --from <validator_address> --generate-only --chain-id <chain_id>) --from claim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment