How-to for developers · Accounts, wallets and keys

Build a Desktop Wallet in JavaScript

In plain words

This tutorial shows how to build a desktop wallet for the XRP Ledger in JavaScript with the Electron Framework. It starts from a tiny Hello World app and adds more features in each step.

Written by zerps in plain words, from the source linked below.
Section
Tutorials

What you will do

You build an app that shows updates to the XRP Ledger in real time, shows any account's activity in a read-only way, and sends direct XRP payments. Before a payment it gives feedback about the destination: whether it already exists on the ledger, whether it does not want to receive XRP, and whether it has a verified domain name. The app does not send or trade tokens, but it gives you a base to add such features.

What you need

You need Node.js 14 or newer and some familiarity with modern JavaScript. The page asks that you have completed the Get Started Using JavaScript tutorial and have some understanding of the XRP Ledger. The complete source code is in the code samples section of the website's repository.

The steps in short

Set up the project with a package.json file. This installs the Electron Framework and the xrpl.js client library, and you show a Hello World window. Next, call the ledger method and show the latest validated ledger index. Then swap that single call for a WebSocket subscription, a lasting two-way connection, so the app keeps in step with the ledger. After that, ask the user for an account address and show its details. Each time a transaction event arrives, the app makes an account_info request to get the latest account status. Then show the account's transaction history. Then ask for a seed and a password, so the app can store the seed in encrypted form. A styling step follows.

Good to know

A seed can lead to a different address than you expect if the wrong signing algorithm is used. Versions 2.x and earlier of xrpl.js use the secp256k1 algorithm by default, and xrpl.js 3.x and up use Ed25519. When you call Wallet.fromSeed, name the algorithm that was used when the key pair was created.

Source: xrpl.org. Read 6 December 2026.

Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.