How it works
Third-party library
It communicates with Bitcoin by using bitcoinjs-lib
Client URL
- Mainnet:
https://api.blockchair.com/bitcoin - Testnet:
https://api.blockchair.com/bitcoin/testnet
Explorer URL
- Mainnet:
https://blockstream.info - Testnet:
https://blockstream.info/testnet
Dependencies
Address Generation
It supports the BIP44 path derivations.
By default, the index is 0. - 84'/0'/0'/0/0 for mainnet, 84'/1'/0'/0/0 for testnet
Blockchain-specific functions
Additional functions to get fee information
getFeesWithRatesgetFeesWithMemogetFeeRates
type FeeRate = number
type FeeRates = Record<FeeOptionKey, FeeRate>
type FeesWithRates = { rates: FeeRates; fees: Fees }
getFeesWithRates(memo?: string): Promise<FeesWithRates>
getFeesWithMemo(memo: string): Promise<Fees>
getFeeRates(): Promise<FeeRates>
Scans UTXOs on the address
scanUTXOs(): Promise<void>