-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.bitcoin.<internal>.IBitcoinWallet
@liquality/bitcoin..IBitcoinWallet
Name | Type |
---|---|
T |
T |
S |
any |
-
Wallet
<T
,S
>↳
IBitcoinWallet
- canUpdateFee
- exportPrivateKey
- getAddress
- getAddresses
- getBalance
- getChainProvider
- getConnectedNetwork
- getSigner
- getUnusedAddress
- getUsedAddresses
- getWalletAddress
- isWalletAvailable
- sendBatchTransaction
- sendSweepTransaction
- sendTransaction
- setChainProvider
- signMessage
- signPSBT
- updateTransactionFee
• Protected
chainProvider: Chain
<T
, Network
>
client/dist/lib/Wallet.d.ts:4
▸ Abstract
canUpdateFee(): boolean
boolean
client/dist/lib/Wallet.d.ts:22
▸ Abstract
exportPrivateKey(): Promise
<string
>
Exports the private key for the account for BTC, https://en.bitcoin.it/wiki/Wallet_import_format for ETH, the privateKey for NEAR, the secretKey
Promise
<string
>
client/dist/lib/Wallet.d.ts:20
▸ Abstract
getAddress(): Promise
<AddressType
>
Promise
<AddressType
>
client/dist/lib/Wallet.d.ts:10
▸ Abstract
getAddresses(start?
, numAddresses?
, change?
): Promise
<Address
[]>
Get addresses/accounts of the user.
Name | Type |
---|---|
start? |
number |
numAddresses? |
number |
change? |
boolean |
Promise
<Address
[]>
client/dist/lib/Wallet.d.ts:13
▸ Abstract
getBalance(assets
): Promise
<BigNumber
[]>
Name | Type |
---|---|
assets |
Asset [] |
Promise
<BigNumber
[]>
client/dist/lib/Wallet.d.ts:19
▸ getChainProvider(): Chain
<T
, Network
>
bitcoin/lib/wallet/IBitcoinWallet.ts:6
▸ Abstract
getConnectedNetwork(): Promise
<Network
>
Retrieve the network connected to by the wallet
Promise
<Network
>
client/dist/lib/Wallet.d.ts:8
▸ Abstract
getSigner(): S
S
client/dist/lib/Wallet.d.ts:9
▸ Abstract
getUnusedAddress(change?
, numAddressPerCall?
): Promise
<Address
>
Get unused address/account of the user.
Name | Type |
---|---|
change? |
boolean |
numAddressPerCall? |
number |
Promise
<Address
>
client/dist/lib/Wallet.d.ts:11
▸ Abstract
getUsedAddresses(numAddressPerCall?
): Promise
<Address
[]>
Get used addresses/accounts of the user.
Name | Type |
---|---|
numAddressPerCall? |
number |
Promise
<Address
[]>
client/dist/lib/Wallet.d.ts:12
▸ getWalletAddress(address
): Promise
<Address
>
Name | Type |
---|---|
address |
string |
Promise
<Address
>
bitcoin/lib/wallet/IBitcoinWallet.ts:12
▸ Abstract
isWalletAvailable(): Promise
<boolean
>
Retrieve the availability status of the wallet
Promise
<boolean
>
client/dist/lib/Wallet.d.ts:21
▸ Abstract
sendBatchTransaction(txRequests
): Promise
<Transaction
<any
>[]>
Create, sign & broad a transaction with multiple outputs.
Name | Type |
---|---|
txRequests |
TransactionRequest [] |
Promise
<Transaction
<any
>[]>
client/dist/lib/Wallet.d.ts:16
▸ Abstract
sendSweepTransaction(address
, asset
, fee?
): Promise
<Transaction
<any
>>
Create, sign & broadcast a sweep transaction.
Name | Type |
---|---|
address |
AddressType |
asset |
Asset |
fee? |
FeeType |
Promise
<Transaction
<any
>>
client/dist/lib/Wallet.d.ts:17
▸ sendTransaction(txRequest
): Promise
<Transaction
<any
>>
Create, sign & broadcast a transaction.
Name | Type |
---|---|
txRequest |
TransactionRequest |
Promise
<Transaction
<any
>>
bitcoin/lib/wallet/IBitcoinWallet.ts:8
▸ setChainProvider(chainProvider
): void
Name | Type |
---|---|
chainProvider |
Chain <T , Network > |
void
client/dist/lib/Wallet.d.ts:6
▸ Abstract
signMessage(message
, from
): Promise
<string
>
Sign a message.
Name | Type |
---|---|
message |
string |
from |
AddressType |
Promise
<string
>
client/dist/lib/Wallet.d.ts:14
▸ signPSBT(data
, inputs
): Promise
<string
>
Name | Type |
---|---|
data |
string |
inputs |
PsbtInputTarget [] |
Promise
<string
>
bitcoin/lib/wallet/IBitcoinWallet.ts:14
▸ updateTransactionFee(tx
, newFee
): Promise
<Transaction
<any
>>
Update the fee of a transaction.
Name | Type |
---|---|
tx |
string | Transaction <any > |
newFee |
FeeType |
Promise
<Transaction
<any
>>