-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.evm ledger.<internal>.EvmBaseWalletProvider
@liquality/evm-ledger..EvmBaseWalletProvider
Name | Type |
---|---|
Provider |
Provider |
S |
extends Signer = Signer
|
-
Wallet
<Provider
,S
>↳
EvmBaseWalletProvider
- canUpdateFee
- exportPrivateKey
- getAddress
- getAddresses
- getBalance
- getChainProvider
- getConnectedNetwork
- getSigner
- getUnusedAddress
- getUsedAddresses
- isWalletAvailable
- sendBatchTransaction
- sendSweepTransaction
- sendTransaction
- setChainProvider
- setSigner
- signMessage
- updateTransactionFee
• new EvmBaseWalletProvider<Provider
, S
>(chainProvider?
)
Name | Type |
---|---|
Provider |
Provider |
S |
extends Signer <S > = Signer
|
Name | Type |
---|---|
chainProvider? |
Chain <Provider , Network > |
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:7
• Protected
chainProvider: Chain
<Provider
, Network
>
client/dist/lib/Wallet.d.ts:4
• Protected
signer: S
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:6
▸ Abstract
canUpdateFee(): boolean
boolean
client/dist/lib/Wallet.d.ts:22
▸ 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
Promise
<string
>
client/dist/lib/Wallet.d.ts:20
▸ Abstract
getAddress(): Promise
<AddressType
>
Promise
<AddressType
>
client/dist/lib/Wallet.d.ts:10
▸ Abstract
getAddresses(start?
, numAddresses?
, change?
): Promise
<Address
[]>
Get addresses/accounts of the user.
Name | Type |
---|---|
start? |
number |
numAddresses? |
number |
change? |
boolean |
Promise
<Address
[]>
client/dist/lib/Wallet.d.ts:13
▸ getBalance(assets
): Promise
<BigNumber
[]>
Name | Type |
---|---|
assets |
Asset [] |
Promise
<BigNumber
[]>
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:15
▸ getChainProvider(): Chain
<Provider
, Network
>
client/dist/lib/Wallet.d.ts:7
▸ getConnectedNetwork(): Promise
<Network
>
Retrieve the network connected to by the wallet
Promise
<Network
>
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:16
▸ getSigner(): S
S
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:8
▸ Abstract
getUnusedAddress(change?
, numAddressPerCall?
): Promise
<Address
>
Get unused address/account of the user.
Name | Type |
---|---|
change? |
boolean |
numAddressPerCall? |
number |
Promise
<Address
>
client/dist/lib/Wallet.d.ts:11
▸ Abstract
getUsedAddresses(numAddressPerCall?
): Promise
<Address
[]>
Get used addresses/accounts of the user.
Name | Type |
---|---|
numAddressPerCall? |
number |
Promise
<Address
[]>
client/dist/lib/Wallet.d.ts:12
▸ Abstract
isWalletAvailable(): Promise
<boolean
>
Retrieve the availability status of the wallet
Promise
<boolean
>
client/dist/lib/Wallet.d.ts:21
▸ sendBatchTransaction(txRequests
): Promise
<Transaction
<TransactionResponse
>[]>
Create, sign & broad a transaction with multiple outputs.
Name | Type |
---|---|
txRequests |
EthereumTransactionRequest [] |
Promise
<Transaction
<TransactionResponse
>[]>
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
>>
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
>>
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:11
▸ setChainProvider(chainProvider
): void
Name | Type |
---|---|
chainProvider |
Chain <Provider , Network > |
void
client/dist/lib/Wallet.d.ts:6
▸ setSigner(signer
): void
Name | Type |
---|---|
signer |
S |
void
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:9
▸ signMessage(message
, _from
): Promise
<string
>
Sign a message.
Name | Type |
---|---|
message |
string |
_from |
AddressType |
Promise
<string
>
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
>>
evm/dist/lib/wallet/EvmBaseWalletProvider.d.ts:14