How to use @liquality/bitcoin-esplora-api-provider - 1 common examples

To help you get started, we’ve selected a few @liquality/bitcoin-esplora-api-provider examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liquality / liquality-swap / src / services / chainClient.js View on Github external
function getBitcoinDataProvider (btcConfig) {
  if (btcConfig.rpc) {
    return new BitcoinRpcProvider(btcConfig.rpc.url, btcConfig.rpc.username, btcConfig.rpc.password, btcConfig.feeNumberOfBlocks)
  } else if (btcConfig.api) {
    return new BitcoinEsploraApiProvider(btcConfig.api.url, btcConfig.feeNumberOfBlocks)
  }
}

@liquality/bitcoin-esplora-api-provider

[![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

MIT
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis

Popular @liquality/bitcoin-esplora-api-provider functions

Similar packages