Grantee

GranteeGrants returns a list of `GrantAuthorization` by grantee.

Since: cosmos-sdk 0.45.2

GET/cosmos/authz/v1beta1/grants/grantee/{grantee}
Path parameters
grantee*string
Query parameters
Response

A successful response.

Body
grantsarray of GrantAuthorization extends a grant with both the addresses of the grantee and granter. It is used in genesis.proto and query.proto

grants is a list of grants granted to the grantee.

paginationobject

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Request
const response = await fetch('/cosmos/authz/v1beta1/grants/grantee/{grantee}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "grants": [
    {
      "granter": "text",
      "grantee": "text",
      "authorization": {
        "type_url": "text",
        "value": "Ynl0ZXM="
      },
      "expiration": "2024-09-16T11:39:34.948Z"
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

Last updated