Skip to content

@liquality.bitcoin.BitcoinJsonRpcBaseProvider

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

Class: BitcoinJsonRpcBaseProvider

@liquality/bitcoin.BitcoinJsonRpcBaseProvider

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BitcoinJsonRpcBaseProvider(options)

Parameters

Name Type
options ProviderOptions

Overrides

BitcoinBaseChainProvider.constructor

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:12

Properties

_options

Protected _options: ProviderOptions

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:10


jsonRpc

jsonRpc: JsonRpcProvider

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:9

Methods

formatTransaction

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

Parameters

Name Type
tx any
currentHeight number

Returns

Promise<Transaction<any>>

Overrides

BitcoinBaseChainProvider.formatTransaction

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:22


getAddressTransactionCounts

getAddressTransactionCounts(_addresses): Promise<AddressTxCounts>

Parameters

Name Type
_addresses AddressType[]

Returns

Promise<AddressTxCounts>

Overrides

BitcoinBaseChainProvider.getAddressTransactionCounts

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:58


getFeePerByte

getFeePerByte(numberOfBlocks?): Promise<number>

Parameters

Name Type
numberOfBlocks? number

Returns

Promise<number>

Overrides

BitcoinBaseChainProvider.getFeePerByte

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:38


getMinRelayFee

getMinRelayFee(): Promise<number>

Returns

Promise<number>

Overrides

BitcoinBaseChainProvider.getMinRelayFee

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:69


getRawTransactionByHash

getRawTransactionByHash(transactionHash): Promise<string>

Parameters

Name Type
transactionHash string

Returns

Promise<string>

Overrides

BitcoinBaseChainProvider.getRawTransactionByHash

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:30


getTransactionHex

getTransactionHex(transactionHash): Promise<string>

Parameters

Name Type
transactionHash string

Returns

Promise<string>

Overrides

BitcoinBaseChainProvider.getTransactionHex

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:34


getUnspentTransactions

getUnspentTransactions(_addresses): Promise<UTXO[]>

Parameters

Name Type
_addresses AddressType[]

Returns

Promise<UTXO[]>

Overrides

BitcoinBaseChainProvider.getUnspentTransactions

Defined in

bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcBaseProvider.ts:52

Clone this wiki locally