Send a Trust Line Token
This tutorial shows how to send a trust line token from one holder to another on the XRP Ledger. It also shows how to check first that the receiving account can accept the payment.
- Section
- Tutorials
How it works
Each account must create a trust line to the issuer before it can hold the token. Holders can send the token to each other through the issuer only if the issuer allows rippling on both of their trust lines. The issuer can allow it on all of its trust lines with the Default Ripple flag, which the page recommends, or on individual trust lines. This indirect movement of funds is called rippling.
What you need
You need a basic understanding of the XRP Ledger and a client library set up. The page gives examples in JavaScript with xrpl.js, Python with xrpl-py and Go with xrpl-go. The example sends TST, a test token available on Testnet.
The steps in short
Install the dependencies, connect a client and load the sender wallet. Check the sender's balance with the account_lines method. It should cover the payment plus any transfer fee the issuer charges. Request the receiver's trust line and run four checks: the trust line exists, rippling is allowed, the receiver's limit covers the payment, and the line is authorized if the issuer requires that. Then send a Payment transaction that names the currency code, the issuer's address and the value. Finally, check the balances again.
If the payment fails
tecPATH_PARTIAL means the sender does not have enough balance to cover the payment, or the payment plus the transfer fee. tecPATH_DRY means no path could deliver any amount at all. That commonly happens when the receiver has no trust line for the token, the issuer does not allow rippling or the receiver's trust line is not authorized.
Good to know
Always read the delivered amount in the transaction metadata when you process incoming payments. It is the amount the receiver actually got. A partial payment can return tesSUCCESS while delivering less than Amount. If the issuer has a non-zero TransferRate, the sender's balance decreases by more than the receiver gains.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made