Manage a Sponsorship Pool
This guide shows a sponsor how to manage a pre-funded sponsorship pool, a budget for fees and reserves that a sponsee draws on. You create a pool, check what it spends, top it up and delete it to reclaim the unspent XRP.
- Section
- Tutorials
What you need
You need a basic understanding of the XRP Ledger and of sponsored fees and reserves. You also need a client library: xrpl.js for JavaScript or xrpl-py for Python. The feature requires the Sponsor amendment.
Create and spend
The sponsor creates the pool with a SponsorshipSet transaction and signs it alone, because only the sponsor can create a pool. The result returns the ID of the new Sponsorship entry. The sponsee then sends a DepositPreauth transaction that draws the fee and one owner reserve from the pool. The entry's FeeAmount and RemainingOwnerCount fields drop to match.
Top up the pool
Send another SponsorshipSet transaction for the same sponsee. FeeAmountDelta and RemainingOwnerCountDelta change the current allowances: positive values add budget and negative values reduce it. MaxFee stays an absolute cap for each transaction. The pool does not regain RemainingOwnerCount when a sponsored entry is deleted or reassigned, so top it up to sponsor more entries.
Delete the pool
Send SponsorshipSet with the tfDeleteObject flag. The Sponsorship entry is deleted and the unspent FeeAmount returns to the sponsor, minus the fee of the delete transaction. The guide reads the sponsor's balance with the account_info method before and after to compare. The sponsor's owner reserve for the entry is released too, but that does not show as a balance increase.
Good to know
The Sponsorship entry appears in the owner directories of both accounts, so neither account can be deleted until the pool is. Deleting a pool does not end sponsorship on entries that already used its reserve allowance. Those stay sponsored until a SponsorshipTransfer transaction with the tfSponsorshipEnd flag ends it, or until the entries are deleted.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made