Skip to content

@liquality.evm ledger.<internal>.EvmBaseWalletProvider

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

Class: EvmBaseWalletProvider<Provider, S>

@liquality/evm-ledger..EvmBaseWalletProvider

Type parameters

Name Type
Provider Provider
S extends Signer = Signer

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EvmBaseWalletProvider<Provider, S>(chainProvider?)

Type parameters

Name Type
Provider Provider
S extends Signer<S> = Signer

Parameters

Name Type
chainProvider? Chain<Provider, Network>

Overrides

Wallet.constructor

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:7

Properties

chainProvider

Protected chainProvider: Chain<Provider, Network>

Inherited from

Wallet.chainProvider

Defined in

client/dist/lib/Wallet.d.ts:4


signer

Protected signer: S

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:6

Methods

canUpdateFee

Abstract canUpdateFee(): boolean

Returns

boolean

Inherited from

Wallet.canUpdateFee

Defined in

client/dist/lib/Wallet.d.ts:22


exportPrivateKey

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

Returns

Promise<string>

Inherited from

Wallet.exportPrivateKey

Defined in

client/dist/lib/Wallet.d.ts:20


getAddress

Abstract getAddress(): Promise<AddressType>

Returns

Promise<AddressType>

Inherited from

Wallet.getAddress

Defined in

client/dist/lib/Wallet.d.ts:10


getAddresses

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

Get addresses/accounts of the user.

Parameters

Name Type
start? number
numAddresses? number
change? boolean

Returns

Promise<Address[]>

Inherited from

Wallet.getAddresses

Defined in

client/dist/lib/Wallet.d.ts:13


getBalance

getBalance(assets): Promise<BigNumber[]>

Parameters

Name Type
assets Asset[]

Returns

Promise<BigNumber[]>

Overrides

Wallet.getBalance

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:15


getChainProvider

getChainProvider(): Chain<Provider, Network>

Returns

Chain<Provider, Network>

Inherited from

Wallet.getChainProvider

Defined in

client/dist/lib/Wallet.d.ts:7


getConnectedNetwork

getConnectedNetwork(): Promise<Network>

Retrieve the network connected to by the wallet

Returns

Promise<Network>

Overrides

Wallet.getConnectedNetwork

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:16


getSigner

getSigner(): S

Returns

S

Overrides

Wallet.getSigner

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:8


getUnusedAddress

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

Get unused address/account of the user.

Parameters

Name Type
change? boolean
numAddressPerCall? number

Returns

Promise<Address>

Inherited from

Wallet.getUnusedAddress

Defined in

client/dist/lib/Wallet.d.ts:11


getUsedAddresses

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

Get used addresses/accounts of the user.

Parameters

Name Type
numAddressPerCall? number

Returns

Promise<Address[]>

Inherited from

Wallet.getUsedAddresses

Defined in

client/dist/lib/Wallet.d.ts:12


isWalletAvailable

Abstract isWalletAvailable(): Promise<boolean>

Retrieve the availability status of the wallet

Returns

Promise<boolean>

Inherited from

Wallet.isWalletAvailable

Defined in

client/dist/lib/Wallet.d.ts:21


sendBatchTransaction

sendBatchTransaction(txRequests): Promise<Transaction<TransactionResponse>[]>

Create, sign & broad a transaction with multiple outputs.

Parameters

Name Type
txRequests EthereumTransactionRequest[]

Returns

Promise<Transaction<TransactionResponse>[]>

Overrides

Wallet.sendBatchTransaction

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:12


sendSweepTransaction

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

Create, sign & broadcast a sweep transaction.

Parameters

Name Type
address AddressType
asset Asset
fee? FeeType

Returns

Promise<Transaction<any>>

Overrides

Wallet.sendSweepTransaction

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:13


sendTransaction

sendTransaction(txRequest): Promise<Transaction<TransactionResponse>>

Create, sign & broadcast a transaction.

Parameters

Name Type
txRequest EthereumTransactionRequest

Returns

Promise<Transaction<TransactionResponse>>

Overrides

Wallet.sendTransaction

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:11


setChainProvider

setChainProvider(chainProvider): void

Parameters

Name Type
chainProvider Chain<Provider, Network>

Returns

void

Inherited from

Wallet.setChainProvider

Defined in

client/dist/lib/Wallet.d.ts:6


setSigner

setSigner(signer): void

Parameters

Name Type
signer S

Returns

void

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:9


signMessage

signMessage(message, _from): Promise<string>

Sign a message.

Parameters

Name Type
message string
_from AddressType

Returns

Promise<string>

Overrides

Wallet.signMessage

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:10


updateTransactionFee

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

Update the fee of a transaction.

Parameters

Name Type
tx string | Transaction<TransactionResponse>
newFee FeeType

Returns

Promise<Transaction<TransactionResponse>>

Overrides

Wallet.updateTransactionFee

Defined in

evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:14

Clone this wiki locally