Getting Started 🚀
To start using the Xellar Javascript SDK, follow these steps:
- Install the SDK:
npm install @xellar/sdk- Import and initialize the SDK:
ℹ️
You can get your appId in Xellar Dashboard .
import { XellarSDK } from '@xellar/sdk';
const xellar = new XellarSDK({
clientSecret: 'YOUR_CLIENT_SECRET',
appId: 'YOUR_APP_ID', // Optional. If you use appId, you need to add your origin in Xellar Dashboard.
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/sdk/react-native'; // <<-- Import for React Native
const xellar = new XellarSDK({
clientSecret: 'YOUR_CLIENT_SECRET',
appId: 'YOUR_APP_ID', // Optional. If you use appId, you need to add your origin in Xellar Dashboard.
env: 'sandbox | production',
});You can get your client secret from the Xellar Embedded Wallet API Dashboard (opens in a new tab).