Getting Started
Get up and running with XRPL-Connect in minutes.
Installation
Using npm
npm install xrpl-connect xrplUsing pnpm
pnpm add xrpl-connect xrplUsing yarn
yarn add xrpl-connect xrplThe xrpl-connect package includes:
- Core - WalletManager, event system, and state management
- UI - Beautiful web component for wallet connection
- Adapters - Built-in support for Xaman, Crossmark, GemWallet, WalletConnect, and Ledger hardware wallets
Note: The
xrplpackage is required for transaction types and utilities.
Get Your API Keys
To use XRPL-Connect, you'll need API keys for the wallet adapters you plan to use.
Xaman API Key
Xaman is the most popular XRPL wallet. Get your API key here:
- Go to https://apps.xumm.dev/
- Sign in with your Xaman account
- Create a new application
- Copy your
API Keyand optionally yourAPI Secret - Use these when creating the XamanAdapter
const adapter = new XamanAdapter({
apiKey: 'YOUR_API_KEY',
apiSecret: 'YOUR_API_SECRET', // optional
});WalletConnect Project ID
If you want to support mobile wallets via WalletConnect:
- Go to https://cloud.walletconnect.com/
- Create a new project
- Copy your
Project ID - Use it when creating the WalletConnectAdapter
const adapter = new WalletConnectAdapter({
projectId: 'YOUR_PROJECT_ID',
});Other Adapters
Crossmark, GemWallet, and Ledger don't require API keys - they work directly with browser extensions, wallets, or hardware devices:
const crossmarkAdapter = new CrossmarkAdapter();
const gemWalletAdapter = new GemWalletAdapter();Ledger Hardware Wallet
For Ledger hardware wallet support, no API keys are required. The adapter communicates directly with the device:
import { LedgerAdapter } from 'xrpl-connect';
const ledgerAdapter = new LedgerAdapter({
// Optional: customize derivation path (default: "44'/144'/0'/0/0")
derivationPath: "44'/144'/0'/0/0",
// Optional: timeout for operations in ms (default: 60000)
timeout: 60000,
// Optional: prefer WebHID over WebUSB (default: true)
preferWebHID: true,
});Requirements for Ledger:
- Supported browsers: Chrome, Edge, or Opera (WebHID/WebUSB support required)
- HTTPS connection (localhost is OK for development)
- User must unlock device and open the XRP app
- Close Ledger Live if it's running (conflicts with WebHID/WebUSB)
For more details on Ledger integration, see the Ledger adapter documentation.
Framework-Specific Guides
Once you've installed the package and have your API keys, follow the guide for your framework:
Web Frameworks
- Vanilla JavaScript - Pure JavaScript, no framework
- React - Complete React integration guide
- Vue 3 - Vue 3 Composition API guide
- Nuxt - Nuxt 3 and Nitro integration
Each guide includes:
- Basic setup and initialization
- Connecting the wallet manager to the UI component
- Handling wallet events
- Signing transactions
- Best practices for your framework
What's Next?
- Concepts - Understand WalletManager, adapters, and web components
- Try It Out - See the wallet connector in action
- Customization - Style the component with CSS variables
- API Reference - Complete API documentation
