How-to for developers · Payments

Cash a Check for an Exact Amount

In plain words

This tutorial shows how to cash a Check for an exact amount. As long as the Check is not expired, the specified recipient can cash it for any exact amount up to the amount the Check specifies.

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

When you would use it

You cash a Check this way if you want to receive a specific amount, for example to pay off an invoice or bill exactly. If the sender does not have enough money, cashing the Check fails, but you can try again later. You can also cash a Check for a flexible amount.

What you need

You should know the basics of the xrpl.js client library. You need the ID of a Check ledger entry that you are the recipient of. You can get it from whoever sent you the Check, or by looking up Checks where your account is the destination.

The steps in short

Prepare a CheckCash transaction with four fields: TransactionType, Account, CheckID and Amount. Account is your address and Amount is the amount to receive. The type of currency, token or XRP, must match the Check. The quantity must be less than or equal to the amount in the Check. For currencies with transfer fees, you must cash the Check for less than its SendMax, so the SendMax can pay the transfer fee. Submit the transaction and wait for it to be validated.

Checking the result

A successful transaction has tesSUCCESS as its TransactionResult in the metadata, the record of what the transaction did. The submitAndWait method in xrpl.js only returns when the result is final. The getBalanceChanges function can summarize the balance changes. They are net changes, so the XRP you receive appears minus the few drops burned on the transaction cost. One drop is the smallest unit of XRP.

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.