@yaswap/yacoin-js-wallet-provider
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@yaswap/bitcoin-js-wallet-provider

Build Status Coverage Status Standard Code Style MIT License @yaswap/bitcoin-ledger-provider Gitter Telegram Greenkeeper badge

⚠️ This project is under heavy development. Expect bugs & breaking changes.

Query different blockchains with account management using a single and simple interface.

Installation

npm i @yaswap/bitcoin-js-wallet-provider

or

<script src="https://cdn.jsdelivr.net/npm/@yaswap/bitcoin-ledger-provider@0.2.3/dist/bitcoin-ledger-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@yaswap/bitcoin-ledger-provider@0.2.3/dist/bitcoin-ledger-provider.min.js.map -->
<!-- available as window.BitcoinLedgerProvider -->

Usage

import { BitcoinJsWalletProvider } from '@yaswap/bitcoin-js-wallet-provider'
import { BitcoinNetworks } from '@yaswap/bitcoin-network'
import { generateMnemonic } from 'bip39'

const jsWallet = new BitcoinJsWalletProvider(
  bitcoinNetworks[config.bitcoin.network],
  config.bitcoin.rpc.host,
  config.bitcoin.rpc.username,
  config.bitcoin.rpc.password,
  generateMnemonic(256),
  'bech32'
)

await jsWallet.getAddresses(0, 1)

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.30latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.30
1.0.20
1.0.00

Package Sidebar

Install

npm i @yaswap/yacoin-js-wallet-provider

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

32.8 kB

Total Files

8

Last publish

Collaborators

  • yaswap