Repository navigation
Document sponsored account creation and merge sponsorship blockers - #2657
Merged
Merged
Conversation
…2590) The account-lifecycle docs presented the unsponsored path as universal and under-documented current account-merge behavior. Sponsored creation (CAP-0033): - create-account guide: the 1-XLM minimum is the ordinary self-funded path; a sponsored account can be created with startingBalance=0 - lumens minimum-balance and the sponsored-reserves guide now note that sponsorship can cover an account's own base reserves, not just subentries Account merge (verified against stellar-core MergeOpFrame): - Horizon account-merge result-codes page was missing ACCOUNT_MERGE_IS_SPONSOR (-7); added it, and clarified that non-signer subentries block a merge while signers (including sponsored signers) are removed automatically - list-of-operations account-merge section gains the same clarification; refined the HAS_SUB_ENTRIES and IS_SPONSOR row descriptions Closes #2590 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Documents sponsored zero-balance account creation and clarifies account-merge sponsorship blockers.
Changes:
- Adds sponsored account creation guidance.
- Expands account-merge result-code documentation.
- Clarifies automatic signer removal during merges.
Recommendation: NEEDS-CHANGES — distinguish active sponsorship relationships from existing reserve obligations and address the undated reserve value.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
docs/learn/fundamentals/transactions/list-of-operations.mdx |
Clarifies merge blockers and result codes. |
docs/learn/fundamentals/lumens.mdx |
Explains sponsored account reserves. |
docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/account-merge.mdx |
Adds the missing sponsor result code. |
docs/build/guides/transactions/sponsored-reserves.mdx |
Documents zero-balance account creation. |
docs/build/guides/transactions/create-account.mdx |
Adds the sponsored creation path. |
- ACCOUNT_MERGE_IS_SPONSOR now documents both Core conditions across all three surfaces (list-of-operations prose + table row, Horizon result-code page): (1) already sponsoring reserves (numSponsoring > 0) -> revoke sponsorships; (2) an open is-sponsoring-future-reserves relationship in the same transaction -> end it with EndSponsoringFutureReserves (nothing to revoke) - create-account: frame the 1 XLM minimum as a derived current value of two base reserves and defer to the linked minimum-balance section for the live value, since validators can change the base reserve Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Verified on the preview build and against primary sources:
Fully resolves #2590. LGTM. |
3 tasks done
|
héllo which bank is this account conducting business with at the time a
transaction is being send to it.
…On Wed, Jul 22, 2026, 9:55 AM Elliot Voris ***@***.***> wrote:
Merged #2657 <#2657> into
main.
—
Reply to this email directly, view it on GitHub
<#2657?email_source=notifications&email_token=A5LQRFLYPJ33ZTPZTTYA5535GDWXDA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTEOBTGM4DMOBSHE2DBJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#event-28338682940>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5LQRFOR7K24NBSYRAAZTVD5GDWXDAVCNFSNUABFKJSXA33TNF2G64TZHM2TEMJTGA3TOMRZHNEXG43VMU5TIOJUGAZDSOJTHEZKC5QC>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2590. The account-lifecycle docs presented the ordinary unsponsored path as if it were universal and under-documented current account-merge behavior. All claims verified against CAP-0033 and stellar-core
CreateAccountOpFrame/MergeOpFrame.Changes
Sponsored account creation (CAP-0033)
create-account.mdx— the 1-XLM minimum is now framed as the ordinary, self-funded path, with a note that a sponsored account can be created withstartingBalance = 0(the sponsor carries the two base reserves).lumens.mdx— the minimum-balance section now notes sponsorship can cover an account's own base reserves, not just its subentries.sponsored-reserves.mdx— added a note on theBeginSponsoringFutureReserves→CreateAccount→EndSponsoringFutureReservespattern for 0-balance creation.Account merge blockers
account-merge.mdxresult-codes page — was missingACCOUNT_MERGE_IS_SPONSOR(-7) entirely; added it. Also clarifiedACCOUNT_MERGE_HAS_SUB_ENTRIES: the blockers are non-signer subentries (trustlines, offers, data entries), while signers — including sponsored signers — are removed automatically during the merge.list-of-operations.mdx— added the same clarification to the Account Merge description, and sharpened theHAS_SUB_ENTRIES/IS_SPONSORrow descriptions. (The full result-code table here already listed -7; the Horizon page did not.)The key correction: the blocking relationship is asymmetric — an account that is sponsoring reserves for others cannot merge, but merely being sponsored is not a blocker, and signer-only accounts merge fine.
Closes #2590
🤖 Generated with Claude Code