@wagerr-wdk/wagerr-esplora-api-provider
v1.12.1
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
11
Readme
@liquality/bitcoin-esplora-api-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 @liquality/bitcoin-esplora-api-provider
or
<script src="https://cdn.jsdelivr.net/npm/@liquality/[email protected]/dist/bitcoin-esplora-api-provider.min.js"></script>
<!-- sourceMap at https://cdn.jsdelivr.net/npm/@liquality/[email protected]/dist/bitcoin-esplora-api-provider.min.js.map -->
<!-- available as window.BitcoinEsploraApiProvider -->
Usage
import { BitcoinEsploraApiProvider } from '@liquality/bitcoin-esplora-api-provider'
const apiProvider = new BitcoinEsploraApiProvider('https://blockstream.info/testnet/api')
await apiProvider.getBlockByNumber(1)