Skip to content

feat: add useSignTransaction hook#48

Merged
satoshai-dev merged 1 commit intomainfrom
feat/use-sign-transaction
Mar 5, 2026
Merged

feat: add useSignTransaction hook#48
satoshai-dev merged 1 commit intomainfrom
feat/use-sign-transaction

Conversation

@satoshai-dev
Copy link
Copy Markdown
Owner

@satoshai-dev satoshai-dev commented Mar 5, 2026

Summary

  • Add useSignTransaction hook for signing serialized transactions via stx_signTransaction
  • Enables sponsored transaction flows where a separate service pays the fee
  • Types: SignTransactionVariables (transaction: string, broadcast?: boolean), returns { transaction, txid? }
  • OKX wallet throws (unsupported) — all other wallets supported
  • Example app demo with hex input and broadcast checkbox
  • README API section added

Closes #42

Test plan

  • pnpm build passes
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test — 144 tests pass
  • Manual test: connect wallet, sign transaction in example app

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@satoshai-dev satoshai-dev force-pushed the feat/use-sign-transaction branch from ce5845e to 2685349 Compare March 5, 2026 13:54
@satoshai-dev satoshai-dev merged commit 0e6241e into main Mar 5, 2026
1 check passed
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.

Add useSignTransaction hook

1 participant