This is an example of how to build a mini-app that allows users to claim POAP (Proof of Attendance Protocol) badges through the Sherry Links SDK.
- POAP claim functionality
- Redis database for caching storage (optional)
- Compatible with Next.js and serverless deployments
- Integration with Sherry Links SDK
The trigger exposes:
GET /api/claim-poap: returns metadata for the POAP claim actionPOST /api/claim-poap: claims a POAP for a user using POAP API
- Node.js 18+
- pnpm
-
Clone and install dependencies:
git clone https://github.com/SherryLabs/sherry-mini-app-examples.git cd claim-poap pnpm install -
Configure environment variables:
cp .env.example .env
Fill in your POAP API credentials:
POAP_API_KEY=your_poap_api_key POAP_CLIENT_ID=your_poap_client_id POAP_CLIENT_SECRET=your_poap_client_secret POAP_EVENT_ID=your_event_id POAP_SECRET_CODE=your_secret_code POAP_CLAIM_PASSWORD=password_protection_for_claiming REDIS_URL=redis_connection_string (optional for caching)
-
Run the development server:
pnpm dev
- https://github.com/sherrylabs/sdk
- https://documentation.poap.tech/reference/postactionsclaim-delivery-v2
MIT License.