Skip to content

feat(cli): print tx signature before send for hardware wallet verification#179

Closed
jkbpvsc wants to merge 1 commit intoSquads-Protocol:mainfrom
jkbpvsc:cli/print-tx-hash-on-send
Closed

feat(cli): print tx signature before send for hardware wallet verification#179
jkbpvsc wants to merge 1 commit intoSquads-Protocol:mainfrom
jkbpvsc:cli/print-tx-hash-on-send

Conversation

@jkbpvsc
Copy link
Copy Markdown

@jkbpvsc jkbpvsc commented Apr 8, 2026

Summary

  • Print the transaction signature in send_and_confirm_transaction before the RPC call, so users signing with a Ledger or other hardware wallet can cross-check the hash shown on-device against the one printed by the CLI.
  • Previously the signature was only printed after send_and_confirm returned Ok, which meant (a) it couldn't be verified before signing and (b) it was lost entirely on preflight failure or RPC timeout, leaving no way to look the tx up.
  • All CLI commands route their transactions through this single helper, so this one change covers every command (multisig-create, vault-transaction-*, config-transaction-*, proposal-vote, initiate-*, claim-rent, program-config-init, …).

…ation

Print the transaction signature up front in send_and_confirm_transaction
so users signing with a Ledger or other hardware wallet can cross-check
the hash shown on-device against the one printed by the CLI. Previously
the signature was only printed after confirmation succeeded, which meant
it was impossible to verify before signing and was lost entirely on
failure or RPC timeout.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 8, 2026

@jkbpvsc is attempting to deploy a commit to the squads Team on Vercel.

A member of the Team first needs to authorize it.

@jkbpvsc jkbpvsc closed this Apr 8, 2026
@jkbpvsc
Copy link
Copy Markdown
Author

jkbpvsc commented Apr 8, 2026

Already handled in #172

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