@yaswap/bitcoin-esplora-swap-find-provider
v1.0.0
Published
[![Build Status](https://travis-ci.com/liquality/chainabstractionlayer.svg?branch=master)](https://travis-ci.com/liquality/chainabstractionlayer) [![Coverage Status](https://coveralls.io/repos/github/liquality/chainabstractionlayer/badge.svg?branch=master
Downloads
4
Readme
@yaswap/bitcoin-esplora-swap-find-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 @yaswap/bitcoin-esplora-swap-find-provider
or
<script src="https://cdn.jsdelivr.net/npm/@yaswap/[email protected]/dist/bitcoin-esplora-swap-find-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@yaswap/[email protected]/dist/bitcoin-esplora-swap-find-provider.min.js.map -->
<!-- available as window.BitcoinEsploraSwapFindProvider -->
Usage
import { BitcoinEsploraSwapFindProvider } from '@yaswap/bitcoin-esplora-swap-find-provider'
const apiProvider = new BitcoinEsploraSwapFindProvider('https://blockstream.info/testnet/api')
await apiProvider.getBlockByNumber(1)