Sponsor a Transaction by Co-Signing
This tutorial shows the co-signed sponsorship flow, where a sponsor approves a single transaction by adding a signature to it. In the example, a sponsor creates an account for a new user who holds no XRP, then covers the fee and the owner reserve for a transaction that user sends.
- Section
- Tutorials
What you will do
You create an account for a sponsee and pay its account reserve as the sponsor. Then you co-sign a transaction so the sponsor pays the fee and the reserve of the new ledger entry. At the end you confirm that the sponsor paid both.
When to use it
Use this flow when the sponsor needs to review each sponsored transaction before it is submitted. If the sponsee needs to transact without waiting on the sponsor, the source points to a pre-funded pool instead. The flow requires the Sponsor amendment, which the source lists as open for voting.
What you need
You need a basic understanding of the XRP Ledger and of Sponsored Fees and Reserves. You also need a client library: the examples use JavaScript with the xrpl.js library and Python with the xrpl-py library. You install what the code depends on with npm or pip.
The steps in short
You fund the sponsor and generate a key pair for the sponsee, who has no account and no XRP yet. A Payment transaction with the tfSponsorCreatedAccount flag creates the sponsee's account. The flag makes the sponsor responsible for the new account's reserve, so the payment only needs to deliver the smallest possible XRP amount. The sponsee then prepares a DepositPreauth transaction, though many other transaction types can be sponsored too. In it, the Sponsor field names the account that pays and SponsorFlags states what it pays for: spfSponsorFee for the transaction fee, spfSponsorReserve for the reserve of the new entry.
Signing and submitting
The sponsor must sign the transaction with the exact Fee amount it agrees to pay, so autofill the transaction before signing. If the fee is added or changed afterwards, the signature no longer matches. The sponsee's signature fills the usual SigningPubKey and TxnSignature fields. The sponsor's goes into a separate SponsorSignature field with its own SigningPubKey and TxnSignature. You submit the fully signed transaction, wait for validation, and inspect the affected nodes to confirm the sponsor paid the fee and reserve.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made