An XRPL order can expire while the reserve it occupies may still not be released
On the XRPL, an order expiring and no longer being fillable does not mean it has disappeared from the ledger. An offer exiting the order book and the account reserve being released are two different state changes.
$XRP The official developer documentation clearly states that an expired offer may remain in the ledger data and may still be found by some APIs. The owner reserve associated with it becomes available again only after the order object is actually deleted.
The reason is not that the platform forgot to process it. The XRPL does not actively scan for and remove all expired or unfunded offers. Instead, it deletes them when a transaction encounters them—for example, during matching or cross-currency payments. The owner can also explicitly cancel the offer.
When I look at this kind of account balance, I care more about “why it’s temporarily unavailable” than just focusing on the total. Assets awaiting execution in an offer, reserves tied up by ledger objects, and transaction fees already paid are not the same cost and should not be lumped together.
The risk is that treating an expired offer as making funds immediately available may lead you to overestimate the XRP that can be transferred. The cleanup transaction itself may also incur network fees.
To determine whether a reserve has been released, check whether the order object has actually been removed and what the account’s current reserve requirements are, rather than relying only on the expired label in the interface.
On the XRPL, an order expiring and no longer being fillable does not mean it has disappeared from the ledger. An offer exiting the order book and the account reserve being released are two different state changes.
$XRP The official developer documentation clearly states that an expired offer may remain in the ledger data and may still be found by some APIs. The owner reserve associated with it becomes available again only after the order object is actually deleted.
The reason is not that the platform forgot to process it. The XRPL does not actively scan for and remove all expired or unfunded offers. Instead, it deletes them when a transaction encounters them—for example, during matching or cross-currency payments. The owner can also explicitly cancel the offer.
When I look at this kind of account balance, I care more about “why it’s temporarily unavailable” than just focusing on the total. Assets awaiting execution in an offer, reserves tied up by ledger objects, and transaction fees already paid are not the same cost and should not be lumped together.
The risk is that treating an expired offer as making funds immediately available may lead you to overestimate the XRP that can be transferred. The cleanup transaction itself may also incur network fees.
To determine whether a reserve has been released, check whether the order object has actually been removed and what the account’s current reserve requirements are, rather than relying only on the expired label in the interface.