Queries

Cosmos-SDK Fee Grant module query commands

The query commands allow users to query feegrant state.

sged query feegrant --help

Grant

The grant command allows users to query a grant for a given granter-grantee pair.

sged query feegrant grant [granter] [grantee] [flags]

Example:

sged query feegrant grant sge1.. sge1..

Example Output:

allowance:
  '@type': /cosmos.feegrant.v1beta1.BasicAllowance
  expiration: null
  spend_limit:
  - amount: "100"
    denom: usge
grantee: sge1..
granter: sge1..

Grants

The grants command allows users to query all grants for a given grantee.

sged query feegrant grants [grantee] [flags]

Example:

sged query feegrant grants sge1..

Example Output:

allowances:
- allowance:
    '@type': /cosmos.feegrant.v1beta1.BasicAllowance
    expiration: null
    spend_limit:
    - amount: "100"
      denom: usge
  grantee: sge1..
  granter: sge1..
pagination:
  next_key: null
  total: "0"

For detailed information see the original document.

Last updated