How-to for developers · Payments

Send XRP

In plain words

This tutorial explains how to send a direct XRP payment using a client library. It steps through the process on the XRP Ledger Testnet, then compares that with the extra requirements for production.

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

What you need

You need a development environment with one of the libraries: xrpl.js for JavaScript, xrpl-py for Python, xrpl4j for Java, XRPL_PHP for PHP or xrpl-go for Go. To transact you need an address, a secret key and some XRP. For development, you can get Testnet credentials that are already funded.

The steps in short

Connect to a Testnet server. Prepare a Payment transaction. Sign it, which uses your credentials to authorize the transaction. Submit the signed transaction to a server, which relays it through the network. Wait for validation, then check the transaction's status in a validated ledger.

Preparing the payment

The bare minimum is four things: the transaction type Payment, the sending address in Account, the receiving address in Destination and the amount in DeliverMax. The destination cannot be the same as the sending address. The amount is typically given in drops, where 1,000,000 drops equals 1 XRP. Some optional fields, such as LastLedgerSequence, are strongly recommended.

Waiting for the result

The result you get right after submitting is tentative and can change. Most transactions are accepted into the next ledger version, so it may take 4 to 7 seconds for the outcome to be final. To know for sure what a transaction did, look it up when it appears in a validated ledger version. Look for validated true in the response.

Differences for production

Real XRP is not free. You get it from someone who already has some, for example by buying it on an exchange and withdrawing it to your own address. Only use an address and secret that you generated securely on your local machine. The page recommends not using the same address on Testnet and Mainnet. You must also connect to a server synced with the production network, such as a public server or your own xrpld.

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.