WalletStore
Constructor Summary
Public Constructor | ||
public |
constructor(): Promise<WalletStore> |
Method Summary
Public Methods | ||
public |
close(): * |
|
public |
|
|
public |
async getDefault(key: Uint8Array | string): PromiseWallet> |
|
public |
async getMultiSig(address: Address, key: Uint8Array | string): PromiseMultiSigWallet> |
|
public |
async hasDefault(key: *): Promise<boolean> |
|
public |
|
|
public |
async listMultiSig(): Promise<Array<Address>> |
|
public |
|
|
public |
async putMultiSig(wallet: MultiSigWallet, key: Uint8Array | string, unlockKey: Uint8Array | string): Promise |
|
public |
|
|
public |
removeMultiSig(address: Address): Promise |
|
public |
setDefault(address: Address): Promise |
Public Constructors
Public Methods
public async get(address: Address, key: Uint8Array | string): PromiseWallet> source
Params:
Name | Type | Attribute | Description |
address | Address | ||
key | Uint8Array | string |
|
public async getDefault(key: Uint8Array | string): PromiseWallet> source
Params:
Name | Type | Attribute | Description |
key | Uint8Array | string |
|
public async getMultiSig(address: Address, key: Uint8Array | string): PromiseMultiSigWallet> source
Params:
Name | Type | Attribute | Description |
address | Address | ||
key | Uint8Array | string |
|
public async hasDefault(key: *): Promise<boolean> source
Params:
Name | Type | Attribute | Description |
key | * |
Return:
Promise<boolean> |
public async put(wallet: Wallet, key: Uint8Array | string, unlockKey: Uint8Array | string): Promise source
Params:
Name | Type | Attribute | Description |
wallet | Wallet | ||
key | Uint8Array | string |
|
|
unlockKey | Uint8Array | string |
|
Return:
Promise |
public async putMultiSig(wallet: MultiSigWallet, key: Uint8Array | string, unlockKey: Uint8Array | string): Promise source
Params:
Name | Type | Attribute | Description |
wallet | MultiSigWallet | ||
key | Uint8Array | string |
|
|
unlockKey | Uint8Array | string |
|
Return:
Promise |
public async remove(address: Address): Promise source
Params:
Name | Type | Attribute | Description |
address | Address |
Return:
Promise |