Skip to content

@liquality.bitcoin.BitcoinEsploraApiProvider

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

Class: BitcoinEsploraApiProvider

@liquality/bitcoin.BitcoinEsploraApiProvider

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BitcoinEsploraApiProvider(options, feeProvider, feeOptions?)

Parameters

Name Type
options EsploraApiProviderOptions
feeProvider Fee
feeOptions? FeeOptions

Overrides

Chain.constructor

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:12

Properties

feeProvider

Protected feeProvider: Fee

Inherited from

Chain.feeProvider

Defined in

client/dist/lib/Chain.d.ts:11


network

Protected network: Network

Inherited from

Chain.network

Defined in

client/dist/lib/Chain.d.ts:12


provider

Protected provider: BitcoinEsploraBaseProvider

Inherited from

Chain.provider

Defined in

client/dist/lib/Chain.d.ts:13

Methods

getBalance

getBalance(_addresses): Promise<BigNumber[]>

Parameters

Name Type
_addresses AddressType[]

Returns

Promise<BigNumber[]>

Overrides

Chain.getBalance

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:63


getBlockByHash

getBlockByHash(blockHash): Promise<Block<any, any>>

Parameters

Name Type
blockHash string

Returns

Promise<Block<any, any>>

Overrides

Chain.getBlockByHash

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:18


getBlockByNumber

getBlockByNumber(blockNumber?): Promise<Block<any, any>>

Parameters

Name Type
blockNumber? number

Returns

Promise<Block<any, any>>

Overrides

Chain.getBlockByNumber

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:47


getBlockHeight

getBlockHeight(): Promise<number>

Returns

Promise<number>

Overrides

Chain.getBlockHeight

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:54


getFeeProvider

getFeeProvider(): Promise<Fee>

Gets the fee provider

Returns

Promise<Fee>

Inherited from

Chain.getFeeProvider

Defined in

client/dist/lib/Chain.d.ts:38


getFees

getFees(): Promise<FeeDetails>

Returns

Promise<FeeDetails>

The fee details - FeeDetails

Overrides

Chain.getFees

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:70


getNetwork

getNetwork(): Network

Gets the connected network

Returns

Network

Inherited from

Chain.getNetwork

Defined in

client/dist/lib/Chain.d.ts:22


getProvider

getProvider(): BitcoinEsploraBaseProvider

Gets the chain specific provider

Returns

BitcoinEsploraBaseProvider

Inherited from

Chain.getProvider

Defined in

client/dist/lib/Chain.d.ts:26


getTransactionByHash

getTransactionByHash(txHash): Promise<Transaction<any>>

Parameters

Name Type
txHash string

Returns

Promise<Transaction<any>>

Overrides

Chain.getTransactionByHash

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:59


sendRawTransaction

sendRawTransaction(rawTransaction): Promise<string>

Parameters

Name Type
rawTransaction string

Returns

Promise<string>

the transaction hash

Overrides

Chain.sendRawTransaction

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:88


sendRpcRequest

sendRpcRequest(_method, _params): Promise<any>

Parameters

Name Type
_method string
_params any[]

Returns

Promise<any>

Overrides

Chain.sendRpcRequest

Defined in

bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:92


setFeeProvider

setFeeProvider(feeProvider): Promise<void>

Sets the fee provider

Parameters

Name Type
feeProvider Fee

Returns

Promise<void>

Inherited from

Chain.setFeeProvider

Defined in

client/dist/lib/Chain.d.ts:34


setNetwork

setNetwork(network): void

Sets the network

Parameters

Name Type
network Network

Returns

void

Inherited from

Chain.setNetwork

Defined in

client/dist/lib/Chain.d.ts:18


setProvider

setProvider(provider): Promise<void>

Sets the chain specific provider

Parameters

Name Type
provider BitcoinEsploraBaseProvider

Returns

Promise<void>

Inherited from

Chain.setProvider

Defined in

client/dist/lib/Chain.d.ts:30

Clone this wiki locally