@mayaprotocol/xchain-bitcoin
v0.20.6
Published
Custom Bitcoin client and utilities used by XChainJS clients
Downloads
8
Readme
@mayaprotocol/xchain-bitcoin
Modules
client
- Custom client for communicating with Bitcoin using BIP39 bitcoinjs-lib and WIF
Installation
yarn add @mayaprotocol/xchain-bitcoin
Following peer dependencies have to be installed into your project. These are not included in @mayaprotocol/xchain-bitcoin
.
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios bitcoinjs-lib wif
Documentation
xchain bitcoin
How xchain-bitcoin works
How to use xchain-bitcoin
Service Providers
This package uses the following service providers:
| Function | Service | Notes | | --------------------------- | ----------- | -------------------------------------------------------------------------------- | | Balances | Sochain | https://sochain.com/api#get-balance | | Transaction history | Sochain | https://sochain.com/api#get-display-data-address, https://sochain.com/api#get-tx | | Transaction details by hash | Sochain | https://sochain.com/api#get-tx | | Transaction fees | Bitgo | https://app.bitgo.com/docs/#operation/v2.tx.getfeeestimate | | Transaction broadcast | Sochain | https://sochain.com/api#send-transaction | | Explorer | Blockstream | https://blockstream.info |
Sochain API rate limits: https://sochain.com/api#rate-limits (300 requests/minute)
Bitgo API rate limits: https://app.bitgo.com/docs/#section/Rate-Limiting (10 requests/second)