npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xrpl-wallet-kit/client

v0.1.18

Published

All-in-one XRPL Wallet Kit client with core, UI, and first-party adapters.

Readme

@xrpl-wallet-kit/client

All-in-one XRPL Wallet Kit client for browser dApps.

This package creates the wallet manager, official adapters, modal UI, connect button, identity resolver, balance display, transaction toast, and recent transaction wiring from one configuration object.

Install

npm install @xrpl-wallet-kit/client

For React apps, also install @xrpl-wallet-kit/react.

npm install @xrpl-wallet-kit/client @xrpl-wallet-kit/react

Choosing an entry

  • @xrpl-wallet-kit/client provides the batteries-included factory and first-party adapter exports. It has the largest bundle profile.
  • @xrpl-wallet-kit/client/selective provides core, UI, storage resolution, and a manager factory without importing any wallet adapter. Install and pass only the adapter packages your app supports.
import { createWalletClient } from "@xrpl-wallet-kit/client/selective";
import { createGemWalletAdapter } from "@xrpl-wallet-kit/adapter-gemwallet";

const manager = createWalletClient({
  adapters: [createGemWalletAdapter()],
  network: "mainnet",
  storage: "localStorage",
});

Quick Start

import { createWalletKit } from "@xrpl-wallet-kit/client";

const kit = createWalletKit({
  metadata: {
    name: "My XRPL App",
    description: "Wallet connection for My XRPL App",
    url: window.location.origin,
    icons: [`${window.location.origin}/icon.png`],
  },
  network: "mainnet",
  autoReconnect: true,
  walletConnectProjectId: import.meta.env.VITE_WALLETCONNECT_PROJECT_ID,
  connectButton: "#connect-wallet",
  ui: {
    nonce: window.__CSP_NONCE__, // optional, for strict Content Security Policy
    themeMode: "light",
    walletConnect: { mode: "default" },
    accountPanel: {
      showBalance: true,
      showAddressQr: true,
      showRecentTransactions: true,
      maxVisibleTransactions: 5,
    },
    toast: true,
  },
});

metadata is used by WalletConnect/AppKit and future auth prompts to identify the dApp. Legacy fields (appName, appDescription, appUrl, appIcons) are still accepted, but new integrations should prefer metadata.

walletConnect.mode: "default" uses the official WalletConnect AppKit modal. Use "list" or "group" when you want XRPL Wallet Kit to render its custom wallet list and QR/deeplink panel.

Selecting Wallets

const kit = createWalletKit({
  wallets: ["xaman", "gemwallet", "dropfi", "ledger", "walletconnect"],
  walletConnectProjectId: "...",
  connectButton: "#connect-wallet",
});

Available built-in ids:

  • xaman
  • gemwallet
  • crossmark
  • dropfi
  • walletconnect
  • xrpl-snap or xrplsnap
  • ledger
  • otsu

ledger is included in wallets: "all" by default. Because it is a hardware wallet, it does not silently restore after reload; users must reconnect the device and open the XRP app.

Signing

const signed = await kit.signMessage({
  message: "Sign in to My XRPL App",
});

const submitted = await kit.signAndSubmit({
  txJson: {
    TransactionType: "Payment",
    Account: kit.getSession()?.account.address,
    Destination: "r...",
    Amount: "1000000",
  },
});

The client delegates to the active adapter. Apps do not need to branch by wallet id for supported methods.

Recent Transactions

When showRecentTransactions is enabled, manager.signAndSubmit() records submitted transactions with a returned hash and the account panel can show compact rows with status, relative time, and an explorer link.

kit.manager.addTransaction({
  hash: "A1B2...",
  status: "submitted",
  account: kit.getSession()?.account,
});

WalletConnect Sign Message Destination

Some WalletConnect wallets use a non-submitted transaction proof for message signing. Pass walletConnectSignMessageDestination when you want that proof transaction to use a known destination instead of the default.

createWalletKit({
  walletConnectProjectId: "...",
  walletConnectSignMessageDestination: "r...",
});

Related

  • @xrpl-wallet-kit/core - headless manager and adapter contract
  • @xrpl-wallet-kit/ui - modal, button, inline picker, and toast
  • @xrpl-wallet-kit/browser - IIFE bundle for HTML/legacy apps