Fetch Sponsorship
This guide will show you how to fetch Sponsorship data in different ways.
Lens Sponsorship data has a rich structure that includes the following information:
Addresses of the primitive contract
Sponsorship Metadata content
Time of creation
Owner of the Sponsorship
Information about status of the sponsorship (pause or unpause)
To illustrate how to fetch sponsorships, we will use the following fragments:
Get a Sponsorship
- TypeScript
- GraphQL
Use the fetchSponsorship action to fetch a single Sponsorship by address or by transaction hash.
List Sponsorships
- TypeScript
- GraphQL
Use the paginated fetchSponsorships action to fetch a list of Sponsorships based on the provided filters.
See the Pagination guide for more information on how to handle paginated results.