Skip to content

Use SDK 17 XDR fields in the fee-payer and x402 examples - #2932

Merged
ElliotFriend merged 4 commits into
mainfrom
2909-sdk17-fee-payer-xdr-fields
Nov 9, 2026
Merged

ElliotFriend merged 4 commits into
mainfrom
2909-sdk17-fee-payer-xdr-fields

Conversation

@kaankacar

Copy link
Copy Markdown
Contributor

Closes #2909

What

  • docs/build/guides/transactions/signing-soroban-invocations.mdx (Step 2): read the Soroban data with SDK 17 XDR fields. Check the envelope and extension types first. Use fromXdr.
  • docs/build/agentic-payments/x402/quickstart-guide.mdx (client.js): use the same field access.
  • Both pages: add one line that names the tested SDK version (v17) and links the XDR migration guide.

Verification

  • @stellar/stellar-sdk 17.2.1: the old code throws TypeError: txEnvelope.v1 is not a function. The new code passes tsc --strict.
  • Testnet, SDK 17.2.1: the full fee-payer flow succeeded, and the fee payer paid the fee (tx e004183a21c0b985a2d21566a028788ae0952a96179cee2fd0dda16a2193fbc2).
  • Testnet, SDK 17.2.1: the x402 quickstart server and client settled a payment (tx f2ce7e910a6946228c940ce2ce975f79c3225a8fd5ee220a605d2996e1bc59c0).
  • Local RPC fixtures: the missing-Soroban-data and v0-envelope branches throw before any RPC call.
  • pnpm check:mdx, scripts/check-relative-links.sh and an MDX compile pass.

Notes

SDK 17 replaced the XDR getter methods with fields. The fee-payer
example and the x402 client called removed getters, so both threw a
TypeError before any network call. Both now check the envelope and
extension types and read the Soroban data from fields. A short note
names the tested SDK version and links the XDR migration guide.

Closes #2909
@kaankacar

Copy link
Copy Markdown
Contributor Author

/triage

@github-actions github-actions Bot added the preview Preview builds for PRs by SDF employees. label Oct 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@stellar-doxie stellar-doxie Bot added the bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge label Oct 21, 2026
@stellar-doxie

stellar-doxie Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Reviewing because @kaankacar asked with /triage.

Verified: the new field access matches the @stellar/stellar-sdk 17.2.1 typings (npm latest). Both cited testnet transactions succeeded. The preview renders both pages and all checks are green. Ready to merge.

@mintlify

mintlify Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
stellar-docs 🟢 Ready View Preview Nov 9, 2026, 6:48 PM

@stellar-doxie

stellar-doxie Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Back on this because @ElliotFriend pushed and merged it.

Nothing more to do here.

This branch was successfully deployed

1 active deployment
staging — bbfb25fc Deployed Nov 9, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge preview Preview builds for PRs by SDF employees.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the fee-payer signing example to use SDK 17 XDR fields

2 participants