@yac-swap/bitcoin-wallet-api-provider
⚠️ This project is under heavy development. Expect bugs & breaking changes.
📝 Introductory Blog Post: The Missing Tool to Cross-Chain Development
Query different blockchains with account management using a single and simple interface.
Installation
npm i @yac-swap/bitcoin-wallet-api-provider
or
<script src="https://cdn.jsdelivr.net/npm/@yac-swap/bitcoin-wallet-api-provider@0.2.3/dist/bitcoin-wallet-api-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@yac-swap/bitcoin-wallet-api-provider@0.2.3/dist/bitcoin-wallet-api-provider.min.js.map -->
<!-- available as window.BitcoinWalletApiProvider -->
Usage
import { BitcoinWalletApiProvider } from '@yac-swap/bitcoin-wallet-api-provider'
import { BitcoinNetworks } from '@yac-swap/bitcoin-network'
const walletProvider = new BitcoinWalletApiProvider(bitcoinNetworks[config.bitcoin.network], 'bech32')
await walletProvider.getAddresses(0, 1)