1.0.10 • Published 5 months ago

@xchainjs/xchain-bitcoincash v1.0.10

Weekly downloads
181
License
MIT
Repository
github
Last release
5 months 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)

1.0.10

5 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.2

10 months ago

1.0.5

9 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.17.17

1 year ago

0.17.16

1 year ago

0.17.15

1 year ago

0.17.14

1 year ago

0.17.13

1 year ago

0.17.12

1 year ago

0.17.11

1 year ago

0.17.10

1 year ago

0.17.9

1 year ago

0.17.8

1 year ago

0.17.7

2 years ago

0.17.2

2 years ago

0.17.3

2 years ago

0.17.4

2 years ago

0.17.5

2 years ago

0.17.0

2 years ago

0.16.3

2 years ago

0.16.4

2 years ago

0.16.1

2 years ago

0.16.2

2 years ago

0.15.8

2 years ago

0.15.9

2 years ago

0.16.0

2 years ago

0.15.10

2 years ago

0.15.11

2 years ago

0.15.4

3 years ago

0.15.5

3 years ago

0.15.6

3 years ago

0.15.7

2 years ago

0.13.0

3 years ago

0.14.0

3 years ago

0.13.1

3 years ago

0.15.0

3 years ago

0.13.2

3 years ago

0.15.1

3 years ago

0.15.3

3 years ago

0.13.0-alpha.2

3 years ago

0.13.0-alpha.1

3 years ago

0.12.0

4 years ago

0.12.1

3 years ago

0.11.10

4 years ago

0.11.9

4 years ago

0.11.8

4 years ago

0.11.7

4 years ago

0.11.6

4 years ago

0.11.2

4 years ago

0.11.3

4 years ago

0.11.4

4 years ago

0.11.5

4 years ago

0.10.0

4 years ago

0.10.1

4 years ago

0.9.0

4 years ago

0.10.2

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago