Skip to content

@liquality.types.WalletProvider

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

Interface: WalletProvider

@liquality/types.WalletProvider

Table of contents

Properties

Methods

Properties

canUpdateFee

Optional canUpdateFee: boolean | () => boolean

Defined in

types/lib/Wallet.ts:34

Methods

exportPrivateKey

Optional exportPrivateKey(): Promise<string>

Returns

Promise<string>

Defined in

types/lib/Wallet.ts:36


getAddresses

getAddresses(startingIndex?, numAddresses?, change?): Promise<Address[]>

Parameters

Name Type
startingIndex? number
numAddresses? number
change? boolean

Returns

Promise<Address[]>

Defined in

types/lib/Wallet.ts:14


getConnectedNetwork

getConnectedNetwork(): Promise<any>

Returns

Promise<any>

Defined in

types/lib/Wallet.ts:30


getUnusedAddress

getUnusedAddress(change?, numAddressPerCall?): Promise<Address>

Parameters

Name Type
change? boolean
numAddressPerCall? number

Returns

Promise<Address>

Defined in

types/lib/Wallet.ts:26


getUsedAddresses

getUsedAddresses(numAddressPerCall?): Promise<Address[]>

Parameters

Name Type
numAddressPerCall? number

Returns

Promise<Address[]>

Defined in

types/lib/Wallet.ts:16


isWalletAvailable

isWalletAvailable(): Promise<boolean>

Returns

Promise<boolean>

Defined in

types/lib/Wallet.ts:32


sendBatchTransaction

sendBatchTransaction(transactions): Promise<Transaction<any>[]>

Parameters

Name Type
transactions TransactionRequest[]

Returns

Promise<Transaction<any>[]>

Defined in

types/lib/Wallet.ts:24


sendSweepTransaction

sendSweepTransaction(address, asset, fee?): Promise<Transaction<any>>

Parameters

Name Type
address AddressType
asset Asset
fee? FeeType

Returns

Promise<Transaction<any>>

Defined in

types/lib/Wallet.ts:20


sendTransaction

sendTransaction(options): Promise<Transaction<any>>

Parameters

Name Type
options TransactionRequest

Returns

Promise<Transaction<any>>

Defined in

types/lib/Wallet.ts:18


signMessage

signMessage(message, from): Promise<string>

Parameters

Name Type
message string
from string

Returns

Promise<string>

Defined in

types/lib/Wallet.ts:28


updateTransactionFee

updateTransactionFee(tx, newFee): Promise<Transaction<any>>

Parameters

Name Type
tx string | Transaction<any>
newFee FeeType

Returns

Promise<Transaction<any>>

Defined in

types/lib/Wallet.ts:22

Clone this wiki locally