Fetch Groups
This guide will help you with fetching Groups from Lens API.
Get a Group
- TypeScript
- GraphQL
- React
Use the fetchGroup function to fetch a single Group by address or by transaction hash.
Fetching a Group by transaction hash is extremely useful when building a user experience where a user creates a Group and needs it presented back to them.
List Groups
- TypeScript
- GraphQL
- React
Use the paginated fetchGroups function to fetch a list of Groups based on the provided filters.
See the Pagination guide for more information on how to handle paginated results.