Skip to content

@liquality.bitcoin ledger.<internal>.BitcoinBaseChainProvider

Krasimir Raykov edited this page Mar 30, 2022 · 1 revision

Class: BitcoinBaseChainProvider

@liquality/bitcoin-ledger..BitcoinBaseChainProvider

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/dist/lib/chain/BitcoinBaseChainProvider.d.ts:4


getAddressTransactionCounts

Abstract getAddressTransactionCounts(_addresses): Promise<AddressTxCounts>

Parameters

Name Type
_addresses AddressType[]

Returns

Promise<AddressTxCounts>

Defined in

bitcoin/dist/lib/chain/BitcoinBaseChainProvider.d.ts:9


getFeePerByte

Abstract getFeePerByte(numberOfBlocks?): Promise<number>

Parameters

Name Type
numberOfBlocks? number

Returns

Promise<number>

Defined in

bitcoin/dist/lib/chain/BitcoinBaseChainProvider.d.ts:7


getMinRelayFee

Abstract getMinRelayFee(): Promise<number>

Returns

Promise<number>

Defined in

bitcoin/dist/lib/chain/BitcoinBaseChainProvider.d.ts:10


getRawTransactionByHash

Abstract getRawTransactionByHash(transactionHash): Promise<string>

Parameters

Name Type
transactionHash string

Returns

Promise<string>

Defined in

bitcoin/dist/lib/chain/BitcoinBaseChainProvider.d.ts:5


getTransactionHex

Abstract getTransactionHex(transactionHash): Promise<string>

Parameters

Name Type
transactionHash string

Returns

Promise<string>

Defined in

bitcoin/dist/lib/chain/BitcoinBaseChainProvider.d.ts:6


getUnspentTransactions

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

Parameters

Name Type
addresses AddressType[]

Returns

Promise<UTXO[]>

Defined in

bitcoin/dist/lib/chain/BitcoinBaseChainProvider.d.ts:8

Clone this wiki locally