Skip to content

feat: add --dry-run flag to all transacting commands#11

Merged
AaronCQL merged 1 commit intomainfrom
feat/dry-run
Mar 26, 2026
Merged

feat: add --dry-run flag to all transacting commands#11
AaronCQL merged 1 commit intomainfrom
feat/dry-run

Conversation

@AaronCQL
Copy link
Contributor

@AaronCQL AaronCQL commented Mar 26, 2026

Summary

  • Adds a global --dry-run flag that previews any on-chain transaction without signing or submitting
  • The API still simulates the transaction (with taker address), so errors like insufficient balance, minimum size violations, etc. are caught before execution
  • JSON output includes dryRun: true, signature: null, and the unsigned base64 transaction for external signing workflows
  • Table output prints a [DRY RUN] label at the top and omits the signature row

Commands affected

spot swap, spot transfer, spot reclaim, perps open, perps set, perps close, lend earn deposit, lend earn withdraw, predictions open, predictions close

Preview any on-chain transaction without signing or submitting. The API
still simulates the transaction, catching errors like insufficient
balance. JSON output includes the unsigned base64 transaction for
external signing workflows.
@AaronCQL AaronCQL merged commit 8413ad2 into main Mar 26, 2026
4 checks passed
@AaronCQL AaronCQL deleted the feat/dry-run branch March 26, 2026 03:56
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.

1 participant