Skip to content

feat(wasm-utxo): add transaction builder API to WASM layer#177

Merged
OttoAllmendinger merged 2 commits intomasterfrom
BTC-3047.add-build-tx
Feb 25, 2026
Merged

feat(wasm-utxo): add transaction builder API to WASM layer#177
OttoAllmendinger merged 2 commits intomasterfrom
BTC-3047.add-build-tx

Conversation

@OttoAllmendinger
Copy link
Copy Markdown
Contributor

Add create(), add_input(), and add_output() to WasmTransaction,
and p2sh_p2pk_output_script() to the fixed-script wallet WASM module.

Expose transaction builder API in TypeScript by wrapping the new WASM
create(), addInput(), and addOutput() methods in the Transaction
class, and add related exports to the fixed-script wallet index.

Also improve mocha configuration by removing redundant spec pattern from
.mocharc.json since it's already specified in the npm script command
line arguments.

Issue: BTC-3047

The spec pattern in .mocharc.json is redundant since it's already
specified in the npm script command line arguments.

Co-authored-by: llm-git <llm-git@ttll.de>

Issue: BTC-3047
Add `create()`, `add_input()`, and `add_output()` to `WasmTransaction`,
and `p2sh_p2pk_output_script()` to the fixed-script wallet WASM module.

feat(wasm-utxo): expose transaction builder API in TypeScript

Wrap the new WASM `create()`, `addInput()`, and `addOutput()` methods
in the `Transaction` class, and add related exports to the
fixed-script wallet index.
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review February 25, 2026 15:57
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner February 25, 2026 15:57
@OttoAllmendinger OttoAllmendinger merged commit 8c472ee into master Feb 25, 2026
7 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-3047.add-build-tx branch February 25, 2026 19:32
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.

2 participants