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
{{ message }}
This repository was archived by the owner on Sep 6, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,9 @@
22
22
23
23
# About
24
24
25
-
Experimental client library for IOTA Chrysalis network. Implemeted in TypeScript to strongly type the objects sent and received from the API.
25
+
> This library is functionally complete, but it is recommended to use [iota.rs](https://github.com/iotaledger/iota.rs). The rust library will be more heavily maintained and is much more performant.
26
+
27
+
Client library for IOTA Chrysalis network, implemeted in TypeScript to strongly type the objects sent and received from the API.
26
28
27
29
Also includes High Level operations and MQTT support.
@@ -63,10 +63,10 @@ Subscribe to the ed25519 address for output updates.
63
63
64
64
#### Parameters:
65
65
66
-
Name | Type | Description |
67
-
:------ | :------ | :------ |
68
-
`addressEd25519` | *string* | The address to monitor. |
69
-
`callback` | (`topic`: *string*, `data`: [*IOutputResponse*](../interfaces/models_api_ioutputresponse.ioutputresponse.md)) => *void* | The callback which is called when new data arrives. |
66
+
|Name | Type | Description |
67
+
|:------ | :------ | :------ |
68
+
|`addressEd25519`|*string*| The address to monitor. |
69
+
|`callback`| (`topic`: *string*, `data`: [*IOutputResponse*](../interfaces/models_api_ioutputresponse.ioutputresponse.md)) => *void*| The callback which is called when new data arrives. |
70
70
71
71
**Returns:***string*
72
72
@@ -84,10 +84,10 @@ Subscribe to the address for output updates.
84
84
85
85
#### Parameters:
86
86
87
-
Name | Type | Description |
88
-
:------ | :------ | :------ |
89
-
`addressBech32` | *string* | The address to monitor. |
90
-
`callback` | (`topic`: *string*, `data`: [*IOutputResponse*](../interfaces/models_api_ioutputresponse.ioutputresponse.md)) => *void* | The callback which is called when new data arrives. |
87
+
|Name | Type | Description |
88
+
|:------ | :------ | :------ |
89
+
|`addressBech32`|*string*| The address to monitor. |
90
+
|`callback`| (`topic`: *string*, `data`: [*IOutputResponse*](../interfaces/models_api_ioutputresponse.ioutputresponse.md)) => *void*| The callback which is called when new data arrives. |
91
91
92
92
**Returns:***string*
93
93
@@ -105,10 +105,10 @@ Subscribe to get all messages for the specified index in object form.
105
105
106
106
#### Parameters:
107
107
108
-
Name | Type | Description |
109
-
:------ | :------ | :------ |
110
-
`index` | *string*\|*Uint8Array* | The index to monitor. |
111
-
`callback` | (`topic`: *string*, `data`: [*IMessage*](../interfaces/models_imessage.imessage.md), `raw`: *Uint8Array*) => *void* | The callback which is called when new data arrives. |
108
+
|Name | Type | Description |
109
+
|:------ | :------ | :------ |
110
+
|`index`|*string*\|*Uint8Array*| The index to monitor. |
111
+
|`callback`| (`topic`: *string*, `data`: [*IMessage*](../interfaces/models_imessage.imessage.md), `raw`: *Uint8Array*) => *void*| The callback which is called when new data arrives. |
112
112
113
113
**Returns:***string*
114
114
@@ -126,10 +126,10 @@ Subscribe to get all messages for the specified index in binary form.
126
126
127
127
#### Parameters:
128
128
129
-
Name | Type | Description |
130
-
:------ | :------ | :------ |
131
-
`index` | *string*\|*Uint8Array* | The index to monitor. |
132
-
`callback` | (`topic`: *string*, `data`: *Uint8Array*) => *void* | The callback which is called when new data arrives. |
129
+
|Name | Type | Description |
130
+
|:------ | :------ | :------ |
131
+
|`index`|*string*\|*Uint8Array*| The index to monitor. |
132
+
|`callback`| (`topic`: *string*, `data`: *Uint8Array*) => *void*| The callback which is called when new data arrives. |
133
133
134
134
**Returns:***string*
135
135
@@ -147,10 +147,10 @@ Subscribe to metadata updates for a specific message.
147
147
148
148
#### Parameters:
149
149
150
-
Name | Type | Description |
151
-
:------ | :------ | :------ |
152
-
`messageId` | *string* | The message to monitor. |
153
-
`callback` | (`topic`: *string*, `data`: [*IMessageMetadata*](../interfaces/models_imessagemetadata.imessagemetadata.md)) => *void* | The callback which is called when new data arrives. |
150
+
|Name | Type | Description |
151
+
|:------ | :------ | :------ |
152
+
|`messageId`|*string*| The message to monitor. |
153
+
|`callback`| (`topic`: *string*, `data`: [*IMessageMetadata*](../interfaces/models_imessagemetadata.imessagemetadata.md)) => *void*| The callback which is called when new data arrives. |
154
154
155
155
**Returns:***string*
156
156
@@ -168,9 +168,9 @@ Subscribe to get all messages in object form.
168
168
169
169
#### Parameters:
170
170
171
-
Name | Type | Description |
172
-
:------ | :------ | :------ |
173
-
`callback` | (`topic`: *string*, `data`: [*IMessage*](../interfaces/models_imessage.imessage.md), `raw`: *Uint8Array*) => *void* | The callback which is called when new data arrives. |
171
+
|Name | Type | Description |
172
+
|:------ | :------ | :------ |
173
+
|`callback`| (`topic`: *string*, `data`: [*IMessage*](../interfaces/models_imessage.imessage.md), `raw`: *Uint8Array*) => *void*| The callback which is called when new data arrives. |
174
174
175
175
**Returns:***string*
176
176
@@ -188,9 +188,9 @@ Subscribe to get the metadata for all the messages.
188
188
189
189
#### Parameters:
190
190
191
-
Name | Type | Description |
192
-
:------ | :------ | :------ |
193
-
`callback` | (`topic`: *string*, `data`: [*IMessageMetadata*](../interfaces/models_imessagemetadata.imessagemetadata.md)) => *void* | The callback which is called when new data arrives. |
191
+
|Name | Type | Description |
192
+
|:------ | :------ | :------ |
193
+
|`callback`| (`topic`: *string*, `data`: [*IMessageMetadata*](../interfaces/models_imessagemetadata.imessagemetadata.md)) => *void*| The callback which is called when new data arrives. |
194
194
195
195
**Returns:***string*
196
196
@@ -208,9 +208,9 @@ Subscribe to get all messages in binary form.
208
208
209
209
#### Parameters:
210
210
211
-
Name | Type | Description |
212
-
:------ | :------ | :------ |
213
-
`callback` | (`topic`: *string*, `data`: *Uint8Array*) => *void* | The callback which is called when new data arrives. |
211
+
|Name | Type | Description |
212
+
|:------ | :------ | :------ |
213
+
|`callback`| (`topic`: *string*, `data`: *Uint8Array*) => *void*| The callback which is called when new data arrives. |
214
214
215
215
**Returns:***string*
216
216
@@ -228,9 +228,9 @@ Subscribe to the latest confirmed milestone updates.
228
228
229
229
#### Parameters:
230
230
231
-
Name | Type | Description |
232
-
:------ | :------ | :------ |
233
-
`callback` | (`topic`: *string*, `data`: [*IMqttMilestoneResponse*](../interfaces/models_api_imqttmilestoneresponse.imqttmilestoneresponse.md)) => *void* | The callback which is called when new data arrives. |
231
+
|Name | Type | Description |
232
+
|:------ | :------ | :------ |
233
+
|`callback`| (`topic`: *string*, `data`: [*IMqttMilestoneResponse*](../interfaces/models_api_imqttmilestoneresponse.imqttmilestoneresponse.md)) => *void*| The callback which is called when new data arrives. |
234
234
235
235
**Returns:***string*
236
236
@@ -248,9 +248,9 @@ Subscribe to the latest milestone updates.
248
248
249
249
#### Parameters:
250
250
251
-
Name | Type | Description |
252
-
:------ | :------ | :------ |
253
-
`callback` | (`topic`: *string*, `data`: [*IMqttMilestoneResponse*](../interfaces/models_api_imqttmilestoneresponse.imqttmilestoneresponse.md)) => *void* | The callback which is called when new data arrives. |
251
+
|Name | Type | Description |
252
+
|:------ | :------ | :------ |
253
+
|`callback`| (`topic`: *string*, `data`: [*IMqttMilestoneResponse*](../interfaces/models_api_imqttmilestoneresponse.imqttmilestoneresponse.md)) => *void*| The callback which is called when new data arrives. |
254
254
255
255
**Returns:***string*
256
256
@@ -268,10 +268,10 @@ Subscribe to updates for a specific output.
268
268
269
269
#### Parameters:
270
270
271
-
Name | Type | Description |
272
-
:------ | :------ | :------ |
273
-
`outputId` | *string* | The output to monitor. |
274
-
`callback` | (`topic`: *string*, `data`: [*IOutputResponse*](../interfaces/models_api_ioutputresponse.ioutputresponse.md)) => *void* | The callback which is called when new data arrives. |
271
+
|Name | Type | Description |
272
+
|:------ | :------ | :------ |
273
+
|`outputId`|*string*| The output to monitor. |
274
+
|`callback`| (`topic`: *string*, `data`: [*IOutputResponse*](../interfaces/models_api_ioutputresponse.ioutputresponse.md)) => *void*| The callback which is called when new data arrives. |
275
275
276
276
**Returns:***string*
277
277
@@ -289,9 +289,9 @@ Subscribe to changes in the client state.
289
289
290
290
#### Parameters:
291
291
292
-
Name | Type | Description |
293
-
:------ | :------ | :------ |
294
-
`callback` | (`data`: [*IMqttStatus*](../interfaces/models_imqttstatus.imqttstatus.md)) => *void* | Callback called when the state has changed. |
292
+
|Name | Type | Description |
293
+
|:------ | :------ | :------ |
294
+
|`callback`| (`data`: [*IMqttStatus*](../interfaces/models_imqttstatus.imqttstatus.md)) => *void*| Callback called when the state has changed. |
295
295
296
296
**Returns:***string*
297
297
@@ -309,16 +309,16 @@ Subscribe to another type of message as json.
309
309
310
310
#### Type parameters:
311
311
312
-
Name |
313
-
:------ |
314
-
`T` |
312
+
|Name |
313
+
|:------ |
314
+
|`T`|
315
315
316
316
#### Parameters:
317
317
318
-
Name | Type | Description |
319
-
:------ | :------ | :------ |
320
-
`customTopic` | *string* | The topic to subscribe to. |
321
-
`callback` | (`topic`: *string*, `data`: T) => *void* | The callback which is called when new data arrives. |
318
+
|Name | Type | Description |
319
+
|:------ | :------ | :------ |
320
+
|`customTopic`|*string*| The topic to subscribe to. |
321
+
|`callback`| (`topic`: *string*, `data`: T) => *void*| The callback which is called when new data arrives. |
322
322
323
323
**Returns:***string*
324
324
@@ -336,10 +336,10 @@ Subscribe to another type of message as raw data.
336
336
337
337
#### Parameters:
338
338
339
-
Name | Type | Description |
340
-
:------ | :------ | :------ |
341
-
`customTopic` | *string* | The topic to subscribe to. |
342
-
`callback` | (`topic`: *string*, `data`: *Uint8Array*) => *void* | The callback which is called when new data arrives. |
339
+
|Name | Type | Description |
340
+
|:------ | :------ | :------ |
341
+
|`customTopic`|*string*| The topic to subscribe to. |
342
+
|`callback`| (`topic`: *string*, `data`: *Uint8Array*) => *void*| The callback which is called when new data arrives. |
343
343
344
344
**Returns:***string*
345
345
@@ -357,10 +357,10 @@ Subscribe to message updates for a specific transactionId.
357
357
358
358
#### Parameters:
359
359
360
-
Name | Type | Description |
361
-
:------ | :------ | :------ |
362
-
`transactionId` | *string* | The message to monitor. |
363
-
`callback` | (`topic`: *string*, `data`: [*IMessage*](../interfaces/models_imessage.imessage.md), `raw`: *Uint8Array*) => *void* | The callback which is called when new data arrives. |
360
+
|Name | Type | Description |
361
+
|:------ | :------ | :------ |
362
+
|`transactionId`|*string*| The message to monitor. |
363
+
|`callback`| (`topic`: *string*, `data`: [*IMessage*](../interfaces/models_imessage.imessage.md), `raw`: *Uint8Array*) => *void*| The callback which is called when new data arrives. |
364
364
365
365
**Returns:***string*
366
366
@@ -378,10 +378,10 @@ Subscribe to message updates for a specific transactionId.
378
378
379
379
#### Parameters:
380
380
381
-
Name | Type | Description |
382
-
:------ | :------ | :------ |
383
-
`transactionId` | *string* | The message to monitor. |
384
-
`callback` | (`topic`: *string*, `data`: *Uint8Array*) => *void* | The callback which is called when new data arrives. |
381
+
|Name | Type | Description |
382
+
|:------ | :------ | :------ |
383
+
|`transactionId`|*string*| The message to monitor. |
384
+
|`callback`| (`topic`: *string*, `data`: *Uint8Array*) => *void*| The callback which is called when new data arrives. |
385
385
386
386
**Returns:***string*
387
387
@@ -399,9 +399,9 @@ Remove a subscription.
399
399
400
400
#### Parameters:
401
401
402
-
Name | Type | Description |
403
-
:------ | :------ | :------ |
404
-
`subscriptionId` | *string* | The subscription to remove. |
402
+
|Name | Type | Description |
403
+
|:------ | :------ | :------ |
404
+
|`subscriptionId`|*string*| The subscription to remove. |
0 commit comments