-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.evm.EvmBaseWalletProvider
@liquality/evm.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/lib/wallet/EvmBaseWalletProvider.ts:13
• Protected
chainProvider: Chain
<Provider
, Network
>
client/dist/lib/Wallet.d.ts:4
• Protected
signer: S
evm/lib/wallet/EvmBaseWalletProvider.ts:11
▸ 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/lib/wallet/EvmBaseWalletProvider.ts:109
▸ 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/lib/wallet/EvmBaseWalletProvider.ts:114
▸ getSigner(): S
S
evm/lib/wallet/EvmBaseWalletProvider.ts:17
▸ 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/lib/wallet/EvmBaseWalletProvider.ts:54
▸ 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/lib/wallet/EvmBaseWalletProvider.ts:63
▸ sendTransaction(txRequest
): Promise
<Transaction
<TransactionResponse
>>
Create, sign & broadcast a transaction.
Name | Type |
---|---|
txRequest |
EthereumTransactionRequest |
Promise
<Transaction
<TransactionResponse
>>
evm/lib/wallet/EvmBaseWalletProvider.ts:30
▸ 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/lib/wallet/EvmBaseWalletProvider.ts:21
▸ signMessage(message
, _from
): Promise
<string
>
Sign a message.
Name | Type |
---|---|
message |
string |
_from |
AddressType |
Promise
<string
>
evm/lib/wallet/EvmBaseWalletProvider.ts:25
▸ updateTransactionFee(tx
, newFee
): Promise
<Transaction
<TransactionResponse
>>
Update the fee of a transaction.
Name | Type |
---|---|
tx |
string | Transaction <TransactionResponse > |
newFee |
FeeType |
Promise
<Transaction
<TransactionResponse
>>