Skip to content

Document using a different source account for an operation that is different from the parent transaction envelope account #1022

Description

@JFWooten4

What problem does your feature solve? 📝

It is my present understanding of the Docs that there is not a source of reference detailing how operations can have a source account different than that of the parent transaction envelope. In re #1011, might we clarify explicitly how default source account overrides work for new users?

What would you like to see?

Explain how each transaction's operation can have it's own source, unique from an envelope source. 💌 Ideally, provide a few code examples showing some very basic applications. Materially, the signature implications ought be extensively detailed per key custody implications.

What alternatives are there? 💭

We could require new users to learn all this when they start messing around with the Lab, but that may not be ideal. Namely, a new developer could confuse transaction and operation source accounts in re set ops functions which lock an account, potentially through no fault of their own. 🔐 A brief and informative explanation here could greatly protect newcomers.

Activity

  1. moved this from Ideas to To Do in Dev Docson Jan 7, 2025
  2. ElliotFriend commented on Jan 28, 2025

    @ElliotFriend
    Contributor

    It looks like the existing documentation is sparse for this:

    I think a "sister page" under this category might be a good fit? Maybe it could be called "Signatures" although that might be too "generic"?

    I really like what you propose @JFWooten4 about a clear explanation, and some really basic examples to illustrate those.

  3. moved this from To Do to In Progress in Dev Docson Feb 19, 2025
  4. added
    documentation
    on Feb 19, 2025
  5. changed the title [-]🤔 Detail how sources wrap[/-] [+]Document using a different source account for an operation that is different from the parent transaction envelope account[/+] on Feb 19, 2025
  6. anataliocs commented on Feb 25, 2025

    @anataliocs
    Contributor

    In-progress PR: #1301

    • Working on cleaning up testing code samples
    • Adding more context/details
  7. gre3n3yes34 commented on May 10, 2025

    @gre3n3yes34
  8. 3 remaining items

  9. added
    documentation
    good first issue
    on Jul 13, 2026
  10. kaankacar commented on Sep 7, 2026

    @kaankacar
    Contributor

    Triage bot, acting for @kaankacar.

    I am reading this issue now. I will report what I find.

  11. kaankacar commented on Sep 7, 2026

    @kaankacar
    Contributor

    Triage bot, acting for @kaankacar.

    The gap is still open. The docs cover this in two thin sentences:

    • Operations and Transactions says "unless an operation override is defined". The term is never defined.
    • List of Operations says the parameter is optional and falls back to the transaction.

    Neither one explains the signature or the custody effect. @anataliocs opened #1301 for this. It closed unmerged as a draft in March 2025, so nobody holds this work now.

    I checked the protocol, so the content is ready to write. Each operation carries an optional sourceAccount. Stellar Core checks each operation threshold against that operation's own source account. The fee and the sequence number always come from the transaction source account.

    Decision needed: should the bot write this content now, and where should it live?

    1. A new page under Transactions, as @ElliotFriend proposed. It needs a name. "Signatures" clashes with the existing "Signatures and Multisig" page. A new page also fixes a URL forever.
    2. A new section on the existing Operations and Transactions page. This adds no new URL. It replaces the undefined "operation override" sentence.
    3. Leave it for a newcomer. The issue is labeled good first issue. The scope asked for here is larger than that label suggests.

    @kaankacar @ElliotFriend please pick one.

  12. added
    bot:needs-decision
    on Sep 7, 2026
  13. ElliotFriend commented on Nov 10, 2026

    @ElliotFriend
    Contributor

    #2867 replaces the undefined "operation override" wording on Operations and Transactions with a short explanation. It says each operation can have its own source account, that this account's signers must authorize the operation (with setOptions as the example), and that the transaction's source account still provides the sequence number and the fee.

    We're keeping this issue open for the code example you asked for, which we'll add in a follow-up PR.

  14. added a commit that references this issue on Nov 10, 2026
    7dc5dd5
  15. stellar-doxie commented on Nov 10, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    Back on this because @ElliotFriend replied.

    Thanks. #2867 settles where this lives: the Operations and Transactions page. I checked the merged paragraph against the protocol, and it is correct.

    Decision needed: should the bot write the follow-up code example PR, or leave it to a newcomer?

    1. The bot writes it. It adds one short example to the Operations and Transactions page: a transaction whose operation uses a different source account, signed by both accounts.
    2. The bot writes a smaller PR. It links the examples the docs already have: Channel accounts and Sponsored reserves both set a per-operation source.
    3. Leave it to a newcomer. The issue keeps its good first issue label, and the bot does nothing.

    @kaankacar @ElliotFriend please pick one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot:needs-decisiondev-reldocumentationgood first issue

    Projects

    • Status
      In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions