bsv-wallet
TypeScript icon, indicating that this package has built-in type declarations

2.4.3 • Public • Published

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.

Package Sidebar

Install

npm i bsv-wallet

Homepage

mybanka.eu

Weekly Downloads

574

Version

2.4.3

License

ISC

Unpacked Size

13.6 MB

Total Files

139

Last publish

Collaborators

  • kysan727
  • hatredb