Groups by admin

GroupsByAdmin queries groups by admin address.

GEThttps://luna.nownodes.io/cosmos/group/v1/groups_by_admin/{admin}
Path parameters
admin*string

admin is the account address of a group's admin.

Query parameters
Response

A successful response.

Body
groupsarray of object

groups are the groups info with the provided admin.

paginationobject

pagination defines the pagination in the response.

Request
const response = await fetch('https://luna.nownodes.io/cosmos/group/v1/groups_by_admin/{admin}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "groups": [
    {
      "id": "text",
      "admin": "text",
      "metadata": "text",
      "version": "text",
      "total_weight": "text",
      "created_at": "2024-12-22T02:16:06.964Z"
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}