0.17.13 • Published 10 days ago

@xchainjs/xchain-bitcoincash v0.17.13

Weekly downloads
181
License
MIT
Repository
github
Last release
10 days ago

@xchainjs/xchain-bitcoincash

Modules

Installation

yarn add @xchainjs/xchain-bitcoincash

Following peer dependencies have to be installed into your project. These are not included in @xchainjs/xchain-bitcoincash.

yarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios @psf/bitcoincashjs-lib bchaddrjs

Documentation

xchain bitcoincash

How xchain-bitcoincash works\ How to use xchain-bitcoincash

Service Providers

This package uses the following service providers:

FunctionServiceNotes
BalancesHaskoinhttps://api.haskoin.com/#/Address/getBalance
Transaction historyHaskoinhttps://api.haskoin.com/#/Address/getAddressTxsFull
Transaction details by hashHaskoinhttps://api.haskoin.com/#/Transaction/getTransaction
Transaction feesBitgohttps://app.bitgo.com/docs/#operation/v2.tx.getfeeestimate
Transaction broadcastBitcoin Cash Nodehttps://developer.bitcoin.org/reference/rpc/sendrawtransaction.html
ExplorerBlockchain.comhttps://www.blockchain.com/explorer?view=bch

Haskoin API rate limits: No

Bitgo API rate limits: https://app.bitgo.com/docs/#section/Rate-Limiting (10 requests/second)

Setting Headers for Nine Realms endpoints

If you plan on using the publically accessible endpoints provided by Nine Realms(listed below), ensure that you add a valid 'x-client-id' to all requests

Example

import cosmosclient from '@cosmos-client/core'
import axios from 'axios'
import { register9Rheader } from '@xchainjs/xchain-util'

register9Rheader(axios)
register9Rheader(cosmosclient.config.globalAxios)

For a complete example please see this test

UtxoOnlineDataProviders

default providers

Creating a no-arg BCH Client will default to the following settings:

defaultBCHParams: UtxoClientParams = {
  network: Network.Mainnet,
  phrase: '',
  explorerProviders: explorerProviders,
  dataProviders: [HaskoinDataProviders],
  rootDerivationPaths: {
    [Network.Mainnet]: `m/44'/145'/0'/0/`,
    [Network.Testnet]: `m/44'/1'/0'/0/`,
    [Network.Stagenet]: `m/44'/145'/0'/0/`,
  },
  feeBounds: {
    lower: LOWER_FEE_BOUND,
    upper: UPPER_FEE_BOUND,
  },
}

Note: Haskoin is the default online data provider (to fetch realtime utxos, balances, etc)

0.17.13

10 days ago

0.17.12

17 days ago

0.17.11

23 days ago

0.17.10

2 months ago

0.17.9

2 months ago

0.17.8

4 months ago

0.17.7

5 months ago

0.17.2

6 months ago

0.17.3

6 months ago

0.17.4

6 months ago

0.17.5

6 months ago

0.17.0

7 months ago

0.16.3

8 months ago

0.16.4

7 months ago

0.16.1

12 months ago

0.16.2

11 months ago

0.15.8

1 year ago

0.15.9

1 year ago

0.16.0

1 year ago

0.15.10

1 year ago

0.15.11

1 year ago

0.15.4

1 year ago

0.15.5

1 year ago

0.15.6

1 year ago

0.15.7

1 year ago

0.13.0

2 years ago

0.14.0

2 years ago

0.13.1

2 years ago

0.15.0

2 years ago

0.13.2

2 years ago

0.15.1

2 years ago

0.15.3

2 years ago

0.13.0-alpha.2

2 years ago

0.13.0-alpha.1

2 years ago

0.12.0

2 years ago

0.12.1

2 years ago

0.11.10

2 years ago

0.11.9

3 years ago

0.11.8

3 years ago

0.11.7

3 years ago

0.11.6

3 years ago

0.11.2

3 years ago

0.11.3

3 years ago

0.11.4

3 years ago

0.11.5

3 years ago

0.10.0

3 years ago

0.10.1

3 years ago

0.9.0

3 years ago

0.10.2

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago