Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bsv-wallet

mybanka3.5kISC2.4.3TypeScript support: included

A Bitcoin SV Wallet Javascript Library

javascript, bsv, wallet, bitcoin, whitepaper, satoshi, P2P, blockchain, transaction, easy, simple

readme

BsvWallet ⚡🔑

A simple JavaScript library for Bitcoin SV (BSV) integration

  • enable peer to peer transactions ✅
  • Typescript and JavaScript autocomplete ✅
  • browser & node friendly ✅
  • ❤️ easy to use ❤️

Current features

  • create your wallet (new private key)
  • import your wallet (from a private key)
  • get your wallet address
  • sign a transactions (get hex)
  • broadcast a transactions (from hex)
  • send money (sign & then broadcast your tx)
  • get your wallet balance
  • get your wallet tx history
  • read blockchain data
  • work offline (P2PWallet)
  • easy NFT minting
  • Hierarchical Deterministic (HD) Wallet at 0 technical cost

Next features

  • More stable RPC than Whatsonchain

Exemple: Bob sending money to Alice

const walletBob = new Wallet({ key: "bob private key mnemonic" });
const walletAlice = new Wallet({ key: "alice private key mnemonic" });

const transactionId = await walletBob.sendMoney({
  to: await walletAlice.getAddress(),
  amount: 1234,
});

console.log({
  aliceBalance: await alice.getBalance(),
});

Further Documentation:

bsv-wallet doc website

Dev note

This wallet is brought to you AS-IS by the De Buck Technologies SRL team. This wallet is use extensively in our own MyBanka wallet (Open Banking + Bitcoin SV).

If you wish to contribute or encounter any issues: Please contact MyBanka Team on discord https://discord.gg/3kg7PbjPAd or by email at `hello@mybanka.eu`.

Copyright © 2023 De Buck Technologies SRL.