# wallycore

> JavaScript bindings for libwally

Latest version **1.5.6** (published 2026-07-11) · (MIT or BSD) license · 0 weekly downloads

## Install

```sh
npm install wallycore
pnpm add wallycore
yarn add wallycore
bun add wallycore
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.5.6 |
| Published | 2026-07-11 |
| First published | 2022-11-30 |
| Weekly downloads | 0 |
| License | (MIT or BSD) |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Blockstream |
| Maintainers | blockstream_dot_com |

## Links

- npm: https://www.npmjs.com/package/wallycore
- npm.io page: https://npm.io/package/wallycore

## Recent versions

- 1.5.6 (latest) — 2026-07-11
- 1.5.4 — 2026-06-17
- 1.5.3 — 2026-04-15
- 1.5.1 — 2025-08-22
- 1.5.0 — 2025-07-31
- 1.4.0 — 2025-03-11
- 1.3.1 — 2024-09-26
- 1.3.0 — 2024-07-20
- 1.2.0 — 2024-02-09
- 1.1.0 — 2024-01-28
- 1.0.0 — 2023-11-20
- 0.9.2 — 2023-08-30
- 0.9.1 — 2023-08-02
- 0.9.0 — 2023-05-22
- 0.8.9 — 2023-04-14
- … 2 more at https://npm.io/package/wallycore/versions

## README

# libwally JS

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

## Installation

```bash
$ npm install wallycore
```

## Example use

With ES modules:

```js
import wally from 'wallycore'

const word = wally.bip39_get_word(null, 10)

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

const tx = wally.tx_from_hex('020000000100000000000000000000000000000000000000000000000000000000000000000000000000fdffffff0101000000000000000000000000', 0)
console.log(wally.tx_get_txid(tx).toString('hex'))
wally.tx_free(tx)
```

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

For browser use, you may use a bundler like [webpack](https://webpack.js.org/),
or use the pre-bundled [`wallycore.bundle.js`](wallycore.bundle.js) file which exposes a global `WallyInit` promise that resolves to the module. For example:

```html
<script src="wallycore/wallycore.bundle.min.js"></script>
<script>
WallyInit.then(wally => {
    console.log(wally.bip39_get_word(null, 10))
})
// or `const wally = await WallyInit`
</script>
```

## Limitations

- BIP38 (passphrase-protected keys) [related functions](https://wally.readthedocs.io/en/latest/bip38/) are disabled due to WASM memory restrictions, which are insufficient for running Scrypt with the BIP38 parameters.

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

---
_Source: https://npm.io/package/wallycore · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
