Term · Building on the ledger

xrpl4j

In plain words

xrpl4j is a client library for Java: ready-made code that lets a Java program work with the XRP Ledger. It is a pure Java library.

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

What you need

The getting started tutorial asks for a basic understanding of Java, for Java 11 or later and for Maven. It is meant for beginners and should take no longer than 30 minutes. The library is available on Maven Central.

How it works

You connect with an XrplClient. It sends each request over JSON-RPC, so there is no connection to open or close. To make a new account, the Seed class gives a random seed. The seed derives a key pair, and the address is derived from its public key. For testing, a FaucetClient connected to the Testnet funds the account, which takes a few seconds to be validated.

Good to know

An account lookup returns the Sequence, the number of the next valid transaction for the account, and the Balance in drops. One drop is the smallest unit of XRP. For production use you connect to the Mainnet, through your own xrpld server or through a public server, and you should take care to store your keys.

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

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.