4.0.0 • Published 3 years ago
@yac-swap/ethereum-ledger-provider v4.0.0
@yac-swap/ethereum-ledger-provider
: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 @yac-swap/ethereum-ledger-provider
or
<script src="https://cdn.jsdelivr.net/npm/@yac-swap/ethereum-ledger-provider@0.2.3/dist/ethereum-ledger-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@yac-swap/ethereum-ledger-provider@0.2.3/dist/ethereum-ledger-provider.min.js.map -->
<!-- available as window.EthereumLedgerProvider -->
Usage
import { EthereumLedgerProvider } from '@yac-swap/ethereum-ledger-provider'
import { EthereumNetworks } from '@yac-swap/ethereum-network'
const ledger = new EthereumLedgerProvider({
network: EthereumNetworks.rinkeby
})
await ledger.getAddresses(0, 1)