Building on the XRP Ledger uses an official client library, a test network, test XRP from a faucet, and requests to a server. This page lists the official sources for each, with an example request. It is a reference, not a recommendation.
Official client libraries
These libraries are listed in the official XRPL references and published by the maintainers shown.
| Language | Library | Package | Source |
|---|---|---|---|
| JavaScript / TypeScript | xrpl.js | npm install xrpl | XRPLF/xrpl.js |
| Python | xrpl-py | pip install xrpl-py | XRPLF/xrpl-py |
| Java | xrpl4j | Maven org.xrpl | XRPLF/xrpl4j |
| Go | xrpl-go | go get github.com/Peersyst/xrpl-go | Peersyst/xrpl-go |
The maintainers' advisory lists xrpl.js versions 4.2.1 to 4.2.4 and 2.14.2 as malicious, and 4.2.5 as the fixed release. Case file.
Networks and public servers
Ripple operates Testnet and Devnet for testing without real funds. Both are reset from time to time. Devnet carries features that have not yet reached Testnet.
| Network | WebSocket | Operator |
|---|---|---|
| Testnet | wss://s.altnet.rippletest.net:51233 | Ripple |
| Devnet | wss://s.devnet.rippletest.net:51233 | Ripple |
| Mainnet | wss://xrplcluster.com | XRP Ledger Foundation |
Public servers are shared and rate-limited. According to xrpl.org, Ripple's public servers are not for sustained or business use. The full list, including commercial providers, is on the official public servers page.
Test XRP
The XRP Faucets page on xrpl.org generates funded Testnet and Devnet accounts. The libraries can also request test funds in code, for example client.fundWallet() in xrpl.js. Test XRP has no monetary value and exists only on the test networks.
Example request
This example reads the latest validated ledger number from Testnet. It runs in Node.js 20 or later, in an ES module.
import { Client } from "xrpl"
const client = new Client("wss://s.altnet.rippletest.net:51233")
await client.connect()
const { result } = await client.request({ command: "server_info" })
console.log("Validated ledger:", result.info.validated_ledger.seq)
await client.disconnect()
The same request in Python:
from xrpl.clients import JsonRpcClient
from xrpl.models.requests import ServerInfo
client = JsonRpcClient("https://s.altnet.rippletest.net:51234/")
info = client.request(ServerInfo()).result["info"]
print("Validated ledger:", info["validated_ledger"]["seq"])
The number increases every few seconds, as the network closes a new ledger.
Amendments
New protocol features arrive as amendments. A feature can ship in server software before validators enable it, and it activates only after holding a supermajority of validator support for two weeks. Current status is published on the known amendments page.
XRPL EVM Sidechain
The XRPL EVM Sidechain is a separate, Ethereum-compatible network. Its mainnet launched on June 30, 2025, connected to the XRP Ledger through the Axelar bridge, with XRP used for fees. It has its own documentation at docs.xrplevm.org.
Code on this page is provided for learning, as is. See the disclaimer and terms of use.