You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,13 +34,20 @@ When initialising a client, to test, you can use Aeternity's Test Nework URLs:
34
34
You can use this URL with any releasee on [npmjs](https://www.npmjs.com/package/@aeternity/aepp-sdk). It offers the last stable version of [Node](https://github.com/aeternity/aeternity), used by all of of Aeternity's Dev Tools.
35
35
36
36
## Guides
37
-
### Browser
38
-
-[**SDK usage** Understanding low vs high level](guides/low-vs-high-usage.md)
39
-
-[Import SDK bundle with **`<script>`** tag](guides/import-script-tag.md)
**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
48
48
**Category**: async
49
+
**Throws**:
49
50
50
-
| Param | Description |
51
-
| --- | --- |
52
-
| nameId | domain hash |
53
-
| target | new target |
54
-
| options ||
51
+
- Invalid pointer array error
55
52
53
+
54
+
| Param | Type | Default | Description |
55
+
| --- | --- | --- | --- |
56
+
| name |`String`|| AENS name |
57
+
| pointers |`Array.<String>`|| Array of name pointers. Can be oracle|account|contract|channel public key |
58
+
|[options]|`Object`| <code>{}</code> ||
59
+
|[options.extendPointers]|`Boolean`| <code>false</code> | extendPointers Get the pointers from the node and merge with provided one. Pointers with the same type will be overwrited |
60
+
|[options.onAccount]|`String`\|`Object`|| onAccount Make operation on specific account from sdk(you pass publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount) |
|[options.nameTtl]|`Number`\|`String`\|`BigNumber`| <code>50000</code> | nameTtl Name ttl represented in number of blocks (Max value is 50000 blocks) |
65
+
|[options.clientTtl]|`Number`\|`String`\|`BigNumber`| <code>84600</code> | clientTtl a suggestion as to how long any clients should cache this information |
|[options.onAccount]|`String`\|`Object`|| onAccount Make operation on specific account from sdk(you pass publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount) |
|[options.nameFee]|`Number`\|`String`|| Name Fee |
146
+
| salt |`Number`|| Salt from pre-claim, or 0 if it's a bid |
147
+
|[options]|`Object`| <code>{}</code> | options |
148
+
|[options.onAccount]|`String`\|`Object`|| onAccount Make operation on specific account from sdk(you pass publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount) |
@@ -105,22 +167,51 @@ Preclaim a name. Sends a hash of the name and a random salt to the node
105
167
**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
106
168
**Category**: async
107
169
108
-
| Param | Type | Default |
109
-
| --- | --- | --- |
110
-
| name |`string`||
111
-
|[options]|`Record`| <code>{}</code> |
170
+
| Param | Type | Default | Description |
171
+
| --- | --- | --- | --- |
172
+
| name |`String`|||
173
+
|[options]|`Object`| <code>{}</code> ||
174
+
|[options.onAccount]|`String`\|`Object`|| onAccount Make operation on specific account from sdk(you pass publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount) |
**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
198
+
**Returns**: `Promise.<Object>` - Transaction result
119
199
**Category**: async
120
200
121
201
| Param | Type | Default | Description |
122
202
| --- | --- | --- | --- |
123
203
| name |`String`|| Domain name |
124
-
| nameFee |`String`\|`Number`|| Name fee amount |
125
-
|[options]|`Record`| <code>{}</code> ||
204
+
| nameFee |`String`\|`Number`|| Name fee (bid fee) |
205
+
|[options]|`Object`| <code>{}</code> ||
206
+
|[options.onAccount]|`String`\|`Object`|| onAccount Make operation on specific account from sdk(you pass publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount) |
This guide describes the basic operations on [AENS name](https://github.com/aeternity/protocol/blob/master/AENS.md) using [Aeternity JS SDK](https://github.com/aeternity/aepp-sdk-js)
4
+
5
+
## Main Flow
6
+
7
+
- Pre-claim name (broadcast `pre-claim` transaction with random `salt`)
0 commit comments