Skip to content

@liquality.bitcoin.BitcoinBaseChainProvider

Krasimir Raykov edited this page Mar 29, 2022 · 3 revisions

Class: BitcoinBaseChainProvider

@liquality/bitcoin.BitcoinBaseChainProvider

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new BitcoinBaseChainProvider()

Methods

formatTransaction

Abstract formatTransaction(tx, currentHeight): Promise<Transaction<any>>

Parameters

Name Type
tx any
currentHeight number

Returns

Promise<Transaction<any>>

Defined in

bitcoin/lib/chain/BitcoinBaseChainProvider.ts:5


getAddressTransactionCounts

Abstract getAddressTransactionCounts(_addresses): Promise<AddressTxCounts>

Parameters

Name Type
_addresses AddressType[]

Returns

Promise<AddressTxCounts>

Defined in

bitcoin/lib/chain/BitcoinBaseChainProvider.ts:15


getFeePerByte

Abstract getFeePerByte(numberOfBlocks?): Promise<number>

Parameters

Name Type
numberOfBlocks? number

Returns

Promise<number>

Defined in

bitcoin/lib/chain/BitcoinBaseChainProvider.ts:11


getMinRelayFee

Abstract getMinRelayFee(): Promise<number>

Returns

Promise<number>

Defined in

bitcoin/lib/chain/BitcoinBaseChainProvider.ts:17


getRawTransactionByHash

Abstract getRawTransactionByHash(transactionHash): Promise<string>

Parameters

Name Type
transactionHash string

Returns

Promise<string>

Defined in

bitcoin/lib/chain/BitcoinBaseChainProvider.ts:7


getTransactionHex

Abstract getTransactionHex(transactionHash): Promise<string>

Parameters

Name Type
transactionHash string

Returns

Promise<string>

Defined in

bitcoin/lib/chain/BitcoinBaseChainProvider.ts:9


getUnspentTransactions

Abstract getUnspentTransactions(addresses): Promise<UTXO[]>

Parameters

Name Type
addresses AddressType[]

Returns

Promise<UTXO[]>

Defined in

bitcoin/lib/chain/BitcoinBaseChainProvider.ts:13

Clone this wiki locally