⚠️ This project is under heavy development. Expect bugs & breaking changes.
Query different blockchains with account management using a single and simple interface.
npm i @yaswap/bitcoin-ledger-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 -->
import { BitcoinLedgerProvider } from '@yaswap/bitcoin-ledger-provider'
import { BitcoinNetworks } from '@yaswap/bitcoin-network'
const ledger = new BitcoinLedgerProvider({
network: BitcoinNetworks.bitcoin_testnet
})
await ledger.getAddresses(0, 1)