Installation & Setup
Pass Generator - Generate mobile passes for IRL events. Gated by NFTs or Policies.
Gated Component - Gate any content in few lines of code
Hook - React hook for gating content
Inside your React project directory, run the following:
Or with npm:
SDKProvider
is a crucial component that enables the initialization and configuration of the SDK within your application. By wrapping your application's root component with SDKProvider
, you ensure that SDK functionalities are available throughout your component tree.
SDKProvider
accepts the following props:
apiKey
string
Required. Your SDK API key.
loadingIndicator
{ size?: number; color?: string; component?: React.ReactElement | null; }
Optional. Configuration for a custom loading indicator to be displayed during various loading states
Wrap your application with
SDKProvider
:
To use the SDK in your React application, wrap your root component with SDKProvider
, providing the required public api key and any optional props you wish to configure.
Updated about 1 month ago
Table of Contents
@ethpass/sdk
Features
Getting Started
Installation
Setup