Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

Add option to provide network as a string parameter for address
and outputScript functions. This makes the API more convenient
by allowing users to pass network names (e.g. "btc", "bitcoin",
"testnet") instead of requiring a network object.

  • Implement string-based network parameter handler functions
  • Add TypeScript wrapper to handle both string and object parameters
  • Document the pattern in wasm-bindgen.md for future reference

BTC-2912

Add option to provide network as a string parameter for address
and outputScript functions. This makes the API more convenient
by allowing users to pass network names (e.g. "btc", "bitcoin",
"testnet") instead of requiring a network object.

- Implement string-based network parameter handler functions
- Add TypeScript wrapper to handle both string and object parameters
- Document the pattern in wasm-bindgen.md for future reference

Issue: BTC-2912

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2912.generate-with-coinName branch from 46c1e7b to 91e9e96 Compare January 14, 2026 11:01
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review January 14, 2026 11:13
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner January 14, 2026 11:13
@OttoAllmendinger OttoAllmendinger merged commit 03d850b into master Jan 14, 2026
5 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2912.generate-with-coinName branch January 14, 2026 16:29
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.

3 participants