xrpl.js
xrpl.js is a client library for JavaScript and TypeScript: ready-made code that lets a program work with the XRP Ledger. It runs in Node.js or in web browsers.
What you need
The getting started tutorial asks for some familiarity with JavaScript and for Node.js version 20 or later. For a web application, any modern web browser with JavaScript support should work.
How it works
In a web page you load the library with a script tag. In Node.js you install it with NPM. You then create a Client, connect to the ledger and use its request method to reach the XRP Ledger's WebSocket API. A Wallet class handles the keys and address of an account. On the Testnet you can fund a new account.
Listening for events
xrpl.js can tell your program when something happens, for example each time the ledger's consensus process produces a new ledger version. You call the subscribe method for the type of events you want and attach a handler. When you are done, you disconnect from the ledger.
Good to know
A wallet that you only generate is not yet an account. You need to send XRP to it for it to be a valid account on the ledger. News about updates to the library goes to the xrpl-announce mailing list.
Source: xrpl.org, xrpl.org, xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made