cosmos/feegrant/v1beta1/allowances/{grantee}

Parameters

Object NameRequiredTypeDetail
GRANTEE✅StringThe address of the user being granted an allowance of another user's funds.
pagination.key❌StringThe value returned in PageResponse.next_key to begin querying the next page most efficiently. If provided, then pagination.offset is not allowed.
pagination.offset❌IntegerA numeric offset that can be used when pagination.key is unavailable. It is less efficient than pagination.key. If provided, then pagination.key is not allowed.
pagination.limit❌IntegerThe total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
pagination.count_total❌BooleanIf set to true, the result will include a count of the total number of items available for pagination. count_total is only respected when offset is used. It is ignored when key is set.
/cosmos/feegrant/v1beta1/allowances/cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88

Result

All the grants for address.

Example

Request

curl <your-rest-endpoint>/cosmos/feegrant/v1beta1/allowances/cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88 \
  -X GET \
  -H "accept: application/json"

Return

{
    "allowances": [
        {
            "granter": "cosmos1qcual5kgmw3gqc9q22hlp0aluc3t7rnsprewgy",
            "grantee": "cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88",
            "allowance": {
                "@type": "/cosmos.feegrant.v1beta1.BasicAllowance",
                "spend_limit": [
                    {
                        "denom": "uatom",
                        "amount": "78736"
                    }
                ],
                "expiration": null
            }
        },
        {
            "granter": "cosmos1sxs8nue70ggwd2ve2rdwxskmtjh4rghwkku8u9",
            "grantee": "cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88",
            "allowance": {
                "@type": "/cosmos.feegrant.v1beta1.BasicAllowance",
                "spend_limit": [
                    {
                        "denom": "uatom",
                        "amount": "10000"
                    }
                ],
                "expiration": null
            }
        },
        {
            "granter": "cosmos16xvamk2av6j7gvkynwpfdz2jx82cghyndrnjzn",
            "grantee": "cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88",
            "allowance": {
                "@type": "/cosmos.feegrant.v1beta1.BasicAllowance",
                "spend_limit": [
                    {
                        "denom": "uatom",
                        "amount": "123"
                    }
                ],
                "expiration": null
            }
        },
        {
            "granter": "cosmos1mc87nkqn0udsynsq964ptr3tnmcjdkv5n9wyzl",
            "grantee": "cosmos1we0w0l0ascgh8xyz009ttlyjfz3fr2xf479u88",
            "allowance": {
                "@type": "/cosmos.feegrant.v1beta1.BasicAllowance",
                "spend_limit": [
                    {
                        "denom": "uatom",
                        "amount": "980506"
                    }
                ],
                "expiration": null
            }
        }
    ],
    "pagination": {
        "next_key": null,
        "total": "4"
    }
}