4.0.0 • Published 2 years ago

@yac-swap/yacoin-esplora-swap-find-provider v4.0.0

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

@yac-swap/bitcoin-esplora-swap-find-provider

Build Status Coverage Status Standard Code Style MIT License @yac-swap/bitcoin-esplora-swap-find-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 @yac-swap/bitcoin-esplora-swap-find-provider

or

<script src="https://cdn.jsdelivr.net/npm/@yac-swap/bitcoin-esplora-swap-find-provider@0.2.3/dist/bitcoin-esplora-swap-find-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@yac-swap/bitcoin-esplora-swap-find-provider@0.2.3/dist/bitcoin-esplora-swap-find-provider.min.js.map -->
<!-- available as window.BitcoinEsploraSwapFindProvider -->

Usage

import { BitcoinEsploraSwapFindProvider } from '@yac-swap/bitcoin-esplora-swap-find-provider'

const apiProvider = new BitcoinEsploraSwapFindProvider('https://blockstream.info/testnet/api')

await apiProvider.getBlockByNumber(1)

License

MIT