Packages
Moments

@poap-xyz/moments

License: MIT (opens in a new tab)

@poap-xyz/moments is a package to interact with POAP Moments.

Features

  • Create a Moment attached to a Drop or a specific POAP
  • Update a Moment
  • Fetch multiple Moments
  • Fetch a single Moment

Installation

NPM

npm install @poap-xyz/moments @poap-xyz/utils @poap-xyz/providers axios

Yarn

yarn add @poap-xyz/moments @poap-xyz/utils @poap-xyz/providers axios

Usage

import { MomentsClient } from '@poap-xyz/moments';
import { PoapCompass, PoapMomentsApi } from '@poap-xyz/providers';
 
const client = new MomentsClient(
  new PoapMomentsApi('YOUR_MOMENTS_API_KEY'),
  new PoapCompass('YOUR_COMPASS_API_KEY'),
);

Documentation

For more detailed documentation, please visit this link (opens in a new tab).

Examples

For example scripts and usage, please check the examples (opens in a new tab).

Contributing

We welcome contributions! Please see the CONTRIBUTING.md file for guidelines.

License

@poap-xyz/moments is released under the MIT License (opens in a new tab).