Embedded Wallets
SDK
Javascript
Getting Started

Getting Started 🚀

To start using the Xellar Javascript SDK, follow these steps:

  1. Install the SDK:
npm install xellar-ew-sdk
  1. Import and initialize the SDK:
import { XellarSDK } from 'xellar-ew-sdk';
 
const xellar = new XellarSDK({
   clientSecret: 'YOUR_CLIENT_SECRET',
   env: 'sandbox | production',
});

Platform Specific Instructions

React Native

ℹ️

You need to install react-native-quick-crypto to use the SDK for React Native.

import { XellarSDK } from 'xellar-ew-sdk/react-native'; // <<-- Import for React Native
 
const xellar = new XellarSDK({
   clientSecret: 'YOUR_CLIENT_SECRET',
   env: 'sandbox | production',
});

You can get your client secret from the Xellar Embedded Wallet API Dashboard (opens in a new tab).