Skip to content

feat(batch): add dryRun option to submitBatch (#608) - #677

Open
ZacLou wants to merge 2 commits into
conduit-protocol:mainfrom
ZacLou:feat/submit-batch-dryrun-608
Open

feat(batch): add dryRun option to submitBatch (#608)#677
ZacLou wants to merge 2 commits into
conduit-protocol:mainfrom
ZacLou:feat/submit-batch-dryrun-608

Conversation

@ZacLou

@ZacLou ZacLou commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Adds a dryRun flag so pre-flight UIs can simulate every transaction and preview outcomes without submitting anything to the network.

Changes

  • New dryRun?: boolean on BatchSubmitOptions
  • When dryRun is true, submitBatch calls server.simulateTransaction() for each built transaction instead of sendTransaction + polling
  • Successful simulations return status 'SIMULATED'
  • Failed simulations return status 'FAILED' with the simulation error message
  • All transactions are simulated independently (no SKIPPED cascade like in real submission)
  • Tests: src/tests/submitBatch-dryRun.test.ts verifies the option is accepted by the type system

Closes #608

…uit-protocol#606)

- Export resolveFee from src/index.ts so consumers can compute effective fees
- Add fee and feeMultiplier rows to ConduitClient configuration table
- Add Fee Precedence section to README explaining the resolution order:
  explicit fee > feeMultiplier * BASE_FEE > BASE_FEE

Closes conduit-protocol#606
- Add dryRun flag to BatchSubmitOptions
- In dryRun mode, simulate every transaction via server.simulateTransaction()
  instead of submitting to the network
- Successful simulations return status 'SIMULATED'
- Failed simulations return status 'FAILED' with the simulation error
- All transactions are simulated independently (no SKIPPED cascade)
- Add type-level test confirming the option is accepted

Closes conduit-protocol#608
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.

submitBatch dryRun option

1 participant