Skip to content

Feat/stellar sponsored batch send - #146

Merged
truthixify merged 4 commits into
wraith-protocol:developfrom
Mathew2k-hash:feat/stellar-sponsored-batch-send
Aug 27, 2026
Merged

Feat/stellar sponsored batch send#146
truthixify merged 4 commits into
wraith-protocol:developfrom
Mathew2k-hash:feat/stellar-sponsored-batch-send

Conversation

@Mathew2k-hash

Copy link
Copy Markdown
Contributor

Title:
docs(stellar): sponsored batch send with paymaster-covered reserves

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Description:

What

Adds guides/stellar/sponsored-batch-send.mdx — a new guide documenting the
pattern of combining Stellar's BeginSponsoringFutureReserves /
EndSponsoringFutureReserves with Wraith's batch send so a single paymaster
account covers the 1 XLM minimum reserve for every new stealth recipient in one
atomic transaction. This is the top-requested undocumented pattern for airdrops
and payroll.

Why

guides/stellar-fees.mdx explains fee-bump sponsorship but stops short of reserve
sponsorship. There was no page documenting how to combine sponsored reserves
with batch send for multi-recipient flows. Developers building airdrops or
payroll pipelines had no reference for this pattern.

Changes

  • guides/stellar/sponsored-batch-send.mdx (new) — covers:
    • BeginSponsoringFutureReserves / EndSponsoringFutureReserves concept and
      operation sequence
    • Reserve vs fee cost model table with the AccountMerge refund lifecycle
    • How to derive the 24-recipients-per-transaction chunk limit from Stellar's
      100-op cap
    • End-to-end airdrop example for 100 stealth recipients, chunked and fully
      signed (sponsor + sender + each new stealth address for
      EndSponsoringFutureReserves)
    • Failure modes with recovery code: auth revocation, insufficient sponsor
      reserves, missing EndSponsoringFutureReserves signature, and trustline missing
      inside the sponsorship window
    • AccountMerge example showing how recipients return locked XLM to the
      paymaster
    • Futurenet testing section
  • docs.json — nav entry added in Guides → Operations, alongside the other
    guides/stellar/ guides
  • guides/stellar-fees.mdx — cross-link added to See Also pointing at the new
    guide

Testing

  • All 10 TypeScript snippets in the new guide pass tsc --noEmit (mirrors what
    check:snippets CI does)
  • No no-check suppressions added — every snippet is fully checked
  • bash and table blocks are non-checkable by design and left as-is

Related

Closes the undocumented gap between guides/stellar-fees.mdx (fee-bump) and full
reserve sponsorship for batch stealth sends.
closes #128

musay added 2 commits August 26, 2026 18:50
Covers the full flow for Python 3.11+ backends that want to talk to
Wraith contracts without the TypeScript SDK:

- guides/quickstarts/python.mdx (new)
  - pip install stellar-sdk + cryptography only
  - wraith_crypto.py inline utility: scan-key derivation via SHA-256
    domain separation, X25519 ECDH, ed25519 point addition, view-tag
    prefilter, sign_with_scalar (RFC 8032 compatible raw scalar signing)
  - Fetch WRAITH_ANNOUNCEMENT events from Soroban RPC (getEvents + XDR decode)
  - scan_announcements with view-tag prefilter (~255/256 skip rate)
  - Send: createAccount activation + Soroban announcer invocation
  - Spend: withdrawal tx signed with raw stealth scalar
  - All Python fences marked no-check for the TS snippet gate
  - Targets futurenet; notes testnet contract IDs for live testing

- sdk/overview.mdx: cross-link to Python quickstart under Next Steps

- docs.json: Quickstarts nav group added above Guides in the Guides tab
…attern

Add guides/stellar/sponsored-batch-send.mdx covering:
- BeginSponsoringFutureReserves + batch send + EndSponsoringFutureReserves pattern
- Reserve vs fee cost model with AccountMerge refund lifecycle
- End-to-end airdrop example for 100 stealth recipients (chunked at 24/tx)
- Failure modes: auth revocation, insufficient reserves, missing EndSponsoring
  signature, and trustline missing inside sponsorship window
- Futurenet testing section

Update docs.json: add nav entry in Guides > Operations group.
Update guides/stellar-fees.mdx: cross-link to new guide in See Also.

All 10 TypeScript snippets pass tsc --noEmit (check:snippets CI).
@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@Mathew2k-hash Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Mathew2k-hash and others added 2 commits August 27, 2026 00:12
…group

The auto-merge of develop into feat/stellar-sponsored-batch-send produced
an invalid docs.json: the Quickstarts group ended up with two separate
"pages" keys (python from this branch, rust from develop) with no comma
between them. Merged both entries into a single pages array.

Fixes: pnpm run check:nav-coverage JSON parse error at position 3128.
@truthixify
truthixify merged commit 411c537 into wraith-protocol:develop Aug 27, 2026
2 checks passed
@truthixify

Copy link
Copy Markdown
Contributor

Merged. The sponsored-reserve cost model and the refund timing are explained clearly, which is the bit the Stellar docs gloss over @Mathew2k-hash.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sponsored batch send tutorial

2 participants