Skip to content

Commit f4e61f2

Browse files
jgriffithsshesek
andcommitted
wasm: README/example updates
Co-authored-by: Nadav Ivgi <[email protected]>
1 parent 5e4d603 commit f4e61f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wasm_package/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# libwally JS
22

3-
WASM-based JavaScript bindings for [libwally](https://github.com/elementsproject/libwally-core),
3+
Official Blockstream WASM-based JavaScript bindings for [libwally](https://github.com/elementsproject/libwally-core),
44
for nodejs and the browser.
55

66
## Installation
@@ -18,12 +18,12 @@ const word = wally.bip39_get_word(null, 10)
1818

1919
const script = wally.address_to_scriptpubkey("1EMBaSSyxMQPV2fmUsdB7mMfMoocgfiMNw", wally.WALLY_NETWORK_BITCOIN_MAINNET)
2020

21-
const tx = wally.tx_from_hex('020000...', 0)
22-
console.log(wally.tx_get_txid(tx).toString('hex))
21+
const tx = wally.tx_from_hex('020000000100000000000000000000000000000000000000000000000000000000000000000000000000fdffffff0101000000000000000000000000', 0)
22+
console.log(wally.tx_get_txid(tx).toString('hex'))
2323
wally.tx_free(tx)
2424
```
2525

2626
If you're using CommonJS, the module can be loaded asynchronously using `const wally = await import('wallycore')` or `import('wallycore').then(wally => { ... })`.
2727

2828
## License
29-
[BSD/MIT](https://github.com/ElementsProject/libwally-core/blob/master/LICENSE)
29+
[BSD/MIT](https://github.com/ElementsProject/libwally-core/blob/master/LICENSE)

0 commit comments

Comments
 (0)