Skip to content

docs(rpc): document useUpgradedAuth and fix simulateTransaction params - #3248

Open
ElliotFriend wants to merge 2 commits into
mainfrom
simulate-transaction-params
Open

ElliotFriend wants to merge 2 commits into
mainfrom
simulate-transaction-params

Conversation

@ElliotFriend

Copy link
Copy Markdown
Contributor

What

  • Add the useUpgradedAuth param to simulateTransaction: v27.1.0+, defaults to false, only applies in recording modes, and is transitional. The JS and Python SDKs send true by default, so raw RPC callers get legacy ADDRESS credentials unless they set it.
  • Note that authMode requires v23.0.0+.
  • Explain which credential types results[].auth can return (SOURCE_ACCOUNT, ADDRESS_V2, ADDRESS).
  • Fix the transaction param: it also accepts extendFootprintTtl and restoreFootprint, and it can't have a memo.
  • Remove the cost field from the examples (no longer returned), state the instructionLeeway default, and say that events are DiagnosticEvents.

Why

Agent feedback on the page reported the missing param and version requirements. I checked each claim against stellar-rpc and go-stellar-sdk source.

pnpm rpcspec:validate and rpcspec:docs --check pass.

Add the useUpgradedAuth param (stellar-rpc v27.1.0+), note that authMode
requires v23.0.0+, list the credential types in results[].auth, allow
the TTL extension and restore operations in transaction, and remove the
cost field from the examples.
@mintlify

mintlify Bot commented Dec 3, 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 Dec 3, 2026, 11:36 PM

@ElliotFriend

Copy link
Copy Markdown
Contributor Author

/triage

@stellar-doxie

stellar-doxie Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from Doxie.

Reviewing because @ElliotFriend asked with /triage.

Verified: every param, default, and version claim matches stellar-rpc v30.0.1 (the newest release) and its go-stellar-sdk v0.9.0 types. The preview renders.

I added one commit (7cc19ce): the deep-dive guide's SimulateTransactionParams interface (simulateTransaction-Deep-Dive.mdx:24) listed 2 of the 5 params. It now lists xdrFormat, authMode, and useUpgradedAuth too.

Ready to merge.

What I checked
  • One operation, no memo, extendFootprintTtl/restoreFootprint need SorobanTransactionData: stellar-rpc@v30.0.1 cmd/stellar-rpc/internal/methods/simulate_transaction.go:114-136.
  • authMode since v23.0.0 (Metering/fees docs are misleading about what resource fees are #432) and useUpgradedAuth since v27.1.0 (Add install wasm bytecode #783): stellar-rpc@v30.0.1 CHANGELOG.md:82,218.
  • useUpgradedAuth default false, recording modes only, ignored where the host cannot emit V2, transitional: go-stellar-sdk@v0.9.0 protocols/rpc/simulate_transaction.go:24-32. Enforce mode never reads it: stellar-rpc@v30.0.1 lib/preflight/src/shared.rs:185-189.
  • V2 vs legacy credentials in recorded entries: rs-soroban-env@v30.0.0 soroban-env-host/src/e2e_invoke.rs:621-660. SOURCE_ACCOUNT for the source account: auth.rs:2429-2459, 2540-2546.
  • SDK defaults are true: js-stellar-sdk@v17.5.0 src/rpc/server.ts:1614,1729, py-stellar-base@17.0.1 stellar_sdk/soroban_server.py:198,624.
  • instructionLeeway default 0, no cost field, events are DiagnosticEvent: go-stellar-sdk@v0.9.0 protocols/rpc/simulate_transaction.go:11,39-43,124-130.
  • CAP-71 link resolves (200). It is the overview; CAP-71-02 specifies ADDRESS_V2.
  • Preview: the method page shows "Params (5)" and useUpgradedAuth, with no cpuInsns. The guide shows the new interface fields.
  • Checks: all green at 7cc19ce, checks included (prettier, rpcspec, no broken links).
  • Sweep (cost/cpuInsns/memBytes, single-invokeHostFunction wording, param lists): only the guide interface needed a fix. .mintlify/skills/data/SKILL.md:122 still logs simulation.cost; it syncs from upstream, so I filed data skill: simulation example logs simulation.cost, which RPC no longer returns #3249.
  • Not run: the guide's TypeScript interface is a type listing, with nothing to execute.
  • Non-blocking: the authMode block on the method page renders two paragraphs that say the same thing. The second one comes from the schema description in openrpc/src/stellar-rpc/schemas/AuthMode.json. This was already on main. I did not change it because rpcspec:build cannot run in this lane.

This branch was successfully deployed

1 active deployment
staging — 7cc19ce5 Deployed Dec 3, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant