⚠️ This project is under heavy development. Expect bugs & breaking changes.
Query different blockchains with account management using a single and simple interface.
npm i @liquality/bitcoin-js-wallet-provider
or
<script src="https://cdn.jsdelivr.net/npm/@liquality/[email protected]/dist/bitcoin-ledger-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@liquality/[email protected]/dist/bitcoin-ledger-provider.min.js.map -->
<!-- available as window.BitcoinLedgerProvider -->
import { BitcoinJsWalletProvider } from '@liquality/bitcoin-js-wallet-provider'
import { BitcoinNetworks } from '@liquality/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)