-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.evm ledger.EvmLedgerProvider
@liquality/evm-ledger.EvmLedgerProvider
-
EvmBaseWalletProvider
<StaticJsonRpcProvider
,EvmLedgerSigner
>↳
EvmLedgerProvider
- canUpdateFee
- exportPrivateKey
- getAddress
- getAddresses
- getBalance
- getChainProvider
- getConnectedNetwork
- getSigner
- getUnusedAddress
- getUsedAddresses
- isWalletAvailable
- sendBatchTransaction
- sendSweepTransaction
- sendTransaction
- setChainProvider
- setSigner
- signMessage
- updateTransactionFee
• new EvmLedgerProvider(walletOptions
, chainProvider?
)
Name | Type |
---|---|
walletOptions |
EvmLedgerCreateOptions |
chainProvider? |
Chain <StaticJsonRpcProvider , Network > |
EvmBaseWalletProvider.constructor
evm-ledger/lib/EvmLedgerProvider.ts:18
• Protected
chainProvider: Chain
<StaticJsonRpcProvider
, Network
>
EvmBaseWalletProvider.chainProvider
client/dist/lib/Wallet.d.ts:4
• Protected
signer: EvmLedgerSigner
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:6
▸ canUpdateFee(): boolean
boolean
EvmBaseWalletProvider.canUpdateFee
evm-ledger/lib/EvmLedgerProvider.ts:68
▸ 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
>
EvmBaseWalletProvider.exportPrivateKey
evm-ledger/lib/EvmLedgerProvider.ts:56
▸ getAddress(): Promise
<Address
>
Promise
<Address
>
EvmBaseWalletProvider.getAddress
evm-ledger/lib/EvmLedgerProvider.ts:31
▸ getAddresses(): Promise
<Address
[]>
Get addresses/accounts of the user.
Promise
<Address
[]>
EvmBaseWalletProvider.getAddresses
evm-ledger/lib/EvmLedgerProvider.ts:44
▸ getBalance(assets
): Promise
<BigNumber
[]>
Name | Type |
---|---|
assets |
Asset [] |
Promise
<BigNumber
[]>
EvmBaseWalletProvider.getBalance
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:15
▸ getChainProvider(): Chain
<StaticJsonRpcProvider
, Network
>
Chain
<StaticJsonRpcProvider
, Network
>
EvmBaseWalletProvider.getChainProvider
client/dist/lib/Wallet.d.ts:7
▸ getConnectedNetwork(): Promise
<Network
>
Retrieve the network connected to by the wallet
Promise
<Network
>
EvmBaseWalletProvider.getConnectedNetwork
evm-ledger/lib/EvmLedgerProvider.ts:64
▸ getSigner(): EvmLedgerSigner
EvmBaseWalletProvider.getSigner
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:8
▸ getUnusedAddress(): Promise
<Address
>
Get unused address/account of the user.
Promise
<Address
>
EvmBaseWalletProvider.getUnusedAddress
evm-ledger/lib/EvmLedgerProvider.ts:36
▸ getUsedAddresses(): Promise
<Address
[]>
Get used addresses/accounts of the user.
Promise
<Address
[]>
EvmBaseWalletProvider.getUsedAddresses
evm-ledger/lib/EvmLedgerProvider.ts:40
▸ isWalletAvailable(): Promise
<boolean
>
Retrieve the availability status of the wallet
Promise
<boolean
>
EvmBaseWalletProvider.isWalletAvailable
evm-ledger/lib/EvmLedgerProvider.ts:60
▸ sendBatchTransaction(txRequests
): Promise
<Transaction
<TransactionResponse
>[]>
Create, sign & broad a transaction with multiple outputs.
Name | Type |
---|---|
txRequests |
EthereumTransactionRequest [] |
Promise
<Transaction
<TransactionResponse
>[]>
EvmBaseWalletProvider.sendBatchTransaction
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:12
▸ sendSweepTransaction(address
, asset
, fee?
): Promise
<Transaction
<any
>>
Create, sign & broadcast a sweep transaction.
Name | Type |
---|---|
address |
AddressType |
asset |
Asset |
fee? |
FeeType |
Promise
<Transaction
<any
>>
EvmBaseWalletProvider.sendSweepTransaction
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:13
▸ sendTransaction(txRequest
): Promise
<Transaction
<TransactionResponse
>>
Create, sign & broadcast a transaction.
Name | Type |
---|---|
txRequest |
EthereumTransactionRequest |
Promise
<Transaction
<TransactionResponse
>>
EvmBaseWalletProvider.sendTransaction
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:11
▸ setChainProvider(chainProvider
): void
Name | Type |
---|---|
chainProvider |
Chain <StaticJsonRpcProvider , Network > |
void
EvmBaseWalletProvider.setChainProvider
client/dist/lib/Wallet.d.ts:6
▸ setSigner(signer
): void
Name | Type |
---|---|
signer |
EvmLedgerSigner |
void
EvmBaseWalletProvider.setSigner
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:9
▸ signMessage(message
, _from
): Promise
<string
>
Sign a message.
Name | Type |
---|---|
message |
string |
_from |
AddressType |
Promise
<string
>
EvmBaseWalletProvider.signMessage
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:10
▸ updateTransactionFee(tx
, newFee
): Promise
<Transaction
<TransactionResponse
>>
Update the fee of a transaction.
Name | Type |
---|---|
tx |
string | Transaction <TransactionResponse > |
newFee |
FeeType |
Promise
<Transaction
<TransactionResponse
>>
EvmBaseWalletProvider.updateTransactionFee
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:14