@wagerr-wdk/litecoin-js-wallet-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 @wagerr-wdk/litecoin-js-wallet-provider
or
<script src="https://cdn.jsdelivr.net/npm/@wagerr-wdk/litecoin-ledger-provider@0.2.3/dist/litecoin-ledger-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@wagerr-wdk/litecoin-ledger-provider@0.2.3/dist/litecoin-ledger-provider.min.js.map -->
<!-- available as window.LitecoinLedgerProvider -->
Usage
import LitecoinJsWalletProvider from '@wagerr-wdk/litecoin-js-wallet-provider'
import LitecoinNetworks from '@wagerr-wdk/litecoin-network'
import { generateMnemonic } from 'bip39'
const jsWallet = new LitecoinJsWalletProvider(LitecoinNetworks[config.litecoin.network], config.litecoin.rpc.host, config.litecoin.rpc.username, config.litecoin.rpc.password, generateMnemonic(256), 'bech32')
await jsWallet.getAddresses(0, 1)