Fetch Groups
This guide will help you with fetching Groups from Lens API.
Get a Group
- React
- TypeScript
- GraphQL
Use the useGroup hook to fetch a single Group. Returns null if no group is found.
A Group can be fetched by its address or by transaction hash.
List Groups
- React
- TypeScript
- GraphQL
Use the useGroups hook to fetch a list of Groups.
Groups can be fetched by search query, app address, managedBy or member.
See the Pagination guide for more information on how to handle paginated results.