-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.bitcoin.BitcoinEsploraApiProvider
@liquality/bitcoin.BitcoinEsploraApiProvider
-
Chain
<BitcoinEsploraBaseProvider
>↳
BitcoinEsploraApiProvider
- getBalance
- getBlockByHash
- getBlockByNumber
- getBlockHeight
- getFeeProvider
- getFees
- getNetwork
- getProvider
- getTransactionByHash
- sendRawTransaction
- sendRpcRequest
- setFeeProvider
- setNetwork
- setProvider
• new BitcoinEsploraApiProvider(options
, feeProvider
, feeOptions?
)
Name | Type |
---|---|
options |
EsploraApiProviderOptions |
feeProvider |
Fee |
feeOptions? |
FeeOptions |
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:12
• Protected
feeProvider: Fee
client/dist/lib/Chain.d.ts:11
• Protected
network: Network
client/dist/lib/Chain.d.ts:12
• Protected
provider: BitcoinEsploraBaseProvider
client/dist/lib/Chain.d.ts:13
▸ getBalance(_addresses
): Promise
<BigNumber
[]>
Name | Type |
---|---|
_addresses |
AddressType [] |
Promise
<BigNumber
[]>
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:63
▸ getBlockByHash(blockHash
): Promise
<Block
<any
, any
>>
Name | Type |
---|---|
blockHash |
string |
Promise
<Block
<any
, any
>>
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:18
▸ getBlockByNumber(blockNumber?
): Promise
<Block
<any
, any
>>
Name | Type |
---|---|
blockNumber? |
number |
Promise
<Block
<any
, any
>>
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:47
▸ getBlockHeight(): Promise
<number
>
Promise
<number
>
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:54
▸ getFeeProvider(): Promise
<Fee
>
Gets the fee provider
Promise
<Fee
>
client/dist/lib/Chain.d.ts:38
▸ getFees(): Promise
<FeeDetails
>
Promise
<FeeDetails
>
The fee details - FeeDetails
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:70
▸ getNetwork(): Network
Gets the connected network
client/dist/lib/Chain.d.ts:22
▸ getProvider(): BitcoinEsploraBaseProvider
Gets the chain specific provider
client/dist/lib/Chain.d.ts:26
▸ getTransactionByHash(txHash
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
txHash |
string |
Promise
<Transaction
<any
>>
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:59
▸ sendRawTransaction(rawTransaction
): Promise
<string
>
Name | Type |
---|---|
rawTransaction |
string |
Promise
<string
>
the transaction hash
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:88
▸ sendRpcRequest(_method
, _params
): Promise
<any
>
Name | Type |
---|---|
_method |
string |
_params |
any [] |
Promise
<any
>
bitcoin/lib/chain/esplora/BitcoinEsploraApiProvider.ts:92
▸ setFeeProvider(feeProvider
): Promise
<void
>
Sets the fee provider
Name | Type |
---|---|
feeProvider |
Fee |
Promise
<void
>
client/dist/lib/Chain.d.ts:34
▸ setNetwork(network
): void
Sets the network
Name | Type |
---|---|
network |
Network |
void
client/dist/lib/Chain.d.ts:18
▸ setProvider(provider
): Promise
<void
>
Sets the chain specific provider
Name | Type |
---|---|
provider |
BitcoinEsploraBaseProvider |
Promise
<void
>
client/dist/lib/Chain.d.ts:30