Skip to content

@liquality.bitcoin.BitcoinEsploraBaseProvider

Krasimir Raykov edited this page Mar 30, 2022 · 4 revisions

Class: BitcoinEsploraBaseProvider

@liquality/bitcoin.BitcoinEsploraBaseProvider

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BitcoinEsploraBaseProvider(options)

Parameters

Name Type
options EsploraApiProviderOptions

Overrides

BitcoinBaseChainProvider.constructor

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:13

Properties

_options

Protected _options: EsploraApiProviderOptions

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:11


httpClient

httpClient: HttpClient

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:10

Methods

formatTransaction

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

Parameters

Name Type
tx Transaction
currentHeight number

Returns

Promise<Transaction<Transaction>>

Overrides

BitcoinBaseChainProvider.formatTransaction

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:23


getAddressTransactionCounts

getAddressTransactionCounts(_addresses): Promise<any>

Parameters

Name Type
_addresses AddressType[]

Returns

Promise<any>

Overrides

BitcoinBaseChainProvider.getAddressTransactionCounts

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:60


getFeePerByte

getFeePerByte(numberOfBlocks?): Promise<number>

Parameters

Name Type
numberOfBlocks number

Returns

Promise<number>

Overrides

BitcoinBaseChainProvider.getFeePerByte

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:39


getMinRelayFee

getMinRelayFee(): Promise<number>

Returns

Promise<number>

Overrides

BitcoinBaseChainProvider.getMinRelayFee

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:72


getRawTransactionByHash

getRawTransactionByHash(transactionHash): Promise<string>

Parameters

Name Type
transactionHash string

Returns

Promise<string>

Overrides

BitcoinBaseChainProvider.getRawTransactionByHash

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:31


getTransactionHex

getTransactionHex(transactionHash): Promise<string>

Parameters

Name Type
transactionHash string

Returns

Promise<string>

Overrides

BitcoinBaseChainProvider.getTransactionHex

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:35


getUnspentTransactions

getUnspentTransactions(_addresses): Promise<UTXO[]>

Parameters

Name Type
_addresses AddressType[]

Returns

Promise<UTXO[]>

Overrides

BitcoinBaseChainProvider.getUnspentTransactions

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraBaseProvider.ts:53

Clone this wiki locally