Skip to content

@liquality.evm ledger.EvmLedgerProvider

Krasimir Raykov edited this page Mar 29, 2022 · 4 revisions

Class: EvmLedgerProvider

@liquality/evm-ledger.EvmLedgerProvider

Hierarchy

  • EvmBaseWalletProvider<StaticJsonRpcProvider, EvmLedgerSigner>

    EvmLedgerProvider

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EvmLedgerProvider(walletOptions, chainProvider?)

Parameters

Name Type
walletOptions EvmLedgerCreateOptions
chainProvider? default<StaticJsonRpcProvider>

Overrides

EvmBaseWalletProvider<StaticJsonRpcProvider, EvmLedgerSigner&gt;.constructor

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:18

Properties

chainProvider

Protected chainProvider: default<StaticJsonRpcProvider>

Inherited from

EvmBaseWalletProvider.chainProvider

Defined in

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


signer

Protected signer: EvmLedgerSigner

Inherited from

EvmBaseWalletProvider.signer

Defined in

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

Methods

canUpdateFee

canUpdateFee(): boolean

Returns

boolean

Overrides

EvmBaseWalletProvider.canUpdateFee

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:68


exportPrivateKey

exportPrivateKey(): Promise<string>

Returns

Promise<string>

Overrides

EvmBaseWalletProvider.exportPrivateKey

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:56


getAddress

getAddress(): Promise<Address>

Returns

Promise<Address>

Overrides

EvmBaseWalletProvider.getAddress

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:31


getAddresses

getAddresses(): Promise<Address[]>

Returns

Promise<Address[]>

Overrides

EvmBaseWalletProvider.getAddresses

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:44


getBalance

getBalance(assets): Promise<BigNumber[]>

Parameters

Name Type
assets Asset[]

Returns

Promise<BigNumber[]>

Inherited from

EvmBaseWalletProvider.getBalance

Defined in

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


getChainProvider

getChainProvider(): default<StaticJsonRpcProvider>

Returns

default<StaticJsonRpcProvider>

Inherited from

EvmBaseWalletProvider.getChainProvider

Defined in

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


getConnectedNetwork

getConnectedNetwork(): Promise<Network>

Returns

Promise<Network>

Overrides

EvmBaseWalletProvider.getConnectedNetwork

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:64


getSigner

getSigner(): EvmLedgerSigner

Returns

EvmLedgerSigner

Inherited from

EvmBaseWalletProvider.getSigner

Defined in

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


getUnusedAddress

getUnusedAddress(): Promise<Address>

Returns

Promise<Address>

Overrides

EvmBaseWalletProvider.getUnusedAddress

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:36


getUsedAddresses

getUsedAddresses(): Promise<Address[]>

Returns

Promise<Address[]>

Overrides

EvmBaseWalletProvider.getUsedAddresses

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:40


isWalletAvailable

isWalletAvailable(): Promise<boolean>

Returns

Promise<boolean>

Overrides

EvmBaseWalletProvider.isWalletAvailable

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:60


sendBatchTransaction

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

Parameters

Name Type
txRequests EthereumTransactionRequest[]

Returns

Promise<Transaction<TransactionResponse>[]>

Inherited from

EvmBaseWalletProvider.sendBatchTransaction

Defined in

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


sendSweepTransaction

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

Parameters

Name Type
address AddressType
asset Asset
fee? FeeType

Returns

Promise<Transaction<any>>

Inherited from

EvmBaseWalletProvider.sendSweepTransaction

Defined in

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


sendTransaction

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

Parameters

Name Type
txRequest EthereumTransactionRequest

Returns

Promise<Transaction<TransactionResponse>>

Inherited from

EvmBaseWalletProvider.sendTransaction

Defined in

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


setChainProvider

setChainProvider(chainProvider): void

Parameters

Name Type
chainProvider default<StaticJsonRpcProvider>

Returns

void

Inherited from

EvmBaseWalletProvider.setChainProvider

Defined in

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


setSigner

setSigner(signer): void

Parameters

Name Type
signer EvmLedgerSigner

Returns

void

Inherited from

EvmBaseWalletProvider.setSigner

Defined in

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


signMessage

signMessage(message, _from): Promise<string>

Parameters

Name Type
message string
_from AddressType

Returns

Promise<string>

Inherited from

EvmBaseWalletProvider.signMessage

Defined in

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


updateTransactionFee

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

Parameters

Name Type
tx string | Transaction<TransactionResponse>
newFee FeeType

Returns

Promise<Transaction<TransactionResponse>>

Inherited from

EvmBaseWalletProvider.updateTransactionFee

Defined in

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

Clone this wiki locally