-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.terra.TerraWalletProvider
@liquality/terra.TerraWalletProvider
-
default
<LCDClient
,MnemonicKey
>↳
TerraWalletProvider
- canUpdateFee
- exportPrivateKey
- getAddress
- getAddresses
- getBalance
- getChainProvider
- getConnectedNetwork
- getSigner
- getUnusedAddress
- getUsedAddresses
- isWalletAvailable
- sendBatchTransaction
- sendSweepTransaction
- sendTransaction
- setChainProvider
- signMessage
- updateTransactionFee
• new TerraWalletProvider(chainProvider
, options
)
Name | Type |
---|---|
chainProvider |
TerraChainProvider |
options |
TerraWalletProviderOptions |
Wallet<LCDClient, MnemonicKey>.constructor
terra/lib/wallet/TerraWalletProvider.ts:32
• Protected
chainProvider: default
<LCDClient
>
Wallet.chainProvider
client/dist/lib/Wallet.d.ts:4
• Protected
signer: MnemonicKey
terra/lib/wallet/TerraWalletProvider.ts:24
▸ canUpdateFee(): boolean
boolean
Wallet.canUpdateFee
terra/lib/wallet/TerraWalletProvider.ts:131
▸ exportPrivateKey(): Promise
<string
>
Promise
<string
>
Wallet.exportPrivateKey
terra/lib/wallet/TerraWalletProvider.ts:45
▸ getAddress(): Promise
<AddressType
>
Promise
<AddressType
>
Wallet.getAddress
terra/lib/wallet/TerraWalletProvider.ts:54
▸ getAddresses(): Promise
<Address
[]>
Promise
<Address
[]>
Wallet.getAddresses
terra/lib/wallet/TerraWalletProvider.ts:58
▸ getBalance(assets
): Promise
<BigNumber
[]>
Name | Type |
---|---|
assets |
Asset [] |
Promise
<BigNumber
[]>
Wallet.getBalance
terra/lib/wallet/TerraWalletProvider.ts:126
▸ getChainProvider(): default
<LCDClient
>
default
<LCDClient
>
Wallet.getChainProvider
client/dist/lib/Wallet.d.ts:7
▸ getConnectedNetwork(): Promise
<TerraNetwork
>
Promise
<TerraNetwork
>
Wallet.getConnectedNetwork
terra/lib/wallet/TerraWalletProvider.ts:89
▸ getSigner(): MnemonicKey
MnemonicKey
Wallet.getSigner
terra/lib/wallet/TerraWalletProvider.ts:113
▸ getUnusedAddress(): Promise
<Address
>
Promise
<Address
>
Wallet.getUnusedAddress
terra/lib/wallet/TerraWalletProvider.ts:79
▸ getUsedAddresses(): Promise
<Address
[]>
Promise
<Address
[]>
Wallet.getUsedAddresses
terra/lib/wallet/TerraWalletProvider.ts:75
▸ isWalletAvailable(): Promise
<boolean
>
Promise
<boolean
>
Wallet.isWalletAvailable
terra/lib/wallet/TerraWalletProvider.ts:49
▸ sendBatchTransaction(_txRequests
): Promise
<Transaction
<any
>[]>
Name | Type |
---|---|
_txRequests |
TransactionRequest [] |
Promise
<Transaction
<any
>[]>
Wallet.sendBatchTransaction
terra/lib/wallet/TerraWalletProvider.ts:118
▸ sendSweepTransaction(address
, asset
): Promise
<Transaction
<TerraTxInfo
>>
Name | Type |
---|---|
address |
string | Address
|
asset |
Asset |
Promise
<Transaction
<TerraTxInfo
>>
Wallet.sendSweepTransaction
terra/lib/wallet/TerraWalletProvider.ts:107
▸ sendTransaction(txRequest
): Promise
<Transaction
<TerraTxInfo
>>
Name | Type |
---|---|
txRequest |
TerraTxRequest |
Promise
<Transaction
<TerraTxInfo
>>
Wallet.sendTransaction
terra/lib/wallet/TerraWalletProvider.ts:93
▸ setChainProvider(chainProvider
): void
Name | Type |
---|---|
chainProvider |
default <LCDClient > |
void
Wallet.setChainProvider
client/dist/lib/Wallet.d.ts:6
▸ signMessage(message
): Promise
<string
>
Name | Type |
---|---|
message |
string |
Promise
<string
>
Wallet.signMessage
terra/lib/wallet/TerraWalletProvider.ts:84
▸ updateTransactionFee(_tx
, _newFee
): Promise
<Transaction
<any
>>
Name | Type |
---|---|
_tx |
string | Transaction <any > |
_newFee |
FeeType |
Promise
<Transaction
<any
>>
Wallet.updateTransactionFee