GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - XRPLF/xrpl.js: A JavaScript/TypeScript API for interacting with the XRP Ledger in Node.js and the browser

BranchesTags
Open more actions menu

Latest commit

 

History

4,941 Commits
4,941 Commits

Folders and files

NameName
Last commit message
Last commit date
.ai-review
.ai-review
 
 
.ci-config
.ci-config
 
 
.claude/skills/batch-deps-upgrade
.claude/skills/batch-deps-upgrade
 
 
.github
.github
 
 
.vscode
.vscode
 
 
docs
docs
 
 
packages
packages
 
 
.coderabbit.yaml
.coderabbit.yaml
 
 
.gitignore
.gitignore
 
 
.ncurc.json
.ncurc.json
 
 
.nvmrc
.nvmrc
 
 
.prettierignore
.prettierignore
 
 
APPLICATIONS.md
APPLICATIONS.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
HISTORY.md
HISTORY.md
 
 
LICENSE
LICENSE
 
 
MIGRATION.md
MIGRATION.md
 
 
README.md
README.md
 
 
RELEASE.md
RELEASE.md
 
 
SECURITY.md
SECURITY.md
 
 
UNIQUE_SETUPS.md
UNIQUE_SETUPS.md
 
 
jest.config.base.js
jest.config.base.js
 
 
jest.config.js
jest.config.js
 
 
karma.config.js
karma.config.js
 
 
lerna.json
lerna.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
webpack.config.js
webpack.config.js
 
 
webpack.test.config.js
webpack.test.config.js
 
 

Repository files navigation

xrpl.js

A JavaScript/TypeScript library for interacting with the XRP Ledger

NPM npm bundle size

This is the recommended library for integrating a JavaScript/TypeScript app with the XRP Ledger, especially if you intend to use advanced functionality such as IOUs, payment paths, the decentralized exchange, account settings, payment channels, escrows, multi-signing, and more.

➡️ Reference Documentation

See the full reference documentation for all classes, methods, and utilities.

Features

  1. Managing keys & creating test credentials (Wallet && Client.fundWallet())
  2. Submitting transactions to the XRP Ledger (Client.submit(...) & transaction types)
  3. Sending requests to observe the ledger (Client.request(...) using public API methods)
  4. Subscribing to changes in the ledger (Ex. ledger, transactions, & more...)
  5. Parsing ledger data into more convenient formats (xrpToDrops and rippleTimeToISOTime)

All of which works in Node.js (tested on v22 and v24) & web browsers (tested for Chrome).

Quickstart

Requirements

  • Node.js v22 or v24 is recommended. Node.js v20 reached end-of-life on April 30, 2026 and is no longer tested. It may still work with v5.x, but support will be removed in the next major release. Other versions may work but are not frequently tested.

Installing xrpl.js

In an existing project (with package.json), install xrpl.js with:

$ npm install --save xrpl

Or with yarn:

$ yarn add xrpl

Example usage:

const xrpl = require("xrpl");
async function main() {
  const client = new xrpl.Client("wss://s.altnet.rippletest.net:51233");
  await client.connect();

  const response = await client.request({
    command: "account_info",
    account: "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
    ledger_index: "validated",
  });
  console.log(response);

  await client.disconnect();
}
main();

For a more in-depth example, you can copy/forking this Code Sandbox template!
https://codesandbox.io/s/xrpl-intro-pxgdjr?file=/src/App.js

It goes through:

  1. Creating a new test account
  2. Sending a payment transaction
  3. And sending requests to see your account balance!

Case by Case Setup Steps

If you're using xrpl.js with React or Deno, you'll need to do a couple extra steps to set it up:

  • Using xrpl.js with a CDN
  • Using xrpl.js with create-react-app
  • Using xrpl.js with React Native
  • Using xrpl.js with Vite React

Documentation

As you develop with xrpl.js, there's two sites you'll use extensively:

  1. xrpl.org is the primary source for:
    • How the ledger works (See Concepts)
    • What kinds of transactions there are (Transaction Types)
    • Requests you can send (Public API Methods)
    • Tutorials for interacting with various features of the ledger (Tutorials)
  2. js.xrpl.org has the reference docs for this library

Mailing Lists

If you want to hear when we release new versions of xrpl.js, you can join our low-traffic mailing list (About 1 email per week):

  • Subscribe to xrpl-announce

If you're using the XRP Ledger in production, you should run a rippled server and subscribe to the ripple-server mailing list as well.

  • Subscribe to ripple-server

Asking for help

One of the best spots to ask for help is in the XRPL Developer Discord - There's a channel for xrpl.js where other community members can help you figure out how to accomplish your goals.

You are also welcome to create an issue here and we'll do our best to respond within 3 days.

Key Links

  • xrpl.js Reference Docs
  • xrpl.org (Detailed docs on how the XRPL works)
  • XRPL Code Samples
  • #javascript in the XRPL Developer Discord for questions & support
  • xrpl-announce (The mailing list for new xrpl.js versions)
  • Applications that use xrpl.js (You can open a PR to add your project!)

License

xrpl.js is licensed under the ISC License. Each package under packages/ also contains its own LICENSE file.

About

A JavaScript/TypeScript API for interacting with the XRP Ledger in Node.js and the browser

xrpl.org/

Topics

apiblockchaincryptocryptocurrenciescryptocurrencyjavascriptnodejsripplerippleapitypescriptxrpxrp-ledgerxrplxrpljs

Resources

Readme
ISC license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1.3k stars

Watchers

188 watching

Forks

597 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.