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 default
feeOptions? FeeOptions

Overrides

default.constructor

Defined in

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

Properties

feeProvider

Protected feeProvider: default

Inherited from

default.feeProvider

Defined in

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


network

Protected network: Network

Inherited from

default.network

Defined in

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


provider

Protected provider: BitcoinEsploraBaseProvider

Inherited from

default.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

default.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

default.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

default.getBlockByNumber

Defined in

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


getBlockHeight

getBlockHeight(): Promise<number>

Returns

Promise<number>

Overrides

default.getBlockHeight

Defined in

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


getFeeProvider

getFeeProvider(): Promise<default>

Gets the fee provider

Returns

Promise<default>

Inherited from

default.getFeeProvider

Defined in

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


getFees

getFees(): Promise<FeeDetails>

Returns

Promise<FeeDetails>

The fee details - FeeDetails

Overrides

default.getFees

Defined in

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


getNetwork

getNetwork(): Network

Gets the connected network

Returns

Network

Inherited from

default.getNetwork

Defined in

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


getProvider

getProvider(): BitcoinEsploraBaseProvider

Gets the chain specific provider

Returns

BitcoinEsploraBaseProvider

Inherited from

default.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

default.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

default.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

default.sendRpcRequest

Defined in

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


setFeeProvider

setFeeProvider(feeProvider): Promise<void>

Sets the fee provider

Parameters

Name Type
feeProvider default

Returns

Promise<void>

Inherited from

default.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

default.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

default.setProvider

Defined in

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

Clone this wiki locally