Using grant allowances to execute transactions
Query a grant allowance
secretcli query feegrant grant "granter_address" "grantee_address" allowance:
'@type': /cosmos.feegrant.v1beta1.BasicAllowance
expiration: null
spend_limit:
- amount: "1000000"
denom: uscrt
grantee: secret1q0rth4fu4svxnw63vjd7w74nadzsdp0f23e0uy
granter: secret1tq6y8waegggp4fv2fcxk3zmpsmlfadyc7lsd69{api_endpoint}/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}{
"allowance": {
"granter": "secret1tq6y8waegggp4fv2fcxk3zmpsmlfadyc7lsd69",
"grantee": "secret1q0rth4fu4svxnw63vjd7w74nadzsdp0f23e0uy",
"allowance": {
"@type": "/cosmos.feegrant.v1beta1.BasicAllowance",
"spend_limit": [
{
"denom": "uscrt",
"amount": "1000000"
}
],
"expiration": null
}
}
}Basic Keplr example
Prerequisites
Execute transaction
Last updated
Was this helpful?