SDK Integration
This guide helps developers integrate Clique Wallet into their applications using the official SDK. The Clique Wallet SDK is available as an npm package and provides a convenient way to interact with Clique Wallet's API.
Prerequisites
Access to a Clique Wallet instance
The Clique Wallet API endpoint URL
Node.js 16+ or a modern JavaScript environment
Installation
Install the Clique Wallet SDK using npm:
npm install clique-wallet-sdkOr using yarn:
yarn add clique-wallet-sdkFor more information, visit the Clique Wallet SDK on npm.
Basic Usage
Initialize the SDK
import { CliqueWallet } from 'clique-wallet-sdk';
const wallet = new CliqueWallet({
apiUrl: 'https://your-wallet-instance.com'
});Authenticate User
Get Wallet Addresses
Sign Transaction
Authentication Methods
The SDK supports all authentication methods available in Clique Wallet:
Email/Phone Verification:
Social OAuth:
External Wallet Connection:
Error Handling
The SDK provides structured error handling:
Last updated