Skip to content

Instantly share code, notes, and snippets.

@fmorency
Created May 30, 2024 17:59
Show Gist options
  • Save fmorency/35ac0d09d0db9cf7654b7c523097dfc7 to your computer and use it in GitHub Desktop.
Save fmorency/35ac0d09d0db9cf7654b7c523097dfc7 to your computer and use it in GitHub Desktop.
Using xfeegrant

Allow manifest1efd63aw40lxf3n4mhf7dzhjkr453axurm6rp3z (user2) to pay gas fees for manifest1hj5fveer5cjtn4wd6wstzugjfdxzl0xp8ws9ct (user1) for message type /cosmos.bank.v1beta1.MsgSend only.

manifestd tx feegrant grant manifest1efd63aw40lxf3n4mhf7dzhjkr453axurm6rp3z manifest1hj5fveer5cjtn4wd6wstzugjfdxzl0xp8ws9ct \
    --allowed-messages /cosmos.bank.v1beta1.MsgSend \
    --keyring-backend test \
    --home ~/.manifest-local1 \
    --gas auto \
    --gas-prices 0.001umfx \
    --gas-adjustment 1.3 \
    --from user2

Send some token from manifest1hj5fveer5cjtn4wd6wstzugjfdxzl0xp8ws9ct and make manifest1efd63aw40lxf3n4mhf7dzhjkr453axurm6rp3z pay for the fees

manifestd tx bank send manifest1hj5fveer5cjtn4wd6wstzugjfdxzl0xp8ws9ct manifest1afk9zr2hn2jsac63h4hm60vl9z3e5u69gndzf7c99cqge3vzwjzsfmy9qj 50umfx \
  --keyring-backend test \
  --home ~/.manifest-local1 \
  --from user1 \
  --fee-granter manifest1efd63aw40lxf3n4mhf7dzhjkr453axurm6rp3z \
  --gas auto \
  --gas-prices 0.001umfx \
  --gas-adjustment 1.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment