How-to for developers · Payments

Look up Escrows

In plain words

This tutorial shows how to look up outstanding escrows in the XRP Ledger by the address of their sender or recipient. It also shows how to tell when an escrow is mature or has expired.

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

What you need

You need a basic understanding of the XRP Ledger and a client library, such as xrpl.js, installed. You also need the address of an account that has one or more pending escrows. The examples come in JavaScript and Python.

The steps in short

Install the dependencies and set up a client. Use the ledger method to get the latest validated ledger, and save its close_time and ledger_hash values. Then use the account_objects method with the results filtered to the escrow type. The list may be paginated, which means split over several pages, so you may need multiple requests. Because of the way filtering works, some pages may be empty even if later pages hold more escrows.

Reading the escrows

Each entry is an Escrow entry sent either to or from the account you looked up. FinishAfter is the maturity time and CancelAfter is the expiration time. Compare them to the official close time of the latest validated ledger to see if the escrow has matured or expired. These fields are stored as seconds since the Ripple Epoch, so convert them to a readable format for display.

Good to know

With the TokenEscrow amendment, enabled 2026-02-12, escrows can send three types of funds: XRP, trust line tokens or multi-purpose tokens. The tutorial adds a helper function that turns any of the three into readable text. Escrows created before the fix1523 amendment was enabled on 2017-11-14 can only be looked up by sender address, not by the recipient's address.

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.