-
Notifications
You must be signed in to change notification settings - Fork 69
@liquality.near.<internal>.Wallet
@liquality/near..Wallet
Name |
---|
T |
S |
-
Wallet
- canUpdateFee
- exportPrivateKey
- getAddress
- getAddresses
- getBalance
- getChainProvider
- getConnectedNetwork
- getSigner
- getUnusedAddress
- getUsedAddresses
- isWalletAvailable
- sendBatchTransaction
- sendSweepTransaction
- sendTransaction
- setChainProvider
- signMessage
- updateTransactionFee
• new Wallet<T
, S
>(chainProvider?
)
Name |
---|
T |
S |
Name | Type |
---|---|
chainProvider? |
Chain <T , Network > |
client/dist/lib/Wallet.d.ts:5
• Protected
chainProvider: Chain
<T
, Network
>
client/dist/lib/Wallet.d.ts:4
▸ Abstract
canUpdateFee(): boolean
boolean
WalletProvider.canUpdateFee
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
>
WalletProvider.exportPrivateKey
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
▸ Abstract
getBalance(assets
): Promise
<BigNumber
[]>
Name | Type |
---|---|
assets |
Asset [] |
Promise
<BigNumber
[]>
client/dist/lib/Wallet.d.ts:19
▸ getChainProvider(): Chain
<T
, Network
>
client/dist/lib/Wallet.d.ts:7
▸ Abstract
getConnectedNetwork(): Promise
<Network
>
Retrieve the network connected to by the wallet
Promise
<Network
>
WalletProvider.getConnectedNetwork
client/dist/lib/Wallet.d.ts:8
▸ Abstract
getSigner(): S
S
client/dist/lib/Wallet.d.ts:9
▸ Abstract
getUnusedAddress(change?
, numAddressPerCall?
): Promise
<Address
>
Get unused address/account of the user.
Name | Type |
---|---|
change? |
boolean |
numAddressPerCall? |
number |
Promise
<Address
>
WalletProvider.getUnusedAddress
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
[]>
WalletProvider.getUsedAddresses
client/dist/lib/Wallet.d.ts:12
▸ Abstract
isWalletAvailable(): Promise
<boolean
>
Retrieve the availability status of the wallet
Promise
<boolean
>
WalletProvider.isWalletAvailable
client/dist/lib/Wallet.d.ts:21
▸ Abstract
sendBatchTransaction(txRequests
): Promise
<Transaction
<any
>[]>
Create, sign & broad a transaction with multiple outputs.
Name | Type |
---|---|
txRequests |
TransactionRequest [] |
Promise
<Transaction
<any
>[]>
WalletProvider.sendBatchTransaction
client/dist/lib/Wallet.d.ts:16
▸ Abstract
sendSweepTransaction(address
, asset
, fee?
): Promise
<Transaction
<any
>>
Create, sign & broadcast a sweep transaction.
Name | Type |
---|---|
address |
AddressType |
asset |
Asset |
fee? |
FeeType |
Promise
<Transaction
<any
>>
WalletProvider.sendSweepTransaction
client/dist/lib/Wallet.d.ts:17
▸ Abstract
sendTransaction(txRequest
): Promise
<Transaction
<any
>>
Create, sign & broadcast a transaction.
Name | Type |
---|---|
txRequest |
TransactionRequest |
Promise
<Transaction
<any
>>
WalletProvider.sendTransaction
client/dist/lib/Wallet.d.ts:15
▸ setChainProvider(chainProvider
): void
Name | Type |
---|---|
chainProvider |
Chain <T , Network > |
void
client/dist/lib/Wallet.d.ts:6
▸ Abstract
signMessage(message
, from
): Promise
<string
>
Sign a message.
Name | Type |
---|---|
message |
string |
from |
AddressType |
Promise
<string
>
client/dist/lib/Wallet.d.ts:14
▸ Abstract
updateTransactionFee(tx
, newFee
): Promise
<Transaction
<any
>>
Update the fee of a transaction.
Name | Type |
---|---|
tx |
string | Transaction <any > |
newFee |
FeeType |
Promise
<Transaction
<any
>>
WalletProvider.updateTransactionFee
client/dist/lib/Wallet.d.ts:18