@xyo-network/node-wrapper 5.3.25 → 5.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2282 -10
  2. package/package.json +19 -25
package/README.md CHANGED
@@ -1,23 +1,2295 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/node-wrapper
2
4
 
3
- [![logo][]](https://xyo.network)
5
+ [![npm][npm-badge]][npm-link]
6
+ [![license][license-badge]][license-link]
7
+
8
+ > Primary SDK for using XYO Protocol 2.0
9
+
10
+ ## Install
11
+
12
+ Using npm:
13
+
14
+ ```sh
15
+ npm install {{name}}
16
+ ```
17
+
18
+ Using yarn:
4
19
 
5
- Version: 5.0.2
20
+ ```sh
21
+ yarn add {{name}}
22
+ ```
6
23
 
7
- Primary SDK for using XYO Protocol 2.0
24
+ Using pnpm:
8
25
 
9
- ## Documentation
26
+ ```sh
27
+ pnpm add {{name}}
28
+ ```
10
29
 
11
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__node-wrapper)
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add {{name}}
34
+ ```
12
35
 
13
- Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
14
36
 
15
37
  ## License
16
38
 
17
- > See the [LICENSE](LICENSE) file for license details
39
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
+
41
+ ## Reference
42
+
43
+ ### packages
44
+
45
+ ### modules
46
+
47
+ ### packages
48
+
49
+ ### node
50
+
51
+ ### packages
52
+
53
+ ### wrapper
54
+
55
+ ### .temp-typedoc
56
+
57
+ ### classes
58
+
59
+ ### <a id="NodeWrapper"></a>NodeWrapper
60
+
61
+ [**@xyo-network/node-wrapper**](#../README)
62
+
63
+ ***
64
+
65
+ ## Extends
66
+
67
+ - `ModuleWrapper`\<`TWrappedModule`\>
68
+
69
+ ## Type Parameters
70
+
71
+ ### TWrappedModule
72
+
73
+ `TWrappedModule` *extends* `NodeModule` = `NodeModule`
74
+
75
+ ## Implements
76
+
77
+ - `NodeInstance`\<`TWrappedModule`\[`"params"`\]\>
78
+
79
+ ## Constructors
80
+
81
+ ### Constructor
82
+
83
+ ```ts
84
+ new NodeWrapper<TWrappedModule>(params): NodeWrapper<TWrappedModule>;
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ #### params
90
+
91
+ `ModuleWrapperParams`\<`TWrappedModule`\>
92
+
93
+ ### Returns
94
+
95
+ `NodeWrapper`\<`TWrappedModule`\>
96
+
97
+ ### Inherited from
98
+
99
+ ```ts
100
+ ModuleWrapper<TWrappedModule>.constructor
101
+ ```
102
+
103
+ ## Properties
104
+
105
+ ### eventData
106
+
107
+ ```ts
108
+ eventData: TWrappedModule["eventData"];
109
+ ```
110
+
111
+ The event data type associated with this instance.
112
+
113
+ ### Implementation of
114
+
115
+ ```ts
116
+ NodeInstance.eventData
117
+ ```
118
+
119
+ ### Inherited from
120
+
121
+ ```ts
122
+ ModuleWrapper.eventData
123
+ ```
124
+
125
+ ***
126
+
127
+ ### cachedCalls
128
+
129
+ ```ts
130
+ protected readonly cachedCalls: LRUCache<string, Payload[], unknown>;
131
+ ```
132
+
133
+ ### Inherited from
134
+
135
+ ```ts
136
+ ModuleWrapper.cachedCalls
137
+ ```
138
+
139
+ ***
140
+
141
+ ### wrapperParams
142
+
143
+ ```ts
144
+ protected readonly wrapperParams: ModuleWrapperParams<TWrappedModule>;
145
+ ```
146
+
147
+ ### Inherited from
148
+
149
+ ```ts
150
+ ModuleWrapper.wrapperParams
151
+ ```
152
+
153
+ ***
154
+
155
+ ### instanceIdentityCheck
156
+
157
+ ```ts
158
+ readonly static instanceIdentityCheck: InstanceTypeCheck<NodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>> = isNodeInstance;
159
+ ```
160
+
161
+ ### Overrides
162
+
163
+ ```ts
164
+ ModuleWrapper.instanceIdentityCheck
165
+ ```
166
+
167
+ ***
168
+
169
+ ### moduleIdentityCheck
170
+
171
+ ```ts
172
+ readonly static moduleIdentityCheck: TypeCheck<NodeModule<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>> = isNodeModule;
173
+ ```
174
+
175
+ ### Overrides
176
+
177
+ ```ts
178
+ ModuleWrapper.moduleIdentityCheck
179
+ ```
180
+
181
+ ***
182
+
183
+ ### requiredQueries
184
+
185
+ ```ts
186
+ readonly static requiredQueries: string[];
187
+ ```
188
+
189
+ ### Overrides
190
+
191
+ ```ts
192
+ ModuleWrapper.requiredQueries
193
+ ```
194
+
195
+ ***
196
+
197
+ ### \_attached?
198
+
199
+ ```ts
200
+ protected optional _attached?: BrandedAddress[];
201
+ ```
202
+
203
+ ***
204
+
205
+ ### \_attachedMutex
206
+
207
+ ```ts
208
+ protected _attachedMutex: Mutex;
209
+ ```
210
+
211
+ ## Accessors
212
+
213
+ ### account
214
+
215
+ ### Get Signature
216
+
217
+ ```ts
218
+ get account(): AccountInstance;
219
+ ```
220
+
221
+ #### Returns
222
+
223
+ `AccountInstance`
224
+
225
+ ### Implementation of
226
+
227
+ ```ts
228
+ NodeInstance.account
229
+ ```
230
+
231
+ ### Inherited from
232
+
233
+ ```ts
234
+ ModuleWrapper.account
235
+ ```
236
+
237
+ ***
238
+
239
+ ### additionalSigners
240
+
241
+ ### Get Signature
242
+
243
+ ```ts
244
+ get additionalSigners(): AccountInstance[];
245
+ ```
246
+
247
+ #### Returns
248
+
249
+ `AccountInstance`[]
250
+
251
+ ### Inherited from
252
+
253
+ ```ts
254
+ ModuleWrapper.additionalSigners
255
+ ```
256
+
257
+ ***
258
+
259
+ ### address
260
+
261
+ ### Get Signature
262
+
263
+ ```ts
264
+ get address(): Lowercase<string> & object & object;
265
+ ```
266
+
267
+ #### Returns
268
+
269
+ `Lowercase`\<`string`\> & `object` & `object`
270
+
271
+ ### Implementation of
272
+
273
+ ```ts
274
+ NodeInstance.address
275
+ ```
276
+
277
+ ### Inherited from
278
+
279
+ ```ts
280
+ ModuleWrapper.address
281
+ ```
282
+
283
+ ***
284
+
285
+ ### config
286
+
287
+ ### Get Signature
288
+
289
+ ```ts
290
+ get config(): Exclude<TWrappedModule["params"]["config"], undefined>;
291
+ ```
292
+
293
+ #### Returns
294
+
295
+ `Exclude`\<`TWrappedModule`\[`"params"`\]\[`"config"`\], `undefined`\>
296
+
297
+ ### Implementation of
298
+
299
+ ```ts
300
+ NodeInstance.config
301
+ ```
302
+
303
+ ### Inherited from
304
+
305
+ ```ts
306
+ ModuleWrapper.config
307
+ ```
308
+
309
+ ***
310
+
311
+ ### downResolver
312
+
313
+ ### Get Signature
314
+
315
+ ```ts
316
+ get downResolver(): ModuleResolverInstance;
317
+ ```
318
+
319
+ #### Returns
320
+
321
+ `ModuleResolverInstance`
322
+
323
+ ### Inherited from
324
+
325
+ ```ts
326
+ ModuleWrapper.downResolver
327
+ ```
328
+
329
+ ***
330
+
331
+ ### id
332
+
333
+ ### Get Signature
334
+
335
+ ```ts
336
+ get id(): string;
337
+ ```
338
+
339
+ The name (if specified) or address of the module
340
+
341
+ #### Returns
342
+
343
+ `string`
344
+
345
+ ### Implementation of
346
+
347
+ ```ts
348
+ NodeInstance.id
349
+ ```
350
+
351
+ ### Inherited from
352
+
353
+ ```ts
354
+ ModuleWrapper.id
355
+ ```
356
+
357
+ ***
358
+
359
+ ### mod
360
+
361
+ ### Get Signature
362
+
363
+ ```ts
364
+ get mod(): TWrappedModule;
365
+ ```
366
+
367
+ #### Returns
368
+
369
+ `TWrappedModule`
370
+
371
+ ### Inherited from
372
+
373
+ ```ts
374
+ ModuleWrapper.mod
375
+ ```
376
+
377
+ ***
378
+
379
+ ### modName
380
+
381
+ ### Get Signature
382
+
383
+ ```ts
384
+ get modName(): string | undefined;
385
+ ```
386
+
387
+ #### Returns
388
+
389
+ `string` \| `undefined`
390
+
391
+ ### Implementation of
392
+
393
+ ```ts
394
+ NodeInstance.modName
395
+ ```
396
+
397
+ ### Inherited from
398
+
399
+ ```ts
400
+ ModuleWrapper.modName
401
+ ```
402
+
403
+ ***
404
+
405
+ ### name
406
+
407
+ ### Get Signature
408
+
409
+ ```ts
410
+ get name(): CreatableName;
411
+ ```
412
+
413
+ The name identifier for this instance.
414
+
415
+ #### Returns
416
+
417
+ `CreatableName`
418
+
419
+ ### Implementation of
420
+
421
+ ```ts
422
+ NodeInstance.name
423
+ ```
424
+
425
+ ### Inherited from
426
+
427
+ ```ts
428
+ ModuleWrapper.name
429
+ ```
430
+
431
+ ***
432
+
433
+ ### priority
434
+
435
+ ### Get Signature
436
+
437
+ ```ts
438
+ get priority(): 1;
439
+ ```
440
+
441
+ #### Returns
442
+
443
+ `1`
444
+
445
+ ### Implementation of
446
+
447
+ ```ts
448
+ NodeInstance.priority
449
+ ```
450
+
451
+ ### Inherited from
452
+
453
+ ```ts
454
+ ModuleWrapper.priority
455
+ ```
456
+
457
+ ***
458
+
459
+ ### privateResolver
460
+
461
+ ### Get Signature
462
+
463
+ ```ts
464
+ get privateResolver(): ModuleResolverInstance;
465
+ ```
466
+
467
+ #### Returns
468
+
469
+ `ModuleResolverInstance`
470
+
471
+ ### Inherited from
472
+
473
+ ```ts
474
+ ModuleWrapper.privateResolver
475
+ ```
476
+
477
+ ***
478
+
479
+ ### queries
480
+
481
+ ### Get Signature
482
+
483
+ ```ts
484
+ get queries(): string[];
485
+ ```
486
+
487
+ #### Returns
488
+
489
+ `string`[]
490
+
491
+ ### Implementation of
492
+
493
+ ```ts
494
+ NodeInstance.queries
495
+ ```
496
+
497
+ ### Inherited from
498
+
499
+ ```ts
500
+ ModuleWrapper.queries
501
+ ```
502
+
503
+ ***
504
+
505
+ ### status
506
+
507
+ ### Get Signature
508
+
509
+ ```ts
510
+ get status(): ModuleStatus;
511
+ ```
512
+
513
+ #### Returns
514
+
515
+ `ModuleStatus`
516
+
517
+ ### Set Signature
518
+
519
+ ```ts
520
+ set status(value): void;
521
+ ```
522
+
523
+ #### Parameters
524
+
525
+ ##### value
526
+
527
+ `ModuleStatus`
528
+
529
+ #### Returns
530
+
531
+ `void`
532
+
533
+ ### Implementation of
534
+
535
+ ```ts
536
+ NodeInstance.status
537
+ ```
538
+
539
+ ### Inherited from
540
+
541
+ ```ts
542
+ ModuleWrapper.status
543
+ ```
544
+
545
+ ***
546
+
547
+ ### upResolver
548
+
549
+ ### Get Signature
550
+
551
+ ```ts
552
+ get upResolver(): ModuleResolverInstance;
553
+ ```
554
+
555
+ #### Returns
556
+
557
+ `ModuleResolverInstance`
558
+
559
+ ### Inherited from
560
+
561
+ ```ts
562
+ ModuleWrapper.upResolver
563
+ ```
564
+
565
+ ## Methods
566
+
567
+ ### canWrap()
568
+
569
+ ```ts
570
+ static canWrap(mod?): mod is QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>;
571
+ ```
572
+
573
+ ### Parameters
574
+
575
+ #### mod?
576
+
577
+ `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
578
+
579
+ ### Returns
580
+
581
+ `mod is QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>`
582
+
583
+ ### Inherited from
584
+
585
+ ```ts
586
+ ModuleWrapper.canWrap
587
+ ```
588
+
589
+ ***
590
+
591
+ ### hasRequiredQueries()
592
+
593
+ ```ts
594
+ static hasRequiredQueries(mod): boolean;
595
+ ```
596
+
597
+ ### Parameters
598
+
599
+ #### mod
600
+
601
+ `QueryableModule`
602
+
603
+ ### Returns
604
+
605
+ `boolean`
606
+
607
+ ### Inherited from
608
+
609
+ ```ts
610
+ ModuleWrapper.hasRequiredQueries
611
+ ```
612
+
613
+ ***
614
+
615
+ ### is()
616
+
617
+ ```ts
618
+ static is<TModuleWrapper>(this, wrapper): wrapper is TModuleWrapper;
619
+ ```
620
+
621
+ ### Type Parameters
622
+
623
+ #### TModuleWrapper
624
+
625
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
626
+
627
+ ### Parameters
628
+
629
+ #### this
630
+
631
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
632
+
633
+ #### wrapper
634
+
635
+ `any`
636
+
637
+ ### Returns
638
+
639
+ `wrapper is TModuleWrapper`
640
+
641
+ ### Inherited from
642
+
643
+ ```ts
644
+ ModuleWrapper.is
645
+ ```
646
+
647
+ ***
648
+
649
+ ### missingRequiredQueries()
650
+
651
+ ```ts
652
+ static missingRequiredQueries(mod): string[];
653
+ ```
654
+
655
+ ### Parameters
656
+
657
+ #### mod
658
+
659
+ `QueryableModule`
660
+
661
+ ### Returns
662
+
663
+ `string`[]
664
+
665
+ ### Inherited from
666
+
667
+ ```ts
668
+ ModuleWrapper.missingRequiredQueries
669
+ ```
670
+
671
+ ***
672
+
673
+ ### tryWrap()
674
+
675
+ ```ts
676
+ static tryWrap<TModuleWrapper>(
677
+ this,
678
+ mod,
679
+ account,
680
+ checkIdentity?): TModuleWrapper | undefined;
681
+ ```
682
+
683
+ ### Type Parameters
684
+
685
+ #### TModuleWrapper
686
+
687
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
688
+
689
+ ### Parameters
690
+
691
+ #### this
692
+
693
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
694
+
695
+ #### mod
696
+
697
+ \| `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
698
+ \| `undefined`
699
+
700
+ #### account
701
+
702
+ `AccountInstance`
703
+
704
+ #### checkIdentity?
705
+
706
+ `boolean`
707
+
708
+ ### Returns
709
+
710
+ `TModuleWrapper` \| `undefined`
711
+
712
+ ### Inherited from
713
+
714
+ ```ts
715
+ ModuleWrapper.tryWrap
716
+ ```
717
+
718
+ ***
719
+
720
+ ### with()
721
+
722
+ ```ts
723
+ static with<TModuleWrapper, R>(
724
+ this,
725
+ mod,
726
+ closure): R | undefined;
727
+ ```
728
+
729
+ ### Type Parameters
730
+
731
+ #### TModuleWrapper
732
+
733
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
734
+
735
+ #### R
736
+
737
+ `R` *extends* `Promisable`\<`void`\> = `void`
738
+
739
+ ### Parameters
740
+
741
+ #### this
742
+
743
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
744
+
745
+ #### mod
746
+
747
+ `any`
748
+
749
+ #### closure
750
+
751
+ (`mod`) => `R`
752
+
753
+ ### Returns
754
+
755
+ `R` \| `undefined`
756
+
757
+ ### Inherited from
758
+
759
+ ```ts
760
+ ModuleWrapper.with
761
+ ```
762
+
763
+ ***
764
+
765
+ ### wrap()
766
+
767
+ ```ts
768
+ static wrap<TModuleWrapper>(
769
+ this,
770
+ mod,
771
+ account,
772
+ checkIdentity?): TModuleWrapper;
773
+ ```
774
+
775
+ ### Type Parameters
776
+
777
+ #### TModuleWrapper
778
+
779
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
780
+
781
+ ### Parameters
782
+
783
+ #### this
784
+
785
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
786
+
787
+ #### mod
788
+
789
+ \| `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
790
+ \| `undefined`
791
+
792
+ #### account
793
+
794
+ `AccountInstance`
795
+
796
+ #### checkIdentity?
797
+
798
+ `boolean`
799
+
800
+ ### Returns
801
+
802
+ `TModuleWrapper`
803
+
804
+ ### Inherited from
805
+
806
+ ```ts
807
+ ModuleWrapper.wrap
808
+ ```
809
+
810
+ ***
811
+
812
+ ### addParent()
813
+
814
+ ```ts
815
+ addParent(mod): void;
816
+ ```
817
+
818
+ ### Parameters
819
+
820
+ #### mod
821
+
822
+ `ModuleInstance`
823
+
824
+ ### Returns
825
+
826
+ `void`
827
+
828
+ ### Implementation of
829
+
830
+ ```ts
831
+ NodeInstance.addParent
832
+ ```
833
+
834
+ ### Inherited from
835
+
836
+ ```ts
837
+ ModuleWrapper.addParent
838
+ ```
839
+
840
+ ***
841
+
842
+ ### addressPreviousHash()
843
+
844
+ ```ts
845
+ addressPreviousHash(): Promise<AddressPreviousHashPayload>;
846
+ ```
847
+
848
+ ### Returns
849
+
850
+ `Promise`\<`AddressPreviousHashPayload`\>
851
+
852
+ ### Inherited from
853
+
854
+ ```ts
855
+ ModuleWrapper.addressPreviousHash
856
+ ```
857
+
858
+ ***
859
+
860
+ ### clearListeners()
861
+
862
+ ```ts
863
+ clearListeners(eventNames): void;
864
+ ```
865
+
866
+ Removes all listeners for the specified event name(s).
867
+
868
+ ### Parameters
869
+
870
+ #### eventNames
871
+
872
+ `Parameters`\<`TWrappedModule`\[`"clearListeners"`\]\>\[`0`\]
873
+
874
+ ### Returns
875
+
876
+ `void`
877
+
878
+ ### Implementation of
879
+
880
+ ```ts
881
+ NodeInstance.clearListeners
882
+ ```
883
+
884
+ ### Inherited from
885
+
886
+ ```ts
887
+ ModuleWrapper.clearListeners
888
+ ```
889
+
890
+ ***
891
+
892
+ ### emit()
893
+
894
+ ```ts
895
+ emit(eventName, eventArgs): Promise<void>;
896
+ ```
897
+
898
+ Emits an event, invoking all registered listeners concurrently.
899
+
900
+ ### Parameters
901
+
902
+ #### eventName
903
+
904
+ `Parameters`\<`TWrappedModule`\[`"emit"`\]\>\[`0`\]
905
+
906
+ #### eventArgs
907
+
908
+ `Parameters`\<`TWrappedModule`\[`"emit"`\]\>\[`1`\]
909
+
910
+ ### Returns
911
+
912
+ `Promise`\<`void`\>
913
+
914
+ ### Implementation of
915
+
916
+ ```ts
917
+ NodeInstance.emit
918
+ ```
919
+
920
+ ### Inherited from
921
+
922
+ ```ts
923
+ ModuleWrapper.emit
924
+ ```
925
+
926
+ ***
927
+
928
+ ### emitSerial()
929
+
930
+ ```ts
931
+ emitSerial(eventName, eventArgs): Promise<void>;
932
+ ```
933
+
934
+ Emits an event, invoking all registered listeners sequentially in order.
935
+
936
+ ### Parameters
937
+
938
+ #### eventName
939
+
940
+ `Parameters`\<`TWrappedModule`\[`"emitSerial"`\]\>\[`0`\]
941
+
942
+ #### eventArgs
943
+
944
+ `Parameters`\<`TWrappedModule`\[`"emitSerial"`\]\>\[`1`\]
945
+
946
+ ### Returns
947
+
948
+ `Promise`\<`void`\>
949
+
950
+ ### Implementation of
951
+
952
+ ```ts
953
+ NodeInstance.emitSerial
954
+ ```
955
+
956
+ ### Inherited from
957
+
958
+ ```ts
959
+ ModuleWrapper.emitSerial
960
+ ```
961
+
962
+ ***
963
+
964
+ ### listenerCount()
965
+
966
+ ```ts
967
+ listenerCount(eventNames): number;
968
+ ```
969
+
970
+ Returns the total number of listeners registered for the specified event name(s).
971
+
972
+ ### Parameters
973
+
974
+ #### eventNames
975
+
976
+ `Parameters`\<`TWrappedModule`\[`"listenerCount"`\]\>\[`0`\]
977
+
978
+ ### Returns
979
+
980
+ `number`
981
+
982
+ ### Implementation of
983
+
984
+ ```ts
985
+ NodeInstance.listenerCount
986
+ ```
987
+
988
+ ### Inherited from
989
+
990
+ ```ts
991
+ ModuleWrapper.listenerCount
992
+ ```
993
+
994
+ ***
995
+
996
+ ### manifestQuery()
997
+
998
+ ```ts
999
+ manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
1000
+ ```
1001
+
1002
+ ### Parameters
1003
+
1004
+ #### account
1005
+
1006
+ `AccountInstance`
1007
+
1008
+ #### maxDepth?
1009
+
1010
+ `number`
1011
+
1012
+ ### Returns
1013
+
1014
+ `Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
1015
+
1016
+ ### Implementation of
1017
+
1018
+ ```ts
1019
+ NodeInstance.manifestQuery
1020
+ ```
1021
+
1022
+ ### Inherited from
1023
+
1024
+ ```ts
1025
+ ModuleWrapper.manifestQuery
1026
+ ```
1027
+
1028
+ ***
1029
+
1030
+ ### moduleAddress()
1031
+
1032
+ ```ts
1033
+ moduleAddress(): Promise<AddressPreviousHashPayload[]>;
1034
+ ```
1035
+
1036
+ ### Returns
1037
+
1038
+ `Promise`\<`AddressPreviousHashPayload`[]\>
1039
+
1040
+ ### Implementation of
1041
+
1042
+ ```ts
1043
+ NodeInstance.moduleAddress
1044
+ ```
1045
+
1046
+ ### Inherited from
1047
+
1048
+ ```ts
1049
+ ModuleWrapper.moduleAddress
1050
+ ```
1051
+
1052
+ ***
1053
+
1054
+ ### off()
1055
+
1056
+ ```ts
1057
+ off<TEventName>(eventNames, listener): void;
1058
+ ```
1059
+
1060
+ Removes a specific listener from the specified event name(s).
1061
+
1062
+ ### Type Parameters
1063
+
1064
+ #### TEventName
1065
+
1066
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1067
+
1068
+ ### Parameters
1069
+
1070
+ #### eventNames
1071
+
1072
+ `TEventName`
1073
+
1074
+ #### listener
1075
+
1076
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1077
+
1078
+ ### Returns
1079
+
1080
+ `void`
1081
+
1082
+ ### Implementation of
1083
+
1084
+ ```ts
1085
+ NodeInstance.off
1086
+ ```
1087
+
1088
+ ### Inherited from
1089
+
1090
+ ```ts
1091
+ ModuleWrapper.off
1092
+ ```
1093
+
1094
+ ***
1095
+
1096
+ ### offAny()
1097
+
1098
+ ```ts
1099
+ offAny(listener): void;
1100
+ ```
1101
+
1102
+ Removes a wildcard listener that was receiving all events.
1103
+
1104
+ ### Parameters
1105
+
1106
+ #### listener
1107
+
1108
+ `EventAnyListener`
1109
+
1110
+ ### Returns
1111
+
1112
+ `void`
1113
+
1114
+ ### Implementation of
1115
+
1116
+ ```ts
1117
+ NodeInstance.offAny
1118
+ ```
1119
+
1120
+ ### Inherited from
1121
+
1122
+ ```ts
1123
+ ModuleWrapper.offAny
1124
+ ```
1125
+
1126
+ ***
1127
+
1128
+ ### on()
1129
+
1130
+ ```ts
1131
+ on<TEventName>(eventNames, listener): EventUnsubscribeFunction;
1132
+ ```
1133
+
1134
+ Subscribes a listener to the specified event name(s) and returns an unsubscribe function.
1135
+
1136
+ ### Type Parameters
1137
+
1138
+ #### TEventName
1139
+
1140
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1141
+
1142
+ ### Parameters
1143
+
1144
+ #### eventNames
1145
+
1146
+ `TEventName`
1147
+
1148
+ #### listener
1149
+
1150
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1151
+
1152
+ ### Returns
1153
+
1154
+ `EventUnsubscribeFunction`
1155
+
1156
+ ### Implementation of
1157
+
1158
+ ```ts
1159
+ NodeInstance.on
1160
+ ```
1161
+
1162
+ ### Inherited from
1163
+
1164
+ ```ts
1165
+ ModuleWrapper.on
1166
+ ```
1167
+
1168
+ ***
1169
+
1170
+ ### onAny()
1171
+
1172
+ ```ts
1173
+ onAny(listener): EventUnsubscribeFunction;
1174
+ ```
1175
+
1176
+ Subscribes a wildcard listener that receives all events and returns an unsubscribe function.
1177
+
1178
+ ### Parameters
1179
+
1180
+ #### listener
1181
+
1182
+ `EventAnyListener`
1183
+
1184
+ ### Returns
1185
+
1186
+ `EventUnsubscribeFunction`
1187
+
1188
+ ### Implementation of
1189
+
1190
+ ```ts
1191
+ NodeInstance.onAny
1192
+ ```
1193
+
1194
+ ### Inherited from
1195
+
1196
+ ```ts
1197
+ ModuleWrapper.onAny
1198
+ ```
1199
+
1200
+ ***
1201
+
1202
+ ### once()
1203
+
1204
+ ```ts
1205
+ once<TEventName>(eventName, listener): EventUnsubscribeFunction;
1206
+ ```
1207
+
1208
+ Subscribes a listener that will be invoked only once for the specified event, then automatically removed.
1209
+
1210
+ ### Type Parameters
1211
+
1212
+ #### TEventName
1213
+
1214
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1215
+
1216
+ ### Parameters
1217
+
1218
+ #### eventName
1219
+
1220
+ `TEventName`
1221
+
1222
+ #### listener
1223
+
1224
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1225
+
1226
+ ### Returns
1227
+
1228
+ `EventUnsubscribeFunction`
1229
+
1230
+ ### Implementation of
1231
+
1232
+ ```ts
1233
+ NodeInstance.once
1234
+ ```
1235
+
1236
+ ### Inherited from
1237
+
1238
+ ```ts
1239
+ ModuleWrapper.once
1240
+ ```
1241
+
1242
+ ***
1243
+
1244
+ ### parents()
1245
+
1246
+ ```ts
1247
+ parents(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1248
+ ```
1249
+
1250
+ ### Returns
1251
+
1252
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1253
+
1254
+ ### Implementation of
1255
+
1256
+ ```ts
1257
+ NodeInstance.parents
1258
+ ```
1259
+
1260
+ ### Inherited from
1261
+
1262
+ ```ts
1263
+ ModuleWrapper.parents
1264
+ ```
1265
+
1266
+ ***
1267
+
1268
+ ### previousHash()
1269
+
1270
+ ```ts
1271
+ previousHash(): Promise<string | undefined>;
1272
+ ```
1273
+
1274
+ ### Returns
1275
+
1276
+ `Promise`\<`string` \| `undefined`\>
1277
+
1278
+ ### Implementation of
1279
+
1280
+ ```ts
1281
+ NodeInstance.previousHash
1282
+ ```
1283
+
1284
+ ### Inherited from
1285
+
1286
+ ```ts
1287
+ ModuleWrapper.previousHash
1288
+ ```
1289
+
1290
+ ***
1291
+
1292
+ ### previousHashQuery()
1293
+
1294
+ ```ts
1295
+ previousHashQuery(account?): Promise<ModuleQueryResult<AddressPreviousHashPayload>>;
1296
+ ```
1297
+
1298
+ ### Parameters
1299
+
1300
+ #### account?
1301
+
1302
+ `AccountInstance`
1303
+
1304
+ ### Returns
1305
+
1306
+ `Promise`\<`ModuleQueryResult`\<`AddressPreviousHashPayload`\>\>
1307
+
1308
+ ### Inherited from
1309
+
1310
+ ```ts
1311
+ ModuleWrapper.previousHashQuery
1312
+ ```
1313
+
1314
+ ***
1315
+
1316
+ ### privateChildren()
1317
+
1318
+ ```ts
1319
+ privateChildren(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1320
+ ```
1321
+
1322
+ ### Returns
1323
+
1324
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1325
+
1326
+ ### Implementation of
1327
+
1328
+ ```ts
1329
+ NodeInstance.privateChildren
1330
+ ```
1331
+
1332
+ ### Inherited from
1333
+
1334
+ ```ts
1335
+ ModuleWrapper.privateChildren
1336
+ ```
1337
+
1338
+ ***
1339
+
1340
+ ### publicChildren()
1341
+
1342
+ ```ts
1343
+ publicChildren(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1344
+ ```
1345
+
1346
+ ### Returns
1347
+
1348
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1349
+
1350
+ ### Implementation of
1351
+
1352
+ ```ts
1353
+ NodeInstance.publicChildren
1354
+ ```
1355
+
1356
+ ### Inherited from
1357
+
1358
+ ```ts
1359
+ ModuleWrapper.publicChildren
1360
+ ```
1361
+
1362
+ ***
1363
+
1364
+ ### query()
1365
+
1366
+ ```ts
1367
+ query<T>(query, payloads?): Promise<ModuleQueryResult>;
1368
+ ```
1369
+
1370
+ ### Type Parameters
1371
+
1372
+ #### T
1373
+
1374
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1375
+
1376
+ ### Parameters
1377
+
1378
+ #### query
1379
+
1380
+ `T`
1381
+
1382
+ #### payloads?
1383
+
1384
+ `Payload`[]
1385
+
1386
+ ### Returns
1387
+
1388
+ `Promise`\<`ModuleQueryResult`\>
1389
+
1390
+ ### Implementation of
1391
+
1392
+ ```ts
1393
+ NodeInstance.query
1394
+ ```
1395
+
1396
+ ### Inherited from
1397
+
1398
+ ```ts
1399
+ ModuleWrapper.query
1400
+ ```
1401
+
1402
+ ***
1403
+
1404
+ ### queryable()
1405
+
1406
+ ```ts
1407
+ queryable<T>(query, payloads?): Promisable<boolean>;
1408
+ ```
1409
+
1410
+ ### Type Parameters
1411
+
1412
+ #### T
1413
+
1414
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1415
+
1416
+ ### Parameters
1417
+
1418
+ #### query
1419
+
1420
+ `T`
1421
+
1422
+ #### payloads?
1423
+
1424
+ `Payload`[]
1425
+
1426
+ ### Returns
1427
+
1428
+ `Promisable`\<`boolean`\>
1429
+
1430
+ ### Implementation of
1431
+
1432
+ ```ts
1433
+ NodeInstance.queryable
1434
+ ```
1435
+
1436
+ ### Inherited from
1437
+
1438
+ ```ts
1439
+ ModuleWrapper.queryable
1440
+ ```
1441
+
1442
+ ***
1443
+
1444
+ ### removeParent()
1445
+
1446
+ ```ts
1447
+ removeParent(address): void;
1448
+ ```
1449
+
1450
+ ### Parameters
1451
+
1452
+ #### address
1453
+
1454
+ `BrandedAddress`
1455
+
1456
+ ### Returns
1457
+
1458
+ `void`
1459
+
1460
+ ### Implementation of
1461
+
1462
+ ```ts
1463
+ NodeInstance.removeParent
1464
+ ```
1465
+
1466
+ ### Inherited from
1467
+
1468
+ ```ts
1469
+ ModuleWrapper.removeParent
1470
+ ```
1471
+
1472
+ ***
1473
+
1474
+ ### ~~resolve()~~
1475
+
1476
+ ### Call Signature
1477
+
1478
+ ```ts
1479
+ resolve<T>(): Promise<T[]>;
1480
+ ```
1481
+
1482
+ #### Type Parameters
1483
+
1484
+ ##### T
1485
+
1486
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1487
+
1488
+ #### Returns
1489
+
1490
+ `Promise`\<`T`[]\>
1491
+
1492
+ #### Deprecated
1493
+
1494
+ do not pass undefined. If trying to get all, pass '*'
1495
+
1496
+ #### Implementation of
1497
+
1498
+ ```ts
1499
+ NodeInstance.resolve
1500
+ ```
1501
+
1502
+ #### Inherited from
1503
+
1504
+ ```ts
1505
+ ModuleWrapper.resolve
1506
+ ```
1507
+
1508
+ ### Call Signature
1509
+
1510
+ ```ts
1511
+ resolve<T>(all, options?): Promise<T[]>;
1512
+ ```
1513
+
1514
+ #### Type Parameters
1515
+
1516
+ ##### T
1517
+
1518
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1519
+
1520
+ #### Parameters
1521
+
1522
+ ##### all
1523
+
1524
+ `"*"`
1525
+
1526
+ ##### options?
1527
+
1528
+ `ModuleFilterOptions`\<`T`\>
1529
+
1530
+ #### Returns
1531
+
1532
+ `Promise`\<`T`[]\>
1533
+
1534
+ #### Deprecated
1535
+
1536
+ do not pass undefined. If trying to get all, pass '*'
1537
+
1538
+ #### Implementation of
1539
+
1540
+ ```ts
1541
+ NodeInstance.resolve
1542
+ ```
1543
+
1544
+ #### Inherited from
1545
+
1546
+ ```ts
1547
+ ModuleWrapper.resolve
1548
+ ```
1549
+
1550
+ ### Call Signature
1551
+
1552
+ ```ts
1553
+ resolve<T>(id, options?): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
1554
+ ```
1555
+
1556
+ #### Type Parameters
1557
+
1558
+ ##### T
1559
+
1560
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1561
+
1562
+ #### Parameters
1563
+
1564
+ ##### id
1565
+
1566
+ `ModuleIdentifier`
1567
+
1568
+ ##### options?
1569
+
1570
+ `ModuleFilterOptions`\<`T`\>
1571
+
1572
+ #### Returns
1573
+
1574
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
1575
+
1576
+ #### Deprecated
1577
+
1578
+ do not pass undefined. If trying to get all, pass '*'
1579
+
1580
+ #### Implementation of
1581
+
1582
+ ```ts
1583
+ NodeInstance.resolve
1584
+ ```
1585
+
1586
+ #### Inherited from
1587
+
1588
+ ```ts
1589
+ ModuleWrapper.resolve
1590
+ ```
1591
+
1592
+ ***
1593
+
1594
+ ### resolvePrivate()
1595
+
1596
+ ### Call Signature
1597
+
1598
+ ```ts
1599
+ resolvePrivate<T>(all, options?): Promise<T[]>;
1600
+ ```
1601
+
1602
+ #### Type Parameters
1603
+
1604
+ ##### T
1605
+
1606
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1607
+
1608
+ #### Parameters
1609
+
1610
+ ##### all
1611
+
1612
+ `"*"`
1613
+
1614
+ ##### options?
1615
+
1616
+ `ModuleFilterOptions`\<`T`\>
1617
+
1618
+ #### Returns
1619
+
1620
+ `Promise`\<`T`[]\>
1621
+
1622
+ #### Implementation of
1623
+
1624
+ ```ts
1625
+ NodeInstance.resolvePrivate
1626
+ ```
1627
+
1628
+ #### Inherited from
1629
+
1630
+ ```ts
1631
+ ModuleWrapper.resolvePrivate
1632
+ ```
1633
+
1634
+ ### Call Signature
1635
+
1636
+ ```ts
1637
+ resolvePrivate<T>(id, options?): Promise<T | undefined>;
1638
+ ```
1639
+
1640
+ #### Type Parameters
1641
+
1642
+ ##### T
1643
+
1644
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1645
+
1646
+ #### Parameters
1647
+
1648
+ ##### id
1649
+
1650
+ `ModuleIdentifier`
1651
+
1652
+ ##### options?
1653
+
1654
+ `ModuleFilterOptions`\<`T`\>
1655
+
1656
+ #### Returns
1657
+
1658
+ `Promise`\<`T` \| `undefined`\>
1659
+
1660
+ #### Implementation of
1661
+
1662
+ ```ts
1663
+ NodeInstance.resolvePrivate
1664
+ ```
1665
+
1666
+ #### Inherited from
1667
+
1668
+ ```ts
1669
+ ModuleWrapper.resolvePrivate
1670
+ ```
1671
+
1672
+ ***
1673
+
1674
+ ### siblings()
1675
+
1676
+ ```ts
1677
+ siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1678
+ ```
1679
+
1680
+ ### Returns
1681
+
1682
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1683
+
1684
+ ### Implementation of
1685
+
1686
+ ```ts
1687
+ NodeInstance.siblings
1688
+ ```
1689
+
1690
+ ### Inherited from
1691
+
1692
+ ```ts
1693
+ ModuleWrapper.siblings
1694
+ ```
1695
+
1696
+ ***
1697
+
1698
+ ### start()
1699
+
1700
+ ```ts
1701
+ start(): Promise<boolean>;
1702
+ ```
1703
+
1704
+ Starts the instance. Resolves to true if started successfully.
1705
+
1706
+ ### Returns
1707
+
1708
+ `Promise`\<`boolean`\>
1709
+
1710
+ ### Implementation of
1711
+
1712
+ ```ts
1713
+ NodeInstance.start
1714
+ ```
1715
+
1716
+ ### Inherited from
1717
+
1718
+ ```ts
1719
+ ModuleWrapper.start
1720
+ ```
1721
+
1722
+ ***
1723
+
1724
+ ### state()
1725
+
1726
+ ```ts
1727
+ state(): Promise<Payload[]>;
1728
+ ```
1729
+
1730
+ ### Returns
1731
+
1732
+ `Promise`\<`Payload`[]\>
1733
+
1734
+ ### Implementation of
1735
+
1736
+ ```ts
1737
+ NodeInstance.state
1738
+ ```
1739
+
1740
+ ### Inherited from
1741
+
1742
+ ```ts
1743
+ ModuleWrapper.state
1744
+ ```
1745
+
1746
+ ***
1747
+
1748
+ ### stateQuery()
1749
+
1750
+ ```ts
1751
+ stateQuery(_account): Promise<ModuleQueryResult>;
1752
+ ```
1753
+
1754
+ ### Parameters
1755
+
1756
+ #### \_account
1757
+
1758
+ `AccountInstance`
1759
+
1760
+ ### Returns
1761
+
1762
+ `Promise`\<`ModuleQueryResult`\>
1763
+
1764
+ ### Implementation of
1765
+
1766
+ ```ts
1767
+ NodeInstance.stateQuery
1768
+ ```
1769
+
1770
+ ### Inherited from
1771
+
1772
+ ```ts
1773
+ ModuleWrapper.stateQuery
1774
+ ```
1775
+
1776
+ ***
1777
+
1778
+ ### stop()
1779
+
1780
+ ```ts
1781
+ stop(): Promise<boolean>;
1782
+ ```
1783
+
1784
+ Stops the instance. Resolves to true if stopped successfully.
1785
+
1786
+ ### Returns
1787
+
1788
+ `Promise`\<`boolean`\>
1789
+
1790
+ ### Implementation of
1791
+
1792
+ ```ts
1793
+ NodeInstance.stop
1794
+ ```
1795
+
1796
+ ### Inherited from
1797
+
1798
+ ```ts
1799
+ ModuleWrapper.stop
1800
+ ```
1801
+
1802
+ ***
1803
+
1804
+ ### bindQuery()
1805
+
1806
+ ```ts
1807
+ protected bindQuery<T>(
1808
+ query,
1809
+ payloads?,
1810
+ account?,
1811
+ additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], ModuleError[]], AccountInstance>;
1812
+ ```
1813
+
1814
+ ### Type Parameters
1815
+
1816
+ #### T
1817
+
1818
+ `T` *extends* `Query`
1819
+
1820
+ ### Parameters
1821
+
1822
+ #### query
1823
+
1824
+ `T`
1825
+
1826
+ #### payloads?
1827
+
1828
+ `Payload`[]
1829
+
1830
+ #### account?
1831
+
1832
+ `AccountInstance`
1833
+
1834
+ #### additionalSigners?
1835
+
1836
+ `AccountInstance`[]
1837
+
1838
+ ### Returns
1839
+
1840
+ `PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `ModuleError`[]\], `AccountInstance`\>
1841
+
1842
+ ### Inherited from
1843
+
1844
+ ```ts
1845
+ ModuleWrapper.bindQuery
1846
+ ```
1847
+
1848
+ ***
1849
+
1850
+ ### bindQueryInternal()
1851
+
1852
+ ```ts
1853
+ protected bindQueryInternal<T>(
1854
+ query,
1855
+ payloads?,
1856
+ account?,
1857
+ additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], ModuleError[]]>;
1858
+ ```
1859
+
1860
+ ### Type Parameters
1861
+
1862
+ #### T
1863
+
1864
+ `T` *extends* `Query`
1865
+
1866
+ ### Parameters
1867
+
1868
+ #### query
1869
+
1870
+ `T`
1871
+
1872
+ #### payloads?
1873
+
1874
+ `Payload`[]
1875
+
1876
+ #### account?
1877
+
1878
+ `AccountInstance`
1879
+
1880
+ #### additionalSigners?
1881
+
1882
+ `AccountInstance`[]
1883
+
1884
+ ### Returns
1885
+
1886
+ `Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `ModuleError`[]\]\>
1887
+
1888
+ ### Inherited from
1889
+
1890
+ ```ts
1891
+ ModuleWrapper.bindQueryInternal
1892
+ ```
1893
+
1894
+ ***
1895
+
1896
+ ### filterErrors()
1897
+
1898
+ ```ts
1899
+ protected filterErrors(__namedParameters): ModuleError[];
1900
+ ```
1901
+
1902
+ ### Parameters
1903
+
1904
+ #### \_\_namedParameters
1905
+
1906
+ `ModuleQueryResult`
1907
+
1908
+ ### Returns
1909
+
1910
+ `ModuleError`[]
1911
+
1912
+ ### Inherited from
1913
+
1914
+ ```ts
1915
+ ModuleWrapper.filterErrors
1916
+ ```
1917
+
1918
+ ***
1919
+
1920
+ ### sendQuery()
1921
+
1922
+ ```ts
1923
+ protected sendQuery<T, P, R>(queryPayload, payloads?): Promise<R[]>;
1924
+ ```
1925
+
1926
+ ### Type Parameters
1927
+
1928
+ #### T
1929
+
1930
+ `T` *extends* `Query`
1931
+
1932
+ #### P
1933
+
1934
+ `P` *extends* `Payload` = `Payload`
1935
+
1936
+ #### R
1937
+
1938
+ `R` *extends* `Payload` = `Payload`
1939
+
1940
+ ### Parameters
1941
+
1942
+ #### queryPayload
1943
+
1944
+ `T`
1945
+
1946
+ #### payloads?
1947
+
1948
+ `P`[]
1949
+
1950
+ ### Returns
1951
+
1952
+ `Promise`\<`R`[]\>
1953
+
1954
+ ### Inherited from
1955
+
1956
+ ```ts
1957
+ ModuleWrapper.sendQuery
1958
+ ```
1959
+
1960
+ ***
1961
+
1962
+ ### sendQueryRaw()
1963
+
1964
+ ```ts
1965
+ protected sendQueryRaw<T, P, R>(
1966
+ queryPayload,
1967
+ payloads?,
1968
+ account?): Promise<ModuleQueryResult<R>>;
1969
+ ```
1970
+
1971
+ ### Type Parameters
1972
+
1973
+ #### T
1974
+
1975
+ `T` *extends* `Query`
1976
+
1977
+ #### P
1978
+
1979
+ `P` *extends* `Payload` = `Payload`
1980
+
1981
+ #### R
1982
+
1983
+ `R` *extends* `Payload` = `Payload`
1984
+
1985
+ ### Parameters
1986
+
1987
+ #### queryPayload
1988
+
1989
+ `T`
1990
+
1991
+ #### payloads?
1992
+
1993
+ `P`[]
1994
+
1995
+ #### account?
1996
+
1997
+ `AccountInstance`
1998
+
1999
+ ### Returns
2000
+
2001
+ `Promise`\<`ModuleQueryResult`\<`R`\>\>
2002
+
2003
+ ### Inherited from
2004
+
2005
+ ```ts
2006
+ ModuleWrapper.sendQueryRaw
2007
+ ```
2008
+
2009
+ ***
2010
+
2011
+ ### attach()
2012
+
2013
+ ```ts
2014
+ attach(id, external?): Promise<BrandedAddress | undefined>;
2015
+ ```
2016
+
2017
+ ### Parameters
2018
+
2019
+ #### id
2020
+
2021
+ `ModuleIdentifier`
2022
+
2023
+ #### external?
2024
+
2025
+ `boolean`
2026
+
2027
+ ### Returns
2028
+
2029
+ `Promise`\<`BrandedAddress` \| `undefined`\>
2030
+
2031
+ ### Implementation of
2032
+
2033
+ ```ts
2034
+ NodeInstance.attach
2035
+ ```
2036
+
2037
+ ***
2038
+
2039
+ ### attachQuery()
2040
+
2041
+ ```ts
2042
+ attachQuery(
2043
+ id,
2044
+ external?,
2045
+ account?): Promise<ModuleQueryResult<AddressPayload>>;
2046
+ ```
2047
+
2048
+ ### Parameters
2049
+
2050
+ #### id
2051
+
2052
+ `ModuleIdentifier`
2053
+
2054
+ #### external?
2055
+
2056
+ `boolean`
2057
+
2058
+ #### account?
2059
+
2060
+ `AccountInstance`
2061
+
2062
+ ### Returns
2063
+
2064
+ `Promise`\<`ModuleQueryResult`\<`AddressPayload`\>\>
2065
+
2066
+ ### Implementation of
2067
+
2068
+ ```ts
2069
+ NodeInstance.attachQuery
2070
+ ```
2071
+
2072
+ ***
2073
+
2074
+ ### attached()
2075
+
2076
+ ```ts
2077
+ attached(): Promise<BrandedAddress[]>;
2078
+ ```
2079
+
2080
+ ### Returns
2081
+
2082
+ `Promise`\<`BrandedAddress`[]\>
2083
+
2084
+ ### Implementation of
2085
+
2086
+ ```ts
2087
+ NodeInstance.attached
2088
+ ```
2089
+
2090
+ ***
2091
+
2092
+ ### attachedQuery()
2093
+
2094
+ ```ts
2095
+ attachedQuery(account?): Promise<ModuleQueryResult<AddressPayload>>;
2096
+ ```
2097
+
2098
+ ### Parameters
2099
+
2100
+ #### account?
2101
+
2102
+ `AccountInstance`
2103
+
2104
+ ### Returns
2105
+
2106
+ `Promise`\<`ModuleQueryResult`\<`AddressPayload`\>\>
2107
+
2108
+ ### Implementation of
2109
+
2110
+ ```ts
2111
+ NodeInstance.attachedQuery
2112
+ ```
2113
+
2114
+ ***
2115
+
2116
+ ### certify()
2117
+
2118
+ ```ts
2119
+ certify(id): Promise<ChildCertificationFields | undefined>;
2120
+ ```
2121
+
2122
+ ### Parameters
2123
+
2124
+ #### id
2125
+
2126
+ `ModuleIdentifier`
2127
+
2128
+ ### Returns
2129
+
2130
+ `Promise`\<`ChildCertificationFields` \| `undefined`\>
2131
+
2132
+ ### Implementation of
2133
+
2134
+ ```ts
2135
+ NodeInstance.certify
2136
+ ```
2137
+
2138
+ ***
2139
+
2140
+ ### certifyQuery()
2141
+
2142
+ ```ts
2143
+ certifyQuery(id, account?): Promise<ModuleQueryResult<ChildCertification>>;
2144
+ ```
2145
+
2146
+ ### Parameters
2147
+
2148
+ #### id
2149
+
2150
+ `ModuleIdentifier`
2151
+
2152
+ #### account?
2153
+
2154
+ `AccountInstance`
2155
+
2156
+ ### Returns
2157
+
2158
+ `Promise`\<`ModuleQueryResult`\<`ChildCertification`\>\>
2159
+
2160
+ ### Implementation of
2161
+
2162
+ ```ts
2163
+ NodeInstance.certifyQuery
2164
+ ```
2165
+
2166
+ ***
2167
+
2168
+ ### detach()
2169
+
2170
+ ```ts
2171
+ detach(id): Promise<BrandedAddress | undefined>;
2172
+ ```
2173
+
2174
+ ### Parameters
2175
+
2176
+ #### id
2177
+
2178
+ `ModuleIdentifier`
2179
+
2180
+ ### Returns
2181
+
2182
+ `Promise`\<`BrandedAddress` \| `undefined`\>
2183
+
2184
+ ### Implementation of
2185
+
2186
+ ```ts
2187
+ NodeInstance.detach
2188
+ ```
2189
+
2190
+ ***
2191
+
2192
+ ### detachQuery()
2193
+
2194
+ ```ts
2195
+ detachQuery(id, account?): Promise<ModuleQueryResult<AddressPayload>>;
2196
+ ```
2197
+
2198
+ ### Parameters
2199
+
2200
+ #### id
2201
+
2202
+ `ModuleIdentifier`
2203
+
2204
+ #### account?
2205
+
2206
+ `AccountInstance`
2207
+
2208
+ ### Returns
2209
+
2210
+ `Promise`\<`ModuleQueryResult`\<`AddressPayload`\>\>
2211
+
2212
+ ### Implementation of
2213
+
2214
+ ```ts
2215
+ NodeInstance.detachQuery
2216
+ ```
2217
+
2218
+ ***
2219
+
2220
+ ### manifest()
2221
+
2222
+ ```ts
2223
+ manifest(maxDepth?): Promise<NodeManifestPayload>;
2224
+ ```
2225
+
2226
+ ### Parameters
2227
+
2228
+ #### maxDepth?
2229
+
2230
+ `number`
2231
+
2232
+ ### Returns
2233
+
2234
+ `Promise`\<`NodeManifestPayload`\>
2235
+
2236
+ ### Implementation of
2237
+
2238
+ ```ts
2239
+ NodeInstance.manifest
2240
+ ```
2241
+
2242
+ ### Overrides
2243
+
2244
+ ```ts
2245
+ ModuleWrapper.manifest
2246
+ ```
2247
+
2248
+ ***
2249
+
2250
+ ### registered()
2251
+
2252
+ ```ts
2253
+ registered(): Promise<BrandedAddress[]>;
2254
+ ```
2255
+
2256
+ ### Returns
2257
+
2258
+ `Promise`\<`BrandedAddress`[]\>
2259
+
2260
+ ### Implementation of
2261
+
2262
+ ```ts
2263
+ NodeInstance.registered
2264
+ ```
2265
+
2266
+ ***
2267
+
2268
+ ### registeredQuery()
2269
+
2270
+ ```ts
2271
+ registeredQuery(account?): Promise<ModuleQueryResult<AddressPayload>>;
2272
+ ```
2273
+
2274
+ ### Parameters
2275
+
2276
+ #### account?
2277
+
2278
+ `AccountInstance`
2279
+
2280
+ ### Returns
2281
+
2282
+ `Promise`\<`ModuleQueryResult`\<`AddressPayload`\>\>
2283
+
2284
+ ### Implementation of
18
2285
 
19
- ## Credits
2286
+ ```ts
2287
+ NodeInstance.registeredQuery
2288
+ ```
20
2289
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
2290
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2291
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2292
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/node-wrapper.svg
2293
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/node-wrapper
2294
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/node-wrapper.svg
2295
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE