✨Works out of the box guarantee. If you face any issue at all, hit us up on Telegram and we will write the integration for you.
logoReclaim Protocol Docs

Installation

Welcome to the first step in integrating Reclaim Protocol into your JavaScript project! This guide will walk you through the installation process and help you get started quickly.

Prerequisites

Before installation, ensure your development environment meets these requirements:

  • Node.js version 14.x or later (LTS version recommended)
  • npm version 6.x or later (included with Node.js) or yarn version 1.22.x or later
  • A project directory initialized with package.json

To verify your installations:

node --version
npm --version # or yarn --version

Installation Steps

1. Install the SDK

Navigate to your project directory in the terminal:

cd your-project-directory

Choose one of the following commands based on your package manager:

Using npm:

npm install @reclaimprotocol/js-sdk

Using yarn:

yarn add @reclaimprotocol/js-sdk

2. Verify Installation

Confirm the installation by:

  1. Checking your package.json dependencies:
{
  "dependencies": {
    "@reclaimprotocol/js-sdk": "^x.x.x"  // Version number will vary
  }
}
  1. Ensuring the SDK files are in your node_modules directory

3. Using the SDK

Import the SDK into your application using either ES modules or CommonJS syntax:

import { ReclaimProofRequest } from '@reclaimprotocol/js-sdk';

For CommonJS environments:

const { ReclaimProofRequest } = require('@reclaimprotocol/js-sdk');

Troubleshooting

If you encounter installation issues:

  • Ensure your Node.js and npm versions are compatible and follow the Prerequisites section
  • Clear your package manager's cache by running npm cache clean --force or yarn cache clean and try reinstalling
  • Join our Telegram community for direct support

Explore

Happy coding with Reclaim Protocol!

On this page