0.6.2 • Published 4 years ago

@wagerr-wdk/litecoin-js-wallet-provider v0.6.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@wagerr-wdk/litecoin-js-wallet-provider

Build Status Coverage Status Standard Code Style MIT License @wagerr-wdk/litecoin-ledger-provider Gitter Telegram Greenkeeper badge

:warning: This project is under heavy development. Expect bugs & breaking changes.

:pencil: 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)

License

MIT