Skip to content

@liquality.evm ledger.EvmLedgerProvider

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

Class: EvmLedgerProvider

@liquality/evm-ledger.EvmLedgerProvider

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EvmLedgerProvider(walletOptions, chainProvider?)

Parameters

Name Type
walletOptions EvmLedgerCreateOptions
chainProvider? Chain<StaticJsonRpcProvider, Network>

Overrides

EvmBaseWalletProvider.constructor

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:18

Properties

chainProvider

Protected chainProvider: Chain<StaticJsonRpcProvider, Network>

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>

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>

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[]>

Get addresses/accounts of the user.

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(): Chain<StaticJsonRpcProvider, Network>

Returns

Chain<StaticJsonRpcProvider, Network>

Inherited from

EvmBaseWalletProvider.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

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>

Get unused address/account of the user.

Returns

Promise<Address>

Overrides

EvmBaseWalletProvider.getUnusedAddress

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:36


getUsedAddresses

getUsedAddresses(): Promise<Address[]>

Get used addresses/accounts of the user.

Returns

Promise<Address[]>

Overrides

EvmBaseWalletProvider.getUsedAddresses

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:40


isWalletAvailable

isWalletAvailable(): Promise<boolean>

Retrieve the availability status of the wallet

Returns

Promise<boolean>

Overrides

EvmBaseWalletProvider.isWalletAvailable

Defined in

evm-ledger/lib/EvmLedgerProvider.ts:60


sendBatchTransaction

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

Create, sign & broad a transaction with multiple outputs.

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>>

Create, sign & broadcast a sweep transaction.

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>>

Create, sign & broadcast a transaction.

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 Chain<StaticJsonRpcProvider, Network>

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>

Sign a message.

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>>

Update the fee of a transaction.

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