-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.bitcoin.BitcoinJsonRpcProvider
@liquality/bitcoin.BitcoinJsonRpcProvider
-
Chain
<BitcoinJsonRpcBaseProvider
>↳
BitcoinJsonRpcProvider
- getBalance
- getBlockByHash
- getBlockByNumber
- getBlockHeight
- getFeeProvider
- getFees
- getNetwork
- getProvider
- getTransactionByHash
- sendRawTransaction
- sendRpcRequest
- setFeeProvider
- setNetwork
- setProvider
• new BitcoinJsonRpcProvider(options
, feeProvider?
, feeOptions?
)
Name | Type |
---|---|
options |
ProviderOptions |
feeProvider? |
Fee |
feeOptions? |
FeeOptions |
bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcProvider.ts:14
• Protected
feeProvider: Fee
client/dist/lib/Chain.d.ts:11
• jsonRpc: JsonRpcProvider
bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcProvider.ts:11
• Protected
network: Network
client/dist/lib/Chain.d.ts:12
• Protected
provider: BitcoinJsonRpcBaseProvider
client/dist/lib/Chain.d.ts:13
▸ getBalance(_addresses
, _assets
): Promise
<BigNumber
[]>
Name | Type |
---|---|
_addresses |
AddressType [] |
_assets |
Asset [] |
Promise
<BigNumber
[]>
bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcProvider.ts:107
▸ getBlockByHash(blockHash
, includeTx?
): Promise
<Block
<any
, any
>>
Name | Type | Default value |
---|---|---|
blockHash |
string |
undefined |
includeTx |
boolean |
false |
Promise
<Block
<any
, any
>>
bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcProvider.ts:20
▸ getBlockByNumber(blockNumber?
, includeTx?
): Promise
<Block
<any
, any
>>
Name | Type |
---|---|
blockNumber? |
number |
includeTx? |
boolean |
Promise
<Block
<any
, any
>>
bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcProvider.ts:66
▸ getBlockHeight(): Promise
<number
>
Promise
<number
>
bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcProvider.ts:88
▸ 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/jsonRpc/BitcoinJsonRpcProvider.ts:114
▸ getNetwork(): Network
Gets the connected network
client/dist/lib/Chain.d.ts:22
▸ getProvider(): BitcoinJsonRpcBaseProvider
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/jsonRpc/BitcoinJsonRpcProvider.ts:92
▸ sendRawTransaction(rawTransaction
): Promise
<string
>
Name | Type |
---|---|
rawTransaction |
string |
Promise
<string
>
the transaction hash
bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcProvider.ts:132
▸ sendRpcRequest(method
, params
): Promise
<any
>
Name | Type |
---|---|
method |
string |
params |
any [] |
Promise
<any
>
bitcoin/lib/chain/jsonRpc/BitcoinJsonRpcProvider.ts:136
▸ 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 |
BitcoinJsonRpcBaseProvider |
Promise
<void
>
client/dist/lib/Chain.d.ts:30