@aeternity/aepp-sdk
Version:
SDK for the æternity blockchain
51 lines (37 loc) • 1.5 kB
Markdown
<a id="module_@aeternity/aepp-sdk/es/account/selector"></a>
## /aepp-sdk/es/account/selector
Accounts Selector module
This is the complement to [/aepp-sdk/es/accounts](#module_@aeternity/aepp-sdk/es/accounts).
**Example**
```js
import Selector from '@aeternity/aepp-sdk/es/account/selector'
```
* [/aepp-sdk/es/account/selector](#module_/aepp-sdk/es/account/selector)
* [Selector([options])](#exp_module_/aepp-sdk/es/account/selector--Selector) ⇒ `Account` ⏏
* _instance_
* [.selectAccount(address)](#exp_module_/aepp-sdk/es/account/selector--selectAccount) ⏏
<a id="exp_module_@aeternity/aepp-sdk/es/account/selector--Selector"></a>
### Selector([options]) ⇒ `Account` ⏏
Selector Stamp
**Kind**: Exported function
**Returns**: `Account` - Account instance
**rtype**: `Stamp`
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| [options] | `Object` | <code>{}</code> | Initializer object |
**Example**
```js
Selector()
```
<a id="exp_module_@aeternity/aepp-sdk/es/account/selector--selectAccount"></a>
### .selectAccount(address) ⏏
Select specific account
**Kind**: instance method of [`/aepp-sdk/es/account/selector`](#module_/aepp-sdk/es/account/selector)
**rtype**: `(address: String) => Void`
| Param | Type | Description |
| --- | --- | --- |
| address | `String` | Address of account to select |
**Example**
```js
selectAccount('ak_xxxxxxxx')
```