How-to for developers · Trading and DeFi

Getting Started with XRPL DEX Trading

In plain words

This guide takes you through a first trading session on the decentralized exchange (DEX) of the XRP Ledger, driven by plain-language requests to Claude. You read a live order book, place a limit order and cancel an offer. It takes about 30 minutes.

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

What you will do

You install two skills for Claude. The XRPL Agent Wallet skill handles wallet creation, key loading and the whole signing routine. The XRPL Trading skill builds the right transaction for each exchange action, such as OfferCreate and OfferCancel. Claude passes the work from one to the other, so you do not manage that yourself.

What you need

You need a funded wallet on the test network, Node.js 18 or later or Python 3.9 or later, and the XRP Ledger software kit for your language. Claude Code is recommended. If you have no test wallet yet, a separate guide of about 15 minutes sets one up.

A pair to trade

The test network has few offers, so you first need a pair to trade. The quick way is to place a limit order that matches nothing, let it rest, then cancel it. To see a real fill, you issue a test token from a second wallet and place an offer against it. Your trading wallet needs no trust line beforehand, because the ledger creates one the first time you receive the token. Set aside 0.2 XRP of owner reserve for it.

The steps in short

Ask Claude to read the order book. This only reads data, so no signature is needed. Then ask for a limit order: you see a summary and a preview before anything is signed and sent. Save the offer sequence, because you need it to cancel the part that did not fill. A cancel of an offer that was already filled still succeeds, does nothing and still costs the fee.

Flags for order types

With no flag, a limit order rests if it is not filled. tfImmediateOrCancel fills what it can and cancels the rest. tfFillOrKill must fill completely or it is cancelled, with the result tecKILLED and the fee still charged. tfPassive never matches existing offers and always rests. Never combine tfImmediateOrCancel and tfFillOrKill.

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.