@xyo-network/xl1-protocol-sdk 1.7.6 → 1.7.8

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 +3287 -3
  2. package/package.json +16 -16
package/README.md CHANGED
@@ -8,13 +8,3297 @@
8
8
  [![npm-license-badge][]](LICENSE)
9
9
  [![socket-badge][]][socket-link]
10
10
 
11
- Version: 1.7.3
12
-
13
11
  XYO Layer One SDK Protocol
14
12
 
15
13
  ## Documentation
16
14
 
17
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__xl1-protocol-sdk)
15
+ ## Reference
16
+
17
+ **@xyo-network/xl1-protocol-sdk**
18
+
19
+ ***
20
+
21
+ ## Interfaces
22
+
23
+ - [~~ChainServiceCollection~~](#interfaces/ChainServiceCollection)
24
+ - [ChainServiceCollectionV2](#interfaces/ChainServiceCollectionV2)
25
+ - [NegativeBigInt](#interfaces/NegativeBigInt)
26
+ - [PositiveBigInt](#interfaces/PositiveBigInt)
27
+ - [ChainContext](#interfaces/ChainContext)
28
+ - [ChainSummaryContext](#interfaces/ChainSummaryContext)
29
+ - [BalanceStepSummaryContext](#interfaces/BalanceStepSummaryContext)
30
+ - [StepSummaryFields](#interfaces/StepSummaryFields)
31
+ - [ChainWindow](#interfaces/ChainWindow)
32
+ - [AddressInstance](#interfaces/AddressInstance)
33
+ - [AddressStateInstance](#interfaces/AddressStateInstance)
34
+ - [BoundWitnessInstance](#interfaces/BoundWitnessInstance)
35
+ - [DataInstance](#interfaces/DataInstance)
36
+ - [TransactionFeesInstance](#interfaces/TransactionFeesInstance)
37
+ - [ObjectInstance](#interfaces/ObjectInstance)
38
+ - [PayloadInstance](#interfaces/PayloadInstance)
39
+ - [ShiftedBigIntConfig](#interfaces/ShiftedBigIntConfig)
40
+ - [SignatureInstance](#interfaces/SignatureInstance)
41
+ - [XL1AmountInstance](#interfaces/XL1AmountInstance)
42
+ - [HydratedBlockInstance](#interfaces/HydratedBlockInstance)
43
+ - [BlockWindowInstance](#interfaces/BlockWindowInstance)
44
+ - [BlockWindowStateInstance](#interfaces/BlockWindowStateInstance)
45
+ - [SignedInstance](#interfaces/SignedInstance)
46
+ - [ValidatableInstance](#interfaces/ValidatableInstance)
47
+ - [HydratedTransactionInstance](#interfaces/HydratedTransactionInstance)
48
+
49
+ ## Type Aliases
50
+
51
+ - [SignedBigInt](#type-aliases/SignedBigInt)
52
+ - [BlockNumberRange](#type-aliases/BlockNumberRange)
53
+ - [StepSummarySchema](#type-aliases/StepSummarySchema)
54
+ - [StepSummary](#type-aliases/StepSummary)
55
+ - [BalancesStepSummarySchema](#type-aliases/BalancesStepSummarySchema)
56
+ - [BalancesStepSummary](#type-aliases/BalancesStepSummary)
57
+ - [Config](#type-aliases/Config)
58
+ - [MnemonicString](#type-aliases/MnemonicString)
59
+
60
+ ## Variables
61
+
62
+ - [StepSummarySchema](#variables/StepSummarySchema)
63
+ - [BalancesStepSummarySchema](#variables/BalancesStepSummarySchema)
64
+ - [isBalancesStepSummary](#variables/isBalancesStepSummary)
65
+ - [asBalancesStepSummary](#variables/asBalancesStepSummary)
66
+ - [asBalancesStepSummaryWithStorageMeta](#variables/asBalancesStepSummaryWithStorageMeta)
67
+ - [Xl1CommonConfigSchema](#variables/Xl1CommonConfigSchema)
68
+ - [ConfigSchema](#variables/ConfigSchema)
69
+ - [TODO](#variables/TODO)
70
+ - [MnemonicStringSchema](#variables/MnemonicStringSchema)
71
+
72
+ ## Functions
73
+
74
+ - [isNegativeBigInt](#functions/isNegativeBigInt)
75
+ - [isPositiveBigInt](#functions/isPositiveBigInt)
76
+ - [parseSignedBigInt](#functions/parseSignedBigInt)
77
+ - [toSignedBigInt](#functions/toSignedBigInt)
78
+ - [toPositiveBigInt](#functions/toPositiveBigInt)
79
+ - [allHashesPresent](#functions/allHashesPresent)
80
+ - [tryHydrateBlock](#functions/tryHydrateBlock)
81
+ - [hydrateBlock](#functions/hydrateBlock)
82
+ - [flattenHydratedBlock](#functions/flattenHydratedBlock)
83
+ - [flattenHydratedBlocks](#functions/flattenHydratedBlocks)
84
+ - [transactionsFromHydratedBlock](#functions/transactionsFromHydratedBlock)
85
+ - [blockPayloadsFromHydratedBlock](#functions/blockPayloadsFromHydratedBlock)
86
+ - [balanceStepSummaryFromRange](#functions/balanceStepSummaryFromRange)
87
+ - [balanceSummary](#functions/balanceSummary)
88
+ - [calculateFramesFromRange](#functions/calculateFramesFromRange)
89
+ - [deepCalculateFramesFromRange](#functions/deepCalculateFramesFromRange)
90
+ - [hashFromBlockNumber](#functions/hashFromBlockNumber)
91
+ - [isBalancesStepSummaryWithStorageMeta](#functions/isBalancesStepSummaryWithStorageMeta)
92
+ - [getDefaultConfig](#functions/getDefaultConfig)
93
+ - [netBalancesForPayloads](#functions/netBalancesForPayloads)
94
+ - [buildTransaction](#functions/buildTransaction)
95
+ - [tryHydrateTransaction](#functions/tryHydrateTransaction)
96
+ - [hydrateTransaction](#functions/hydrateTransaction)
97
+ - [flattenHydratedTransaction](#functions/flattenHydratedTransaction)
98
+ - [flattenHydratedTransactions](#functions/flattenHydratedTransactions)
99
+ - [tryHydrateElevatedTransaction](#functions/tryHydrateElevatedTransaction)
100
+ - [hydrateElevatedTransaction](#functions/hydrateElevatedTransaction)
101
+ - [transactionBlockByteCount](#functions/transactionBlockByteCount)
102
+ - [transactionElevatedPayloadHashes](#functions/transactionElevatedPayloadHashes)
103
+ - [transactionElevatedPayloads](#functions/transactionElevatedPayloads)
104
+ - [crackOperation](#functions/crackOperation)
105
+ - [crackOperations](#functions/crackOperations)
106
+ - [transactionBytesRequiredGas](#functions/transactionBytesRequiredGas)
107
+ - [transactionRequiredGas](#functions/transactionRequiredGas)
108
+ - [getUrl](#functions/getUrl)
109
+ - [isLocalhost](#functions/isLocalhost)
110
+
111
+ ### functions
112
+
113
+ ### <a id="allHashesPresent"></a>allHashesPresent
114
+
115
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
116
+
117
+ ***
118
+
119
+ ```ts
120
+ function allHashesPresent(hashes, payloads): boolean;
121
+ ```
122
+
123
+ ## Parameters
124
+
125
+ ### hashes
126
+
127
+ `Lowercase`\<`string`\>[]
128
+
129
+ ### payloads
130
+
131
+ `WithStorageMeta`\<`Payload`\>[]
132
+
133
+ ## Returns
134
+
135
+ `boolean`
136
+
137
+ ### <a id="balanceStepSummaryFromRange"></a>balanceStepSummaryFromRange
138
+
139
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
140
+
141
+ ***
142
+
143
+ ```ts
144
+ function balanceStepSummaryFromRange(context, range): Promise<WithStorageMeta<BalancesStepSummary>>;
145
+ ```
146
+
147
+ ## Parameters
148
+
149
+ ### context
150
+
151
+ [`BalanceStepSummaryContext`](#../interfaces/BalanceStepSummaryContext)
152
+
153
+ ### range
154
+
155
+ [`BlockNumberRange`](#../type-aliases/BlockNumberRange)
156
+
157
+ ## Returns
158
+
159
+ `Promise`\<`WithStorageMeta`\<[`BalancesStepSummary`](#../type-aliases/BalancesStepSummary)\>\>
160
+
161
+ ### <a id="balanceSummary"></a>balanceSummary
162
+
163
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
164
+
165
+ ***
166
+
167
+ ```ts
168
+ function balanceSummary(context): Promise<Partial<Record<Lowercase<string>, bigint>>>;
169
+ ```
170
+
171
+ ## Parameters
172
+
173
+ ### context
174
+
175
+ [`BalanceStepSummaryContext`](#../interfaces/BalanceStepSummaryContext)
176
+
177
+ ## Returns
178
+
179
+ `Promise`\<`Partial`\<`Record`\<`Lowercase`\<`string`\>, `bigint`\>\>\>
180
+
181
+ ### <a id="blockPayloadsFromHydratedBlock"></a>blockPayloadsFromHydratedBlock
182
+
183
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
184
+
185
+ ***
186
+
187
+ ```ts
188
+ function blockPayloadsFromHydratedBlock(block): WithStorageMeta<Payload>[];
189
+ ```
190
+
191
+ ## Parameters
192
+
193
+ ### block
194
+
195
+ `HydratedBlock`
196
+
197
+ ## Returns
198
+
199
+ `WithStorageMeta`\<`Payload`\>[]
200
+
201
+ ### <a id="buildTransaction"></a>buildTransaction
202
+
203
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
204
+
205
+ ***
206
+
207
+ ```ts
208
+ function buildTransaction(
209
+ chain,
210
+ elevatedPayloads,
211
+ additionalPayloads,
212
+ signer,
213
+ nbf,
214
+ exp,
215
+ from?,
216
+ fees?): Promise<HydratedTransaction>;
217
+ ```
218
+
219
+ ## Parameters
220
+
221
+ ### chain
222
+
223
+ `Lowercase`\<`string`\>
224
+
225
+ ### elevatedPayloads
226
+
227
+ `AllowedBlockPayload`[]
228
+
229
+ ### additionalPayloads
230
+
231
+ `Payload`[]
232
+
233
+ ### signer
234
+
235
+ `AccountInstance` | `AccountInstance`[]
236
+
237
+ ### nbf
238
+
239
+ `number`
240
+
241
+ ### exp
242
+
243
+ `number`
244
+
245
+ ### from?
246
+
247
+ `Lowercase`\<`string`\>
248
+
249
+ ### fees?
250
+
251
+ `TransactionFeesBigInt` = `defaultTransactionFees`
252
+
253
+ ## Returns
254
+
255
+ `Promise`\<`HydratedTransaction`\>
256
+
257
+ ### <a id="calculateFramesFromRange"></a>calculateFramesFromRange
258
+
259
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
260
+
261
+ ***
262
+
263
+ ```ts
264
+ function calculateFramesFromRange(range, step): [BlockNumberRange[], BlockNumberRange[]];
265
+ ```
266
+
267
+ ## Parameters
268
+
269
+ ### range
270
+
271
+ [`BlockNumberRange`](#../type-aliases/BlockNumberRange)
272
+
273
+ ### step
274
+
275
+ `number`
276
+
277
+ ## Returns
278
+
279
+ \[[`BlockNumberRange`](#../type-aliases/BlockNumberRange)[], [`BlockNumberRange`](#../type-aliases/BlockNumberRange)[]\]
280
+
281
+ ### <a id="crackOperation"></a>crackOperation
282
+
283
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
284
+
285
+ ***
286
+
287
+ ```ts
288
+ function crackOperation(operation): [string, string[]];
289
+ ```
290
+
291
+ ## Parameters
292
+
293
+ ### operation
294
+
295
+ `string`
296
+
297
+ ## Returns
298
+
299
+ \[`string`, `string`[]\]
300
+
301
+ ### <a id="crackOperations"></a>crackOperations
302
+
303
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
304
+
305
+ ***
306
+
307
+ ```ts
308
+ function crackOperations(operations): [string, string[]][];
309
+ ```
310
+
311
+ ## Parameters
312
+
313
+ ### operations
314
+
315
+ `string`[]
316
+
317
+ ## Returns
318
+
319
+ \[`string`, `string`[]\][]
320
+
321
+ ### <a id="deepCalculateFramesFromRange"></a>deepCalculateFramesFromRange
322
+
323
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
324
+
325
+ ***
326
+
327
+ ```ts
328
+ function deepCalculateFramesFromRange(range, startingStep): BlockNumberRange[];
329
+ ```
330
+
331
+ ## Parameters
332
+
333
+ ### range
334
+
335
+ [`BlockNumberRange`](#../type-aliases/BlockNumberRange)
336
+
337
+ ### startingStep
338
+
339
+ `number` = `...`
340
+
341
+ ## Returns
342
+
343
+ [`BlockNumberRange`](#../type-aliases/BlockNumberRange)[]
344
+
345
+ ### <a id="flattenHydratedBlock"></a>flattenHydratedBlock
346
+
347
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
348
+
349
+ ***
350
+
351
+ ```ts
352
+ function flattenHydratedBlock(hydratedBlock): WithStorageMeta<Payload>[];
353
+ ```
354
+
355
+ ## Parameters
356
+
357
+ ### hydratedBlock
358
+
359
+ `HydratedBlock`
360
+
361
+ ## Returns
362
+
363
+ `WithStorageMeta`\<`Payload`\>[]
364
+
365
+ ### <a id="flattenHydratedBlocks"></a>flattenHydratedBlocks
366
+
367
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
368
+
369
+ ***
370
+
371
+ ```ts
372
+ function flattenHydratedBlocks(hydratedBlocks): WithStorageMeta<Payload>[];
373
+ ```
374
+
375
+ ## Parameters
376
+
377
+ ### hydratedBlocks
378
+
379
+ `HydratedBlock`[]
380
+
381
+ ## Returns
382
+
383
+ `WithStorageMeta`\<`Payload`\>[]
384
+
385
+ ### <a id="flattenHydratedTransaction"></a>flattenHydratedTransaction
386
+
387
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
388
+
389
+ ***
390
+
391
+ ```ts
392
+ function flattenHydratedTransaction(hydratedTransaction): Payload[];
393
+ ```
394
+
395
+ ## Parameters
396
+
397
+ ### hydratedTransaction
398
+
399
+ `HydratedTransaction`
400
+
401
+ ## Returns
402
+
403
+ `Payload`[]
404
+
405
+ ### <a id="flattenHydratedTransactions"></a>flattenHydratedTransactions
406
+
407
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
408
+
409
+ ***
410
+
411
+ ```ts
412
+ function flattenHydratedTransactions(hydratedTransactions): Payload[];
413
+ ```
414
+
415
+ ## Parameters
416
+
417
+ ### hydratedTransactions
418
+
419
+ `HydratedTransaction`[]
420
+
421
+ ## Returns
422
+
423
+ `Payload`[]
424
+
425
+ ### <a id="getDefaultConfig"></a>getDefaultConfig
426
+
427
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
428
+
429
+ ***
430
+
431
+ ```ts
432
+ function getDefaultConfig(): object;
433
+ ```
434
+
435
+ ## Returns
436
+
437
+ `object`
438
+
439
+ ### silent
440
+
441
+ ```ts
442
+ silent: boolean;
443
+ ```
444
+
445
+ ### logLevel
446
+
447
+ ```ts
448
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
449
+ ```
450
+
451
+ ### api
452
+
453
+ ```ts
454
+ api: object;
455
+ ```
456
+
457
+ ### api.mnemonic?
458
+
459
+ ```ts
460
+ optional mnemonic: string;
461
+ ```
462
+
463
+ ### api.host
464
+
465
+ ```ts
466
+ host: string;
467
+ ```
468
+
469
+ ### api.port
470
+
471
+ ```ts
472
+ port: number;
473
+ ```
474
+
475
+ ### app
476
+
477
+ ```ts
478
+ app: object;
479
+ ```
480
+
481
+ ### app.port
482
+
483
+ ```ts
484
+ port: number;
485
+ ```
486
+
487
+ ### chain
488
+
489
+ ```ts
490
+ chain: object;
491
+ ```
492
+
493
+ ### chain.id?
494
+
495
+ ```ts
496
+ optional id: string;
497
+ ```
498
+
499
+ ### evm
500
+
501
+ ```ts
502
+ evm: object;
503
+ ```
504
+
505
+ ### evm.chainId?
506
+
507
+ ```ts
508
+ optional chainId: string;
509
+ ```
510
+
511
+ ### evm.infura?
512
+
513
+ ```ts
514
+ optional infura: object;
515
+ ```
516
+
517
+ ### evm.infura.projectId?
518
+
519
+ ```ts
520
+ optional projectId: string;
521
+ ```
522
+
523
+ ### evm.infura.projectSecret?
524
+
525
+ ```ts
526
+ optional projectSecret: string;
527
+ ```
528
+
529
+ ### evm.jsonRpc?
530
+
531
+ ```ts
532
+ optional jsonRpc: object;
533
+ ```
534
+
535
+ ### evm.jsonRpc.url?
536
+
537
+ ```ts
538
+ optional url: string;
539
+ ```
540
+
541
+ ### producer
542
+
543
+ ```ts
544
+ producer: object;
545
+ ```
546
+
547
+ ### producer.healthCheckPort?
548
+
549
+ ```ts
550
+ optional healthCheckPort: number;
551
+ ```
552
+
553
+ ### producer.minStake
554
+
555
+ ```ts
556
+ minStake: number;
557
+ ```
558
+
559
+ ### producer.mnemonic?
560
+
561
+ ```ts
562
+ optional mnemonic: string;
563
+ ```
564
+
565
+ ### producer.port
566
+
567
+ ```ts
568
+ port: number;
569
+ ```
570
+
571
+ ### producer.disableIntentRedeclaration?
572
+
573
+ ```ts
574
+ optional disableIntentRedeclaration: boolean;
575
+ ```
576
+
577
+ ### producer.rewardAddress?
578
+
579
+ ```ts
580
+ optional rewardAddress: string;
581
+ ```
582
+
583
+ ### storage
584
+
585
+ ```ts
586
+ storage: object;
587
+ ```
588
+
589
+ ### storage.mongo?
590
+
591
+ ```ts
592
+ optional mongo: object;
593
+ ```
594
+
595
+ ### storage.mongo.connectionString?
596
+
597
+ ```ts
598
+ optional connectionString: string;
599
+ ```
600
+
601
+ ### storage.mongo.database?
602
+
603
+ ```ts
604
+ optional database: string;
605
+ ```
606
+
607
+ ### storage.mongo.domain?
608
+
609
+ ```ts
610
+ optional domain: string;
611
+ ```
612
+
613
+ ### storage.mongo.password?
614
+
615
+ ```ts
616
+ optional password: string;
617
+ ```
618
+
619
+ ### storage.mongo.username?
620
+
621
+ ```ts
622
+ optional username: string;
623
+ ```
624
+
625
+ ### storage.root?
626
+
627
+ ```ts
628
+ optional root: string;
629
+ ```
630
+
631
+ ### telemetry
632
+
633
+ ```ts
634
+ telemetry: object;
635
+ ```
636
+
637
+ ### telemetry.otel?
638
+
639
+ ```ts
640
+ optional otel: object;
641
+ ```
642
+
643
+ ### telemetry.otel.otlpEndpoint?
644
+
645
+ ```ts
646
+ optional otlpEndpoint: string;
647
+ ```
648
+
649
+ ### <a id="getUrl"></a>getUrl
650
+
651
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
652
+
653
+ ***
654
+
655
+ ```ts
656
+ function getUrl(host, port): string;
657
+ ```
658
+
659
+ ## Parameters
660
+
661
+ ### host
662
+
663
+ `string`
664
+
665
+ ### port
666
+
667
+ `number`
668
+
669
+ ## Returns
670
+
671
+ `string`
672
+
673
+ ### <a id="hashFromBlockNumber"></a>hashFromBlockNumber
674
+
675
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
676
+
677
+ ***
678
+
679
+ ```ts
680
+ function hashFromBlockNumber(context, blockNumber): Promise<Lowercase<string>>;
681
+ ```
682
+
683
+ ## Parameters
684
+
685
+ ### context
686
+
687
+ [`ChainContext`](#../interfaces/ChainContext)
688
+
689
+ ### blockNumber
690
+
691
+ `number`
692
+
693
+ ## Returns
694
+
695
+ `Promise`\<`Lowercase`\<`string`\>\>
696
+
697
+ ### <a id="hydrateBlock"></a>hydrateBlock
698
+
699
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
700
+
701
+ ***
702
+
703
+ ```ts
704
+ function hydrateBlock(
705
+ archivist,
706
+ hash,
707
+ maxDepth,
708
+ minDepth): Promise<HydratedBlock>;
709
+ ```
710
+
711
+ ## Parameters
712
+
713
+ ### archivist
714
+
715
+ `ReadArchivist`
716
+
717
+ ### hash
718
+
719
+ `Lowercase`\<`string`\>
720
+
721
+ ### maxDepth
722
+
723
+ `number` = `1`
724
+
725
+ ### minDepth
726
+
727
+ `number` = `maxDepth`
728
+
729
+ ## Returns
730
+
731
+ `Promise`\<`HydratedBlock`\>
732
+
733
+ ### <a id="hydrateElevatedTransaction"></a>hydrateElevatedTransaction
734
+
735
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
736
+
737
+ ***
738
+
739
+ ```ts
740
+ function hydrateElevatedTransaction(archivist, hash): Promise<HydratedTransaction>;
741
+ ```
742
+
743
+ ## Parameters
744
+
745
+ ### archivist
746
+
747
+ `ReadArchivist`
748
+
749
+ ### hash
750
+
751
+ `Lowercase`\<`string`\>
752
+
753
+ ## Returns
754
+
755
+ `Promise`\<`HydratedTransaction`\>
756
+
757
+ ### <a id="hydrateTransaction"></a>hydrateTransaction
758
+
759
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
760
+
761
+ ***
762
+
763
+ ```ts
764
+ function hydrateTransaction(archivist, hash): Promise<HydratedTransaction>;
765
+ ```
766
+
767
+ ## Parameters
768
+
769
+ ### archivist
770
+
771
+ `ReadArchivist`
772
+
773
+ ### hash
774
+
775
+ `Lowercase`\<`string`\>
776
+
777
+ ## Returns
778
+
779
+ `Promise`\<`HydratedTransaction`\>
780
+
781
+ ### <a id="isBalancesStepSummaryWithStorageMeta"></a>isBalancesStepSummaryWithStorageMeta
782
+
783
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
784
+
785
+ ***
786
+
787
+ ```ts
788
+ function isBalancesStepSummaryWithStorageMeta(value): value is WithStorageMeta<BalancesStepSummary>;
789
+ ```
790
+
791
+ Identity function for determining if an object is an BalancesStepSummary with Storage Meta
792
+
793
+ ## Parameters
794
+
795
+ ### value
796
+
797
+ `unknown`
798
+
799
+ ## Returns
800
+
801
+ `value is WithStorageMeta<BalancesStepSummary>`
802
+
803
+ ### <a id="isLocalhost"></a>isLocalhost
804
+
805
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
806
+
807
+ ***
808
+
809
+ ```ts
810
+ function isLocalhost(hostname): boolean;
811
+ ```
812
+
813
+ ## Parameters
814
+
815
+ ### hostname
816
+
817
+ `string`
818
+
819
+ ## Returns
820
+
821
+ `boolean`
822
+
823
+ ### <a id="isNegativeBigInt"></a>isNegativeBigInt
824
+
825
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
826
+
827
+ ***
828
+
829
+ ```ts
830
+ function isNegativeBigInt(value): value is NegativeBigInt;
831
+ ```
832
+
833
+ ## Parameters
834
+
835
+ ### value
836
+
837
+ `unknown`
838
+
839
+ ## Returns
840
+
841
+ `value is NegativeBigInt`
842
+
843
+ ### <a id="isPositiveBigInt"></a>isPositiveBigInt
844
+
845
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
846
+
847
+ ***
848
+
849
+ ```ts
850
+ function isPositiveBigInt(value): value is PositiveBigInt;
851
+ ```
852
+
853
+ ## Parameters
854
+
855
+ ### value
856
+
857
+ `unknown`
858
+
859
+ ## Returns
860
+
861
+ `value is PositiveBigInt`
862
+
863
+ ### <a id="netBalancesForPayloads"></a>netBalancesForPayloads
864
+
865
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
866
+
867
+ ***
868
+
869
+ ```ts
870
+ function netBalancesForPayloads(payloads): Record<Lowercase<string>, bigint>;
871
+ ```
872
+
873
+ ## Parameters
874
+
875
+ ### payloads
876
+
877
+ `Payload`[]
878
+
879
+ ## Returns
880
+
881
+ `Record`\<`Lowercase`\<`string`\>, `bigint`\>
882
+
883
+ ### <a id="parseSignedBigInt"></a>parseSignedBigInt
884
+
885
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
886
+
887
+ ***
888
+
889
+ ```ts
890
+ function parseSignedBigInt(value): bigint;
891
+ ```
892
+
893
+ ## Parameters
894
+
895
+ ### value
896
+
897
+ [`SignedBigInt`](#../type-aliases/SignedBigInt)
898
+
899
+ ## Returns
900
+
901
+ `bigint`
902
+
903
+ ### <a id="toPositiveBigInt"></a>toPositiveBigInt
904
+
905
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
906
+
907
+ ***
908
+
909
+ ```ts
910
+ function toPositiveBigInt(value): PositiveBigInt;
911
+ ```
912
+
913
+ ## Parameters
914
+
915
+ ### value
916
+
917
+ `unknown`
918
+
919
+ ## Returns
920
+
921
+ [`PositiveBigInt`](#../interfaces/PositiveBigInt)
922
+
923
+ ### <a id="toSignedBigInt"></a>toSignedBigInt
924
+
925
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
926
+
927
+ ***
928
+
929
+ ```ts
930
+ function toSignedBigInt(value): SignedBigInt;
931
+ ```
932
+
933
+ ## Parameters
934
+
935
+ ### value
936
+
937
+ `bigint`
938
+
939
+ ## Returns
940
+
941
+ [`SignedBigInt`](#../type-aliases/SignedBigInt)
942
+
943
+ ### <a id="transactionBlockByteCount"></a>transactionBlockByteCount
944
+
945
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
946
+
947
+ ***
948
+
949
+ ```ts
950
+ function transactionBlockByteCount(__namedParameters): number;
951
+ ```
952
+
953
+ The number of bytes that a transaction and its payloads will take up in a block
954
+
955
+ ## Parameters
956
+
957
+ ### \_\_namedParameters
958
+
959
+ `HydratedTransaction`
960
+
961
+ ## Returns
962
+
963
+ `number`
964
+
965
+ ### <a id="transactionBytesRequiredGas"></a>transactionBytesRequiredGas
966
+
967
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
968
+
969
+ ***
970
+
971
+ ```ts
972
+ function transactionBytesRequiredGas(__namedParameters): AttoXL1;
973
+ ```
974
+
975
+ The required gas for the byte storage on the block chain for a transaction
976
+
977
+ ## Parameters
978
+
979
+ ### \_\_namedParameters
980
+
981
+ `HydratedTransaction`
982
+
983
+ ## Returns
984
+
985
+ `AttoXL1`
986
+
987
+ ### <a id="transactionElevatedPayloadHashes"></a>transactionElevatedPayloadHashes
988
+
989
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
990
+
991
+ ***
992
+
993
+ ```ts
994
+ function transactionElevatedPayloadHashes(transaction): Lowercase<string>[];
995
+ ```
996
+
997
+ ## Parameters
998
+
999
+ ### transaction
1000
+
1001
+ `TransactionBoundWitness`
1002
+
1003
+ ## Returns
1004
+
1005
+ `Lowercase`\<`string`\>[]
1006
+
1007
+ ### <a id="transactionElevatedPayloads"></a>transactionElevatedPayloads
1008
+
1009
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1010
+
1011
+ ***
1012
+
1013
+ ```ts
1014
+ function transactionElevatedPayloads(__namedParameters): WithHashStorageMeta<Payload>[];
1015
+ ```
1016
+
1017
+ ## Parameters
1018
+
1019
+ ### \_\_namedParameters
1020
+
1021
+ `HydratedTransaction`
1022
+
1023
+ ## Returns
1024
+
1025
+ `WithHashStorageMeta`\<`Payload`\>[]
1026
+
1027
+ ### <a id="transactionRequiredGas"></a>transactionRequiredGas
1028
+
1029
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1030
+
1031
+ ***
1032
+
1033
+ ```ts
1034
+ function transactionRequiredGas(hydratedTransaction): AttoXL1;
1035
+ ```
1036
+
1037
+ ## Parameters
1038
+
1039
+ ### hydratedTransaction
1040
+
1041
+ `HydratedTransaction`
1042
+
1043
+ ## Returns
1044
+
1045
+ `AttoXL1`
1046
+
1047
+ ### <a id="transactionsFromHydratedBlock"></a>transactionsFromHydratedBlock
1048
+
1049
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1050
+
1051
+ ***
1052
+
1053
+ ```ts
1054
+ function transactionsFromHydratedBlock(block): WithStorageMeta<TransactionBoundWitness>[];
1055
+ ```
1056
+
1057
+ ## Parameters
1058
+
1059
+ ### block
1060
+
1061
+ `HydratedBlock`
1062
+
1063
+ ## Returns
1064
+
1065
+ `WithStorageMeta`\<`TransactionBoundWitness`\>[]
1066
+
1067
+ ### <a id="tryHydrateBlock"></a>tryHydrateBlock
1068
+
1069
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1070
+
1071
+ ***
1072
+
1073
+ ```ts
1074
+ function tryHydrateBlock(
1075
+ archivist,
1076
+ hash,
1077
+ maxDepth): Promise<undefined | HydratedBlock>;
1078
+ ```
1079
+
1080
+ ## Parameters
1081
+
1082
+ ### archivist
1083
+
1084
+ `ReadArchivist`
1085
+
1086
+ ### hash
1087
+
1088
+ `Lowercase`\<`string`\>
1089
+
1090
+ ### maxDepth
1091
+
1092
+ `number` = `1`
1093
+
1094
+ ## Returns
1095
+
1096
+ `Promise`\<`undefined` \| `HydratedBlock`\>
1097
+
1098
+ ### <a id="tryHydrateElevatedTransaction"></a>tryHydrateElevatedTransaction
1099
+
1100
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1101
+
1102
+ ***
1103
+
1104
+ ```ts
1105
+ function tryHydrateElevatedTransaction(archivist, hash): Promise<undefined | HydratedTransaction>;
1106
+ ```
1107
+
1108
+ ## Parameters
1109
+
1110
+ ### archivist
1111
+
1112
+ `ReadArchivist`
1113
+
1114
+ ### hash
1115
+
1116
+ `Lowercase`\<`string`\>
1117
+
1118
+ ## Returns
1119
+
1120
+ `Promise`\<`undefined` \| `HydratedTransaction`\>
1121
+
1122
+ ### <a id="tryHydrateTransaction"></a>tryHydrateTransaction
1123
+
1124
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1125
+
1126
+ ***
1127
+
1128
+ ```ts
1129
+ function tryHydrateTransaction(archivist, hash): Promise<undefined | HydratedTransaction>;
1130
+ ```
1131
+
1132
+ ## Parameters
1133
+
1134
+ ### archivist
1135
+
1136
+ `ReadArchivist`
1137
+
1138
+ ### hash
1139
+
1140
+ `Lowercase`\<`string`\>
1141
+
1142
+ ## Returns
1143
+
1144
+ `Promise`\<`undefined` \| `HydratedTransaction`\>
1145
+
1146
+ ### interfaces
1147
+
1148
+ ### <a id="AddressInstance"></a>AddressInstance
1149
+
1150
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1151
+
1152
+ ***
1153
+
1154
+ ## Extends
1155
+
1156
+ - [`ValidatableInstance`](#ValidatableInstance)
1157
+
1158
+ ## Extended by
1159
+
1160
+ - [`AddressStateInstance`](#AddressStateInstance)
1161
+
1162
+ ## Properties
1163
+
1164
+ ### address
1165
+
1166
+ ```ts
1167
+ address: Lowercase<string>;
1168
+ ```
1169
+
1170
+ ## Methods
1171
+
1172
+ ### validate()
1173
+
1174
+ ```ts
1175
+ validate(): Promisable<Error[]>;
1176
+ ```
1177
+
1178
+ ### Returns
1179
+
1180
+ `Promisable`\<`Error`[]\>
1181
+
1182
+ ### Inherited from
1183
+
1184
+ [`ValidatableInstance`](#ValidatableInstance).[`validate`](ValidatableInstance.md#validate)
1185
+
1186
+ ### <a id="AddressStateInstance"></a>AddressStateInstance
1187
+
1188
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1189
+
1190
+ ***
1191
+
1192
+ ## Extends
1193
+
1194
+ - [`AddressInstance`](#AddressInstance).[`BlockWindowStateInstance`](#BlockWindowStateInstance)
1195
+
1196
+ ## Properties
1197
+
1198
+ ### address
1199
+
1200
+ ```ts
1201
+ address: Lowercase<string>;
1202
+ ```
1203
+
1204
+ ### Inherited from
1205
+
1206
+ [`AddressInstance`](#AddressInstance).[`address`](AddressInstance.md#address)
1207
+
1208
+ ***
1209
+
1210
+ ### blockWindow
1211
+
1212
+ ```ts
1213
+ blockWindow: BlockWindowInstance;
1214
+ ```
1215
+
1216
+ ### Inherited from
1217
+
1218
+ [`BlockWindowStateInstance`](#BlockWindowStateInstance).[`blockWindow`](BlockWindowStateInstance.md#blockwindow)
1219
+
1220
+ ## Methods
1221
+
1222
+ ### balance()
1223
+
1224
+ ```ts
1225
+ balance(): Promisable<[XL1AmountInstance, BlockWindowInstance]>;
1226
+ ```
1227
+
1228
+ ### Returns
1229
+
1230
+ `Promisable`\<\[[`XL1AmountInstance`](#XL1AmountInstance), [`BlockWindowInstance`](#BlockWindowInstance)\]\>
1231
+
1232
+ ***
1233
+
1234
+ ### validate()
1235
+
1236
+ ```ts
1237
+ validate(): Promisable<Error[]>;
1238
+ ```
1239
+
1240
+ ### Returns
1241
+
1242
+ `Promisable`\<`Error`[]\>
1243
+
1244
+ ### Inherited from
1245
+
1246
+ [`AddressInstance`](#AddressInstance).[`validate`](AddressInstance.md#validate)
1247
+
1248
+ ### <a id="BalanceStepSummaryContext"></a>BalanceStepSummaryContext
1249
+
1250
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1251
+
1252
+ ***
1253
+
1254
+ ## Extends
1255
+
1256
+ - [`ChainSummaryContext`](#ChainSummaryContext)\<[`BalancesStepSummary`](#../type-aliases/BalancesStepSummary)\>
1257
+
1258
+ ## Properties
1259
+
1260
+ ### chainArchivist
1261
+
1262
+ ```ts
1263
+ chainArchivist: ReadArchivist;
1264
+ ```
1265
+
1266
+ ### Inherited from
1267
+
1268
+ [`ChainSummaryContext`](#ChainSummaryContext).[`chainArchivist`](ChainSummaryContext.md#chainarchivist)
1269
+
1270
+ ***
1271
+
1272
+ ### head
1273
+
1274
+ ```ts
1275
+ head: Lowercase<string>;
1276
+ ```
1277
+
1278
+ ### Inherited from
1279
+
1280
+ [`ChainSummaryContext`](#ChainSummaryContext).[`head`](ChainSummaryContext.md#head)
1281
+
1282
+ ***
1283
+
1284
+ ### windowSize?
1285
+
1286
+ ```ts
1287
+ optional windowSize: number;
1288
+ ```
1289
+
1290
+ ### Inherited from
1291
+
1292
+ [`ChainSummaryContext`](#ChainSummaryContext).[`windowSize`](ChainSummaryContext.md#windowsize)
1293
+
1294
+ ***
1295
+
1296
+ ### summaryRepository
1297
+
1298
+ ```ts
1299
+ summaryRepository: PayloadRepository<Lowercase<string>, BalancesStepSummary>;
1300
+ ```
1301
+
1302
+ ### Inherited from
1303
+
1304
+ [`ChainSummaryContext`](#ChainSummaryContext).[`summaryRepository`](ChainSummaryContext.md#summaryrepository)
1305
+
1306
+ ### <a id="BlockWindowInstance"></a>BlockWindowInstance
1307
+
1308
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1309
+
1310
+ ***
1311
+
1312
+ ## Properties
1313
+
1314
+ ### count
1315
+
1316
+ ```ts
1317
+ count: number;
1318
+ ```
1319
+
1320
+ ***
1321
+
1322
+ ### numberRange
1323
+
1324
+ ```ts
1325
+ numberRange: [number, number];
1326
+ ```
1327
+
1328
+ ***
1329
+
1330
+ ### range
1331
+
1332
+ ```ts
1333
+ range: [Lowercase<string>, Lowercase<string>];
1334
+ ```
1335
+
1336
+ ### <a id="BlockWindowStateInstance"></a>BlockWindowStateInstance
1337
+
1338
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1339
+
1340
+ ***
1341
+
1342
+ ## Extended by
1343
+
1344
+ - [`AddressStateInstance`](#AddressStateInstance)
1345
+
1346
+ ## Properties
1347
+
1348
+ ### blockWindow
1349
+
1350
+ ```ts
1351
+ blockWindow: BlockWindowInstance;
1352
+ ```
1353
+
1354
+ ### <a id="BoundWitnessInstance"></a>BoundWitnessInstance
1355
+
1356
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1357
+
1358
+ ***
1359
+
1360
+ ## Extends
1361
+
1362
+ - [`PayloadInstance`](#PayloadInstance)\<`TBoundWitness`\>
1363
+
1364
+ ## Type Parameters
1365
+
1366
+ ### TBoundWitness
1367
+
1368
+ `TBoundWitness` *extends* `BoundWitness` = `BoundWitness`
1369
+
1370
+ ### TPayload
1371
+
1372
+ `TPayload` *extends* `Payload` = `Payload`
1373
+
1374
+ ## Properties
1375
+
1376
+ ### payloadCount
1377
+
1378
+ ```ts
1379
+ payloadCount: number;
1380
+ ```
1381
+
1382
+ ***
1383
+
1384
+ ### payloads
1385
+
1386
+ ```ts
1387
+ payloads: PayloadInstance<TPayload>[];
1388
+ ```
1389
+
1390
+ ***
1391
+
1392
+ ### data
1393
+
1394
+ ```ts
1395
+ data: TBoundWitness;
1396
+ ```
1397
+
1398
+ ### Inherited from
1399
+
1400
+ [`PayloadInstance`](#PayloadInstance).[`data`](PayloadInstance.md#data)
1401
+
1402
+ ## Methods
1403
+
1404
+ ### payload()
1405
+
1406
+ ```ts
1407
+ payload(index): undefined | PayloadInstance<TPayload>;
1408
+ ```
1409
+
1410
+ ### Parameters
1411
+
1412
+ #### index
1413
+
1414
+ `number`
1415
+
1416
+ ### Returns
1417
+
1418
+ `undefined` \| [`PayloadInstance`](#PayloadInstance)\<`TPayload`\>
1419
+
1420
+ ***
1421
+
1422
+ ### validate()
1423
+
1424
+ ```ts
1425
+ validate(): Promisable<Error[]>;
1426
+ ```
1427
+
1428
+ ### Returns
1429
+
1430
+ `Promisable`\<`Error`[]\>
1431
+
1432
+ ### Inherited from
1433
+
1434
+ [`PayloadInstance`](#PayloadInstance).[`validate`](PayloadInstance.md#validate)
1435
+
1436
+ ### <a id="ChainContext"></a>ChainContext
1437
+
1438
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1439
+
1440
+ ***
1441
+
1442
+ ## Extended by
1443
+
1444
+ - [`ChainSummaryContext`](#ChainSummaryContext)
1445
+
1446
+ ## Properties
1447
+
1448
+ ### chainArchivist
1449
+
1450
+ ```ts
1451
+ chainArchivist: ReadArchivist;
1452
+ ```
1453
+
1454
+ ***
1455
+
1456
+ ### head
1457
+
1458
+ ```ts
1459
+ head: Lowercase<string>;
1460
+ ```
1461
+
1462
+ ***
1463
+
1464
+ ### windowSize?
1465
+
1466
+ ```ts
1467
+ optional windowSize: number;
1468
+ ```
1469
+
1470
+ ### <a id="ChainServiceCollection"></a>ChainServiceCollection
1471
+
1472
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1473
+
1474
+ ***
1475
+
1476
+ ## Deprecated
1477
+
1478
+ use ChainServiceCollectionV2
1479
+
1480
+ ## Properties
1481
+
1482
+ ### ~~account~~
1483
+
1484
+ ```ts
1485
+ account: WalletInstance;
1486
+ ```
1487
+
1488
+ The account which is used to sign transactions
1489
+
1490
+ ***
1491
+
1492
+ ### ~~balanceService~~
1493
+
1494
+ ```ts
1495
+ balanceService: AccountBalanceService;
1496
+ ```
1497
+
1498
+ Services for working with account balances
1499
+
1500
+ ***
1501
+
1502
+ ### ~~chainArchivist~~
1503
+
1504
+ ```ts
1505
+ chainArchivist: ArchivistInstance;
1506
+ ```
1507
+
1508
+ The archivist which the chain data is stored in
1509
+
1510
+ ***
1511
+
1512
+ ### ~~chainContractViewer~~
1513
+
1514
+ ```ts
1515
+ chainContractViewer: ChainContractViewer;
1516
+ ```
1517
+
1518
+ Service for viewing codified chain information
1519
+ from a contract
1520
+
1521
+ ***
1522
+
1523
+ ### ~~chainIterator?~~
1524
+
1525
+ ```ts
1526
+ optional chainIterator: EventingChainBlockNumberIterator;
1527
+ ```
1528
+
1529
+ The chain iterator
1530
+
1531
+ ***
1532
+
1533
+ ### ~~chainStakeViewer~~
1534
+
1535
+ ```ts
1536
+ chainStakeViewer: ChainStakeViewer;
1537
+ ```
1538
+
1539
+ Service for viewing stake information
1540
+
1541
+ ***
1542
+
1543
+ ### ~~chainStaker~~
1544
+
1545
+ ```ts
1546
+ chainStaker: ChainStaker;
1547
+ ```
1548
+
1549
+ Service for staking
1550
+
1551
+ ***
1552
+
1553
+ ### ~~chainSubmissionsArchivistWrite~~
1554
+
1555
+ ```ts
1556
+ chainSubmissionsArchivistWrite: WriteArchivist;
1557
+ ```
1558
+
1559
+ The archivist which the chain submissions are stored in
1560
+
1561
+ ***
1562
+
1563
+ ### ~~electionService~~
1564
+
1565
+ ```ts
1566
+ electionService: ElectionService;
1567
+ ```
1568
+
1569
+ Service for determining leader election
1570
+
1571
+ ***
1572
+
1573
+ ### ~~pendingBundledTransactionsArchivistWrite~~
1574
+
1575
+ ```ts
1576
+ pendingBundledTransactionsArchivistWrite: ArchivistInstance;
1577
+ ```
1578
+
1579
+ The archivist which the pending transactions are stored
1580
+ as bundled transactions
1581
+
1582
+ ***
1583
+
1584
+ ### ~~producer~~
1585
+
1586
+ ```ts
1587
+ producer: BlockProducerService;
1588
+ ```
1589
+
1590
+ The block producer service
1591
+
1592
+ ***
1593
+
1594
+ ### ~~rewardService~~
1595
+
1596
+ ```ts
1597
+ rewardService: BlockRewardService;
1598
+ ```
1599
+
1600
+ Service response for calculating block rewards
1601
+
1602
+ ***
1603
+
1604
+ ### ~~stakeIntentService~~
1605
+
1606
+ ```ts
1607
+ stakeIntentService: StakeIntentService;
1608
+ ```
1609
+
1610
+ Services for working with staked intents
1611
+
1612
+ ### <a id="ChainServiceCollectionV2"></a>ChainServiceCollectionV2
1613
+
1614
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1615
+
1616
+ ***
1617
+
1618
+ ## Properties
1619
+
1620
+ ### account
1621
+
1622
+ ```ts
1623
+ account: WalletInstance;
1624
+ ```
1625
+
1626
+ The account which is used to sign transactions
1627
+
1628
+ ***
1629
+
1630
+ ### balanceService
1631
+
1632
+ ```ts
1633
+ balanceService: AccountBalanceServiceV2;
1634
+ ```
1635
+
1636
+ Services for working with account balances
1637
+
1638
+ ***
1639
+
1640
+ ### chainArchivist
1641
+
1642
+ ```ts
1643
+ chainArchivist: ArchivistInstance;
1644
+ ```
1645
+
1646
+ The archivist which the chain data is stored in
1647
+
1648
+ ***
1649
+
1650
+ ### chainContractViewer
1651
+
1652
+ ```ts
1653
+ chainContractViewer: ChainContractViewer;
1654
+ ```
1655
+
1656
+ Service for viewing codified chain information
1657
+ from a contract
1658
+
1659
+ ***
1660
+
1661
+ ### chainIterator?
1662
+
1663
+ ```ts
1664
+ optional chainIterator: EventingChainBlockNumberIterator;
1665
+ ```
1666
+
1667
+ The chain iterator
1668
+
1669
+ ***
1670
+
1671
+ ### chainStakeViewer
1672
+
1673
+ ```ts
1674
+ chainStakeViewer: ChainStakeViewer;
1675
+ ```
1676
+
1677
+ Service for viewing stake information
1678
+
1679
+ ***
1680
+
1681
+ ### chainStaker
1682
+
1683
+ ```ts
1684
+ chainStaker: ChainStaker;
1685
+ ```
1686
+
1687
+ Service for staking
1688
+
1689
+ ***
1690
+
1691
+ ### chainSubmissionsArchivistWrite
1692
+
1693
+ ```ts
1694
+ chainSubmissionsArchivistWrite: WriteArchivist;
1695
+ ```
1696
+
1697
+ The archivist which the chain submissions are stored in
1698
+
1699
+ ***
1700
+
1701
+ ### electionService
1702
+
1703
+ ```ts
1704
+ electionService: ElectionService;
1705
+ ```
1706
+
1707
+ Service for determining leader election
1708
+
1709
+ ***
1710
+
1711
+ ### pendingBundledTransactionsArchivistWrite
1712
+
1713
+ ```ts
1714
+ pendingBundledTransactionsArchivistWrite: ArchivistInstance;
1715
+ ```
1716
+
1717
+ The archivist which the pending transactions are stored
1718
+ as bundled transactions
1719
+
1720
+ ***
1721
+
1722
+ ### pendingTransactionsService
1723
+
1724
+ ```ts
1725
+ pendingTransactionsService: PendingTransactionsService;
1726
+ ```
1727
+
1728
+ Service for managing pending transactions
1729
+
1730
+ ***
1731
+
1732
+ ### producer
1733
+
1734
+ ```ts
1735
+ producer: BlockProducerService;
1736
+ ```
1737
+
1738
+ The block producer service
1739
+
1740
+ ***
1741
+
1742
+ ### rewardService
1743
+
1744
+ ```ts
1745
+ rewardService: BlockRewardService;
1746
+ ```
1747
+
1748
+ Service response for calculating block rewards
1749
+
1750
+ ***
1751
+
1752
+ ### stakeIntentService
1753
+
1754
+ ```ts
1755
+ stakeIntentService: StakeIntentService;
1756
+ ```
1757
+
1758
+ Services for working with staked intents
1759
+
1760
+ ### <a id="ChainSummaryContext"></a>ChainSummaryContext
1761
+
1762
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1763
+
1764
+ ***
1765
+
1766
+ ## Extends
1767
+
1768
+ - [`ChainContext`](#ChainContext)
1769
+
1770
+ ## Extended by
1771
+
1772
+ - [`BalanceStepSummaryContext`](#BalanceStepSummaryContext)
1773
+
1774
+ ## Type Parameters
1775
+
1776
+ ### T
1777
+
1778
+ `T` *extends* `Payload`
1779
+
1780
+ ## Properties
1781
+
1782
+ ### chainArchivist
1783
+
1784
+ ```ts
1785
+ chainArchivist: ReadArchivist;
1786
+ ```
1787
+
1788
+ ### Inherited from
1789
+
1790
+ [`ChainContext`](#ChainContext).[`chainArchivist`](ChainContext.md#chainarchivist)
1791
+
1792
+ ***
1793
+
1794
+ ### head
1795
+
1796
+ ```ts
1797
+ head: Lowercase<string>;
1798
+ ```
1799
+
1800
+ ### Inherited from
1801
+
1802
+ [`ChainContext`](#ChainContext).[`head`](ChainContext.md#head)
1803
+
1804
+ ***
1805
+
1806
+ ### windowSize?
1807
+
1808
+ ```ts
1809
+ optional windowSize: number;
1810
+ ```
1811
+
1812
+ ### Inherited from
1813
+
1814
+ [`ChainContext`](#ChainContext).[`windowSize`](ChainContext.md#windowsize)
1815
+
1816
+ ***
1817
+
1818
+ ### summaryRepository
1819
+
1820
+ ```ts
1821
+ summaryRepository: PayloadRepository<Lowercase<string>, T>;
1822
+ ```
1823
+
1824
+ ### <a id="ChainWindow"></a>ChainWindow
1825
+
1826
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1827
+
1828
+ ***
1829
+
1830
+ ## Properties
1831
+
1832
+ ### depth
1833
+
1834
+ ```ts
1835
+ depth: number;
1836
+ ```
1837
+
1838
+ ***
1839
+
1840
+ ### head
1841
+
1842
+ ```ts
1843
+ head: Lowercase<string>;
1844
+ ```
1845
+
1846
+ ### <a id="DataInstance"></a>DataInstance
1847
+
1848
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1849
+
1850
+ ***
1851
+
1852
+ ## Extended by
1853
+
1854
+ - [`ObjectInstance`](#ObjectInstance)
1855
+
1856
+ ## Type Parameters
1857
+
1858
+ ### T
1859
+
1860
+ `T`
1861
+
1862
+ ## Properties
1863
+
1864
+ ### data
1865
+
1866
+ ```ts
1867
+ data: T;
1868
+ ```
1869
+
1870
+ ### <a id="HydratedBlockInstance"></a>HydratedBlockInstance
1871
+
1872
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
1873
+
1874
+ ***
1875
+
1876
+ ## Extends
1877
+
1878
+ - `BlockFieldsInstance`\<[`HydratedTransactionInstance`](#HydratedTransactionInstance)\>.`HydratedBoundWitnessInstance`\<`T`\>.[`SignedInstance`](#SignedInstance)
1879
+
1880
+ ## Type Parameters
1881
+
1882
+ ### T
1883
+
1884
+ `T` *extends* `HydratedBlock` = `HydratedBlock`
1885
+
1886
+ ## Properties
1887
+
1888
+ ### data
1889
+
1890
+ ```ts
1891
+ data: T;
1892
+ ```
1893
+
1894
+ ### Inherited from
1895
+
1896
+ ```ts
1897
+ HydratedBoundWitnessInstance.data
1898
+ ```
1899
+
1900
+ ***
1901
+
1902
+ ### boundWitness
1903
+
1904
+ ```ts
1905
+ boundWitness: T[0];
1906
+ ```
1907
+
1908
+ ### Inherited from
1909
+
1910
+ ```ts
1911
+ HydratedBoundWitnessInstance.boundWitness
1912
+ ```
1913
+
1914
+ ***
1915
+
1916
+ ### payloadCount
1917
+
1918
+ ```ts
1919
+ payloadCount: number;
1920
+ ```
1921
+
1922
+ ### Inherited from
1923
+
1924
+ ```ts
1925
+ HydratedBoundWitnessInstance.payloadCount
1926
+ ```
1927
+
1928
+ ***
1929
+
1930
+ ### payloads
1931
+
1932
+ ```ts
1933
+ payloads: T[1][number][];
1934
+ ```
1935
+
1936
+ ### Inherited from
1937
+
1938
+ ```ts
1939
+ HydratedBoundWitnessInstance.payloads
1940
+ ```
1941
+
1942
+ ***
1943
+
1944
+ ### reward
1945
+
1946
+ ```ts
1947
+ reward: bigint;
1948
+ ```
1949
+
1950
+ ### Inherited from
1951
+
1952
+ ```ts
1953
+ BlockFieldsInstance.reward
1954
+ ```
1955
+
1956
+ ***
1957
+
1958
+ ### signatureCount
1959
+
1960
+ ```ts
1961
+ signatureCount: number;
1962
+ ```
1963
+
1964
+ ### Inherited from
1965
+
1966
+ [`SignedInstance`](#SignedInstance).[`signatureCount`](SignedInstance.md#signaturecount)
1967
+
1968
+ ***
1969
+
1970
+ ### signatures
1971
+
1972
+ ```ts
1973
+ signatures: SignatureInstance[];
1974
+ ```
1975
+
1976
+ ### Inherited from
1977
+
1978
+ [`SignedInstance`](#SignedInstance).[`signatures`](SignedInstance.md#signatures)
1979
+
1980
+ ***
1981
+
1982
+ ### transactionCount
1983
+
1984
+ ```ts
1985
+ transactionCount: number;
1986
+ ```
1987
+
1988
+ ### Inherited from
1989
+
1990
+ ```ts
1991
+ BlockFieldsInstance.transactionCount
1992
+ ```
1993
+
1994
+ ***
1995
+
1996
+ ### transactions
1997
+
1998
+ ```ts
1999
+ transactions: HydratedTransactionInstance<HydratedTransaction, AllowedBlockPayload>[];
2000
+ ```
2001
+
2002
+ ### Inherited from
2003
+
2004
+ ```ts
2005
+ BlockFieldsInstance.transactions
2006
+ ```
2007
+
2008
+ ## Methods
2009
+
2010
+ ### payload()
2011
+
2012
+ ```ts
2013
+ payload(index): undefined | T[1][number];
2014
+ ```
2015
+
2016
+ ### Parameters
2017
+
2018
+ #### index
2019
+
2020
+ `number`
2021
+
2022
+ ### Returns
2023
+
2024
+ `undefined` \| `T`\[`1`\]\[`number`\]
2025
+
2026
+ ### Inherited from
2027
+
2028
+ ```ts
2029
+ HydratedBoundWitnessInstance.payload
2030
+ ```
2031
+
2032
+ ***
2033
+
2034
+ ### signature()
2035
+
2036
+ ```ts
2037
+ signature(index): undefined | SignatureInstance;
2038
+ ```
2039
+
2040
+ ### Parameters
2041
+
2042
+ #### index
2043
+
2044
+ `number`
2045
+
2046
+ ### Returns
2047
+
2048
+ `undefined` \| [`SignatureInstance`](#SignatureInstance)
2049
+
2050
+ ### Inherited from
2051
+
2052
+ [`SignedInstance`](#SignedInstance).[`signature`](SignedInstance.md#signature)
2053
+
2054
+ ***
2055
+
2056
+ ### transaction()
2057
+
2058
+ ```ts
2059
+ transaction(index):
2060
+ | undefined
2061
+ | HydratedTransactionInstance<HydratedTransaction, AllowedBlockPayload>;
2062
+ ```
2063
+
2064
+ ### Parameters
2065
+
2066
+ #### index
2067
+
2068
+ `number`
2069
+
2070
+ ### Returns
2071
+
2072
+ \| `undefined`
2073
+ \| [`HydratedTransactionInstance`](#HydratedTransactionInstance)\<`HydratedTransaction`, `AllowedBlockPayload`\>
2074
+
2075
+ ### Inherited from
2076
+
2077
+ ```ts
2078
+ BlockFieldsInstance.transaction
2079
+ ```
2080
+
2081
+ ***
2082
+
2083
+ ### validate()
2084
+
2085
+ ```ts
2086
+ validate(): Promisable<Error[]>;
2087
+ ```
2088
+
2089
+ ### Returns
2090
+
2091
+ `Promisable`\<`Error`[]\>
2092
+
2093
+ ### Inherited from
2094
+
2095
+ ```ts
2096
+ HydratedBoundWitnessInstance.validate
2097
+ ```
2098
+
2099
+ ### <a id="HydratedTransactionInstance"></a>HydratedTransactionInstance
2100
+
2101
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2102
+
2103
+ ***
2104
+
2105
+ ## Extends
2106
+
2107
+ - `TransactionFieldsInstance`\<`T`\[`1`\]\[`number`\] & `TElevatedPayload`\>.`HydratedBoundWitnessInstance`\<`T`\>.[`SignedInstance`](#SignedInstance)
2108
+
2109
+ ## Type Parameters
2110
+
2111
+ ### T
2112
+
2113
+ `T` *extends* `HydratedTransaction` = `HydratedTransaction`
2114
+
2115
+ ### TElevatedPayload
2116
+
2117
+ `TElevatedPayload` *extends* `AllowedBlockPayload` = `AllowedBlockPayload`
2118
+
2119
+ ## Properties
2120
+
2121
+ ### data
2122
+
2123
+ ```ts
2124
+ data: T;
2125
+ ```
2126
+
2127
+ ### Inherited from
2128
+
2129
+ ```ts
2130
+ HydratedBoundWitnessInstance.data
2131
+ ```
2132
+
2133
+ ***
2134
+
2135
+ ### boundWitness
2136
+
2137
+ ```ts
2138
+ boundWitness: T[0];
2139
+ ```
2140
+
2141
+ ### Inherited from
2142
+
2143
+ ```ts
2144
+ HydratedBoundWitnessInstance.boundWitness
2145
+ ```
2146
+
2147
+ ***
2148
+
2149
+ ### payloadCount
2150
+
2151
+ ```ts
2152
+ payloadCount: number;
2153
+ ```
2154
+
2155
+ ### Inherited from
2156
+
2157
+ ```ts
2158
+ HydratedBoundWitnessInstance.payloadCount
2159
+ ```
2160
+
2161
+ ***
2162
+
2163
+ ### payloads
2164
+
2165
+ ```ts
2166
+ payloads: T[1][number][];
2167
+ ```
2168
+
2169
+ ### Inherited from
2170
+
2171
+ ```ts
2172
+ HydratedBoundWitnessInstance.payloads
2173
+ ```
2174
+
2175
+ ***
2176
+
2177
+ ### signatureCount
2178
+
2179
+ ```ts
2180
+ signatureCount: number;
2181
+ ```
2182
+
2183
+ ### Inherited from
2184
+
2185
+ [`SignedInstance`](#SignedInstance).[`signatureCount`](SignedInstance.md#signaturecount)
2186
+
2187
+ ***
2188
+
2189
+ ### signatures
2190
+
2191
+ ```ts
2192
+ signatures: SignatureInstance[];
2193
+ ```
2194
+
2195
+ ### Inherited from
2196
+
2197
+ [`SignedInstance`](#SignedInstance).[`signatures`](SignedInstance.md#signatures)
2198
+
2199
+ ***
2200
+
2201
+ ### elevatedPayloadCount
2202
+
2203
+ ```ts
2204
+ elevatedPayloadCount: number;
2205
+ ```
2206
+
2207
+ ### Inherited from
2208
+
2209
+ ```ts
2210
+ TransactionFieldsInstance.elevatedPayloadCount
2211
+ ```
2212
+
2213
+ ***
2214
+
2215
+ ### elevatedPayloads
2216
+
2217
+ ```ts
2218
+ elevatedPayloads: WithStorageMeta<T[1][number] & TElevatedPayload>[];
2219
+ ```
2220
+
2221
+ ### Inherited from
2222
+
2223
+ ```ts
2224
+ TransactionFieldsInstance.elevatedPayloads
2225
+ ```
2226
+
2227
+ ***
2228
+
2229
+ ### externalPayloads
2230
+
2231
+ ```ts
2232
+ externalPayloads: Record<Hash, Schema | Payload>;
2233
+ ```
2234
+
2235
+ ### Inherited from
2236
+
2237
+ ```ts
2238
+ TransactionFieldsInstance.externalPayloads
2239
+ ```
2240
+
2241
+ ***
2242
+
2243
+ ### fees
2244
+
2245
+ ```ts
2246
+ fees: TransactionFeesInstance;
2247
+ ```
2248
+
2249
+ ### Inherited from
2250
+
2251
+ ```ts
2252
+ TransactionFieldsInstance.fees
2253
+ ```
2254
+
2255
+ ***
2256
+
2257
+ ### privateExternalPayloads
2258
+
2259
+ ```ts
2260
+ privateExternalPayloads: Record<Hash, Schema>;
2261
+ ```
2262
+
2263
+ ### Inherited from
2264
+
2265
+ ```ts
2266
+ TransactionFieldsInstance.privateExternalPayloads
2267
+ ```
2268
+
2269
+ ***
2270
+
2271
+ ### publicExternalPayloads
2272
+
2273
+ ```ts
2274
+ publicExternalPayloads: Payload[];
2275
+ ```
2276
+
2277
+ ### Inherited from
2278
+
2279
+ ```ts
2280
+ TransactionFieldsInstance.publicExternalPayloads
2281
+ ```
2282
+
2283
+ ## Methods
2284
+
2285
+ ### payload()
2286
+
2287
+ ```ts
2288
+ payload(index): undefined | T[1][number];
2289
+ ```
2290
+
2291
+ ### Parameters
2292
+
2293
+ #### index
2294
+
2295
+ `number`
2296
+
2297
+ ### Returns
2298
+
2299
+ `undefined` \| `T`\[`1`\]\[`number`\]
2300
+
2301
+ ### Inherited from
2302
+
2303
+ ```ts
2304
+ HydratedBoundWitnessInstance.payload
2305
+ ```
2306
+
2307
+ ***
2308
+
2309
+ ### signature()
2310
+
2311
+ ```ts
2312
+ signature(index): undefined | SignatureInstance;
2313
+ ```
2314
+
2315
+ ### Parameters
2316
+
2317
+ #### index
2318
+
2319
+ `number`
2320
+
2321
+ ### Returns
2322
+
2323
+ `undefined` \| [`SignatureInstance`](#SignatureInstance)
2324
+
2325
+ ### Inherited from
2326
+
2327
+ [`SignedInstance`](#SignedInstance).[`signature`](SignedInstance.md#signature)
2328
+
2329
+ ***
2330
+
2331
+ ### validate()
2332
+
2333
+ ```ts
2334
+ validate(): Promisable<Error[]>;
2335
+ ```
2336
+
2337
+ ### Returns
2338
+
2339
+ `Promisable`\<`Error`[]\>
2340
+
2341
+ ### Inherited from
2342
+
2343
+ ```ts
2344
+ HydratedBoundWitnessInstance.validate
2345
+ ```
2346
+
2347
+ ***
2348
+
2349
+ ### elevatedPayload()
2350
+
2351
+ ```ts
2352
+ elevatedPayload(index): undefined | T[1][number] & TElevatedPayload;
2353
+ ```
2354
+
2355
+ ### Parameters
2356
+
2357
+ #### index
2358
+
2359
+ `number`
2360
+
2361
+ ### Returns
2362
+
2363
+ `undefined` \| `T`\[`1`\]\[`number`\] & `TElevatedPayload`
2364
+
2365
+ ### Inherited from
2366
+
2367
+ ```ts
2368
+ TransactionFieldsInstance.elevatedPayload
2369
+ ```
2370
+
2371
+ ***
2372
+
2373
+ ### reward()
2374
+
2375
+ ```ts
2376
+ reward(): bigint;
2377
+ ```
2378
+
2379
+ ### Returns
2380
+
2381
+ `bigint`
2382
+
2383
+ ### Inherited from
2384
+
2385
+ ```ts
2386
+ TransactionFieldsInstance.reward
2387
+ ```
2388
+
2389
+ ### <a id="NegativeBigInt"></a>NegativeBigInt
2390
+
2391
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2392
+
2393
+ ***
2394
+
2395
+ ## Properties
2396
+
2397
+ ### negative
2398
+
2399
+ ```ts
2400
+ negative: Lowercase<string>;
2401
+ ```
2402
+
2403
+ ### <a id="ObjectInstance"></a>ObjectInstance
2404
+
2405
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2406
+
2407
+ ***
2408
+
2409
+ ## Extends
2410
+
2411
+ - [`DataInstance`](#DataInstance)\<`T`\>
2412
+
2413
+ ## Extended by
2414
+
2415
+ - [`PayloadInstance`](#PayloadInstance)
2416
+
2417
+ ## Type Parameters
2418
+
2419
+ ### T
2420
+
2421
+ `T` *extends* `EmptyObject` = `EmptyObject`
2422
+
2423
+ ## Properties
2424
+
2425
+ ### data
2426
+
2427
+ ```ts
2428
+ data: T;
2429
+ ```
2430
+
2431
+ ### Inherited from
2432
+
2433
+ [`DataInstance`](#DataInstance).[`data`](DataInstance.md#data)
2434
+
2435
+ ### <a id="PayloadInstance"></a>PayloadInstance
2436
+
2437
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2438
+
2439
+ ***
2440
+
2441
+ ## Extends
2442
+
2443
+ - [`ObjectInstance`](#ObjectInstance)\<`TPayload`\>.[`ValidatableInstance`](#ValidatableInstance)
2444
+
2445
+ ## Extended by
2446
+
2447
+ - [`BoundWitnessInstance`](#BoundWitnessInstance)
2448
+
2449
+ ## Type Parameters
2450
+
2451
+ ### TPayload
2452
+
2453
+ `TPayload` *extends* `Payload` = `Payload`
2454
+
2455
+ ## Properties
2456
+
2457
+ ### data
2458
+
2459
+ ```ts
2460
+ data: TPayload;
2461
+ ```
2462
+
2463
+ ### Inherited from
2464
+
2465
+ [`ObjectInstance`](#ObjectInstance).[`data`](ObjectInstance.md#data)
2466
+
2467
+ ## Methods
2468
+
2469
+ ### validate()
2470
+
2471
+ ```ts
2472
+ validate(): Promisable<Error[]>;
2473
+ ```
2474
+
2475
+ ### Returns
2476
+
2477
+ `Promisable`\<`Error`[]\>
2478
+
2479
+ ### Inherited from
2480
+
2481
+ [`ValidatableInstance`](#ValidatableInstance).[`validate`](ValidatableInstance.md#validate)
2482
+
2483
+ ### <a id="PositiveBigInt"></a>PositiveBigInt
2484
+
2485
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2486
+
2487
+ ***
2488
+
2489
+ ## Properties
2490
+
2491
+ ### positive
2492
+
2493
+ ```ts
2494
+ positive: Lowercase<string>;
2495
+ ```
2496
+
2497
+ ### <a id="ShiftedBigIntConfig"></a>ShiftedBigIntConfig
2498
+
2499
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2500
+
2501
+ ***
2502
+
2503
+ ## Properties
2504
+
2505
+ ### locale
2506
+
2507
+ ```ts
2508
+ locale: LocalesArgument;
2509
+ ```
2510
+
2511
+ ***
2512
+
2513
+ ### maxCharacters
2514
+
2515
+ ```ts
2516
+ maxCharacters: number;
2517
+ ```
2518
+
2519
+ ***
2520
+
2521
+ ### maxDecimal
2522
+
2523
+ ```ts
2524
+ maxDecimal: number;
2525
+ ```
2526
+
2527
+ ***
2528
+
2529
+ ### minDecimals
2530
+
2531
+ ```ts
2532
+ minDecimals: number;
2533
+ ```
2534
+
2535
+ ***
2536
+
2537
+ ### places
2538
+
2539
+ ```ts
2540
+ places: number;
2541
+ ```
2542
+
2543
+ ### <a id="SignatureInstance"></a>SignatureInstance
2544
+
2545
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2546
+
2547
+ ***
2548
+
2549
+ ## Extends
2550
+
2551
+ - [`ValidatableInstance`](#ValidatableInstance)
2552
+
2553
+ ## Properties
2554
+
2555
+ ### address
2556
+
2557
+ ```ts
2558
+ address: Lowercase<string>;
2559
+ ```
2560
+
2561
+ ***
2562
+
2563
+ ### hash
2564
+
2565
+ ```ts
2566
+ hash: Lowercase<string>;
2567
+ ```
2568
+
2569
+ ***
2570
+
2571
+ ### signature
2572
+
2573
+ ```ts
2574
+ signature: Lowercase<string>;
2575
+ ```
2576
+
2577
+ ## Methods
2578
+
2579
+ ### validate()
2580
+
2581
+ ```ts
2582
+ validate(): Promisable<Error[]>;
2583
+ ```
2584
+
2585
+ ### Returns
2586
+
2587
+ `Promisable`\<`Error`[]\>
2588
+
2589
+ ### Inherited from
2590
+
2591
+ [`ValidatableInstance`](#ValidatableInstance).[`validate`](ValidatableInstance.md#validate)
2592
+
2593
+ ### <a id="SignedInstance"></a>SignedInstance
2594
+
2595
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2596
+
2597
+ ***
2598
+
2599
+ ## Extended by
2600
+
2601
+ - [`HydratedBlockInstance`](#HydratedBlockInstance)
2602
+ - [`HydratedTransactionInstance`](#HydratedTransactionInstance)
2603
+
2604
+ ## Properties
2605
+
2606
+ ### signatureCount
2607
+
2608
+ ```ts
2609
+ signatureCount: number;
2610
+ ```
2611
+
2612
+ ***
2613
+
2614
+ ### signatures
2615
+
2616
+ ```ts
2617
+ signatures: SignatureInstance[];
2618
+ ```
2619
+
2620
+ ## Methods
2621
+
2622
+ ### signature()
2623
+
2624
+ ```ts
2625
+ signature(index): undefined | SignatureInstance;
2626
+ ```
2627
+
2628
+ ### Parameters
2629
+
2630
+ #### index
2631
+
2632
+ `number`
2633
+
2634
+ ### Returns
2635
+
2636
+ `undefined` \| [`SignatureInstance`](#SignatureInstance)
2637
+
2638
+ ### <a id="StepSummaryFields"></a>StepSummaryFields
2639
+
2640
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2641
+
2642
+ ***
2643
+
2644
+ ## Properties
2645
+
2646
+ ### hash
2647
+
2648
+ ```ts
2649
+ hash: Lowercase<string>;
2650
+ ```
2651
+
2652
+ ***
2653
+
2654
+ ### stepSize
2655
+
2656
+ ```ts
2657
+ stepSize: number;
2658
+ ```
2659
+
2660
+ ### <a id="TransactionFeesInstance"></a>TransactionFeesInstance
2661
+
2662
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2663
+
2664
+ ***
2665
+
2666
+ ## Extends
2667
+
2668
+ - [`ValidatableInstance`](#ValidatableInstance)
2669
+
2670
+ ## Properties
2671
+
2672
+ ### base
2673
+
2674
+ ```ts
2675
+ base: bigint;
2676
+ ```
2677
+
2678
+ ***
2679
+
2680
+ ### gasLimit
2681
+
2682
+ ```ts
2683
+ gasLimit: bigint;
2684
+ ```
2685
+
2686
+ ***
2687
+
2688
+ ### gasPrice
2689
+
2690
+ ```ts
2691
+ gasPrice: bigint;
2692
+ ```
2693
+
2694
+ ***
2695
+
2696
+ ### priority
2697
+
2698
+ ```ts
2699
+ priority: bigint;
2700
+ ```
2701
+
2702
+ ## Methods
2703
+
2704
+ ### validate()
2705
+
2706
+ ```ts
2707
+ validate(): Promisable<Error[]>;
2708
+ ```
2709
+
2710
+ ### Returns
2711
+
2712
+ `Promisable`\<`Error`[]\>
2713
+
2714
+ ### Inherited from
2715
+
2716
+ [`ValidatableInstance`](#ValidatableInstance).[`validate`](ValidatableInstance.md#validate)
2717
+
2718
+ ### <a id="ValidatableInstance"></a>ValidatableInstance
2719
+
2720
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2721
+
2722
+ ***
2723
+
2724
+ ## Extended by
2725
+
2726
+ - [`AddressInstance`](#AddressInstance)
2727
+ - [`TransactionFeesInstance`](#TransactionFeesInstance)
2728
+ - [`PayloadInstance`](#PayloadInstance)
2729
+ - [`SignatureInstance`](#SignatureInstance)
2730
+
2731
+ ## Methods
2732
+
2733
+ ### validate()
2734
+
2735
+ ```ts
2736
+ validate(): Promisable<Error[]>;
2737
+ ```
2738
+
2739
+ ### Returns
2740
+
2741
+ `Promisable`\<`Error`[]\>
2742
+
2743
+ ### <a id="XL1AmountInstance"></a>XL1AmountInstance
2744
+
2745
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2746
+
2747
+ ***
2748
+
2749
+ ## Properties
2750
+
2751
+ ### value
2752
+
2753
+ ```ts
2754
+ value: AttoXL1;
2755
+ ```
2756
+
2757
+ ***
2758
+
2759
+ ### milli
2760
+
2761
+ ```ts
2762
+ milli: MilliXL1;
2763
+ ```
2764
+
2765
+ ***
2766
+
2767
+ ### micro
2768
+
2769
+ ```ts
2770
+ micro: MicroXL1;
2771
+ ```
2772
+
2773
+ ***
2774
+
2775
+ ### nano
2776
+
2777
+ ```ts
2778
+ nano: NanoXL1;
2779
+ ```
2780
+
2781
+ ***
2782
+
2783
+ ### pico
2784
+
2785
+ ```ts
2786
+ pico: PicoXL1;
2787
+ ```
2788
+
2789
+ ***
2790
+
2791
+ ### femto
2792
+
2793
+ ```ts
2794
+ femto: FemtoXL1;
2795
+ ```
2796
+
2797
+ ***
2798
+
2799
+ ### atto
2800
+
2801
+ ```ts
2802
+ atto: AttoXL1;
2803
+ ```
2804
+
2805
+ ## Methods
2806
+
2807
+ ### to()
2808
+
2809
+ ```ts
2810
+ to(places): bigint;
2811
+ ```
2812
+
2813
+ ### Parameters
2814
+
2815
+ #### places
2816
+
2817
+ `number` | `bigint`
2818
+
2819
+ ### Returns
2820
+
2821
+ `bigint`
2822
+
2823
+ ***
2824
+
2825
+ ### toString()
2826
+
2827
+ ```ts
2828
+ toString(places, config): string;
2829
+ ```
2830
+
2831
+ ### Parameters
2832
+
2833
+ #### places
2834
+
2835
+ `number`
2836
+
2837
+ #### config
2838
+
2839
+ `Partial`\<[`ShiftedBigIntConfig`](#ShiftedBigIntConfig)\>
2840
+
2841
+ ### Returns
2842
+
2843
+ `string`
2844
+
2845
+ ### type-aliases
2846
+
2847
+ ### <a id="BalancesStepSummary"></a>BalancesStepSummary
2848
+
2849
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2850
+
2851
+ ***
2852
+
2853
+ ```ts
2854
+ type BalancesStepSummary = StepSummary<{
2855
+ balances: Record<Address, SignedBigInt>;
2856
+ }, BalancesStepSummarySchema>;
2857
+ ```
2858
+
2859
+ ### <a id="BalancesStepSummarySchema"></a>BalancesStepSummarySchema
2860
+
2861
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2862
+
2863
+ ***
2864
+
2865
+ ```ts
2866
+ type BalancesStepSummarySchema = typeof BalancesStepSummarySchema;
2867
+ ```
2868
+
2869
+ ### <a id="BlockNumberRange"></a>BlockNumberRange
2870
+
2871
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2872
+
2873
+ ***
2874
+
2875
+ ```ts
2876
+ type BlockNumberRange = [number, number];
2877
+ ```
2878
+
2879
+ ### <a id="Config"></a>Config
2880
+
2881
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2882
+
2883
+ ***
2884
+
2885
+ ```ts
2886
+ type Config = z.infer<typeof ConfigSchema>;
2887
+ ```
2888
+
2889
+ ### <a id="MnemonicString"></a>MnemonicString
2890
+
2891
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2892
+
2893
+ ***
2894
+
2895
+ ```ts
2896
+ type MnemonicString = z.infer<typeof MnemonicStringSchema>;
2897
+ ```
2898
+
2899
+ ### <a id="SignedBigInt"></a>SignedBigInt
2900
+
2901
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2902
+
2903
+ ***
2904
+
2905
+ ```ts
2906
+ type SignedBigInt =
2907
+ | NegativeBigInt
2908
+ | PositiveBigInt;
2909
+ ```
2910
+
2911
+ ### <a id="StepSummary"></a>StepSummary
2912
+
2913
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2914
+
2915
+ ***
2916
+
2917
+ ```ts
2918
+ type StepSummary<TAdditionalFields, TSchema> = Payload<TAdditionalFields extends void ? StepSummaryFields : TAdditionalFields & StepSummaryFields, TSchema extends void ? StepSummarySchema : TSchema>;
2919
+ ```
2920
+
2921
+ ## Type Parameters
2922
+
2923
+ ### TAdditionalFields
2924
+
2925
+ `TAdditionalFields` *extends* `EmptyObject` \| `void` = `void`
2926
+
2927
+ ### TSchema
2928
+
2929
+ `TSchema` *extends* `Schema` \| `void` = `void`
2930
+
2931
+ ### <a id="StepSummarySchema"></a>StepSummarySchema
2932
+
2933
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2934
+
2935
+ ***
2936
+
2937
+ ```ts
2938
+ type StepSummarySchema = typeof StepSummarySchema;
2939
+ ```
2940
+
2941
+ ### variables
2942
+
2943
+ ### <a id="BalancesStepSummarySchema"></a>BalancesStepSummarySchema
2944
+
2945
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2946
+
2947
+ ***
2948
+
2949
+ ```ts
2950
+ const BalancesStepSummarySchema: Schema = 'network.xyo.step.summary.balances';
2951
+ ```
2952
+
2953
+ ### <a id="ConfigSchema"></a>ConfigSchema
2954
+
2955
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
2956
+
2957
+ ***
2958
+
2959
+ ```ts
2960
+ const ConfigSchema: ZodObject<{
2961
+ silent: ZodDefault<ZodBoolean>;
2962
+ logLevel: ZodDefault<ZodEnum<["error" | "warn" | "info" | "log" | "debug" | "trace", ...("error" | "warn" | "info" | "log" | "debug" | "trace")[]]>>;
2963
+ api: ZodDefault<ZodObject<{
2964
+ mnemonic: ZodOptional<ZodEffects<ZodEffects<ZodString, string, string>, string, string>>;
2965
+ host: ZodDefault<ZodString>;
2966
+ port: ZodDefault<ZodNumber>;
2967
+ }, "strip", ZodTypeAny, {
2968
+ mnemonic?: string;
2969
+ host: string;
2970
+ port: number;
2971
+ }, {
2972
+ mnemonic?: string;
2973
+ host?: string;
2974
+ port?: number;
2975
+ }>>;
2976
+ app: ZodDefault<ZodObject<{
2977
+ port: ZodDefault<ZodNumber>;
2978
+ }, "strip", ZodTypeAny, {
2979
+ port: number;
2980
+ }, {
2981
+ port?: number;
2982
+ }>>;
2983
+ chain: ZodDefault<ZodObject<{
2984
+ id: ZodOptional<ZodString>;
2985
+ }, "strip", ZodTypeAny, {
2986
+ id?: string;
2987
+ }, {
2988
+ id?: string;
2989
+ }>>;
2990
+ evm: ZodDefault<ZodObject<{
2991
+ chainId: ZodOptional<ZodString>;
2992
+ infura: ZodOptional<ZodObject<{
2993
+ projectId: ZodOptional<ZodString>;
2994
+ projectSecret: ZodOptional<ZodString>;
2995
+ }, "strip", ZodTypeAny, {
2996
+ projectId?: string;
2997
+ projectSecret?: string;
2998
+ }, {
2999
+ projectId?: string;
3000
+ projectSecret?: string;
3001
+ }>>;
3002
+ jsonRpc: ZodOptional<ZodObject<{
3003
+ url: ZodOptional<ZodString>;
3004
+ }, "strip", ZodTypeAny, {
3005
+ url?: string;
3006
+ }, {
3007
+ url?: string;
3008
+ }>>;
3009
+ }, "strip", ZodTypeAny, {
3010
+ chainId?: string;
3011
+ infura?: {
3012
+ projectId?: string;
3013
+ projectSecret?: string;
3014
+ };
3015
+ jsonRpc?: {
3016
+ url?: string;
3017
+ };
3018
+ }, {
3019
+ chainId?: string;
3020
+ infura?: {
3021
+ projectId?: string;
3022
+ projectSecret?: string;
3023
+ };
3024
+ jsonRpc?: {
3025
+ url?: string;
3026
+ };
3027
+ }>>;
3028
+ producer: ZodDefault<ZodObject<{
3029
+ healthCheckPort: ZodOptional<ZodNumber>;
3030
+ minStake: ZodDefault<ZodNumber>;
3031
+ mnemonic: ZodOptional<ZodEffects<ZodEffects<ZodString, string, string>, string, string>>;
3032
+ port: ZodDefault<ZodNumber>;
3033
+ disableIntentRedeclaration: ZodOptional<ZodBoolean>;
3034
+ rewardAddress: ZodOptional<ZodString>;
3035
+ }, "strip", ZodTypeAny, {
3036
+ healthCheckPort?: number;
3037
+ minStake: number;
3038
+ mnemonic?: string;
3039
+ port: number;
3040
+ disableIntentRedeclaration?: boolean;
3041
+ rewardAddress?: string;
3042
+ }, {
3043
+ healthCheckPort?: number;
3044
+ minStake?: number;
3045
+ mnemonic?: string;
3046
+ port?: number;
3047
+ disableIntentRedeclaration?: boolean;
3048
+ rewardAddress?: string;
3049
+ }>>;
3050
+ storage: ZodDefault<ZodObject<{
3051
+ mongo: ZodOptional<ZodObject<{
3052
+ connectionString: ZodOptional<ZodString>;
3053
+ database: ZodOptional<ZodString>;
3054
+ domain: ZodOptional<ZodString>;
3055
+ password: ZodOptional<ZodString>;
3056
+ username: ZodOptional<ZodString>;
3057
+ }, "strip", ZodTypeAny, {
3058
+ connectionString?: string;
3059
+ database?: string;
3060
+ domain?: string;
3061
+ password?: string;
3062
+ username?: string;
3063
+ }, {
3064
+ connectionString?: string;
3065
+ database?: string;
3066
+ domain?: string;
3067
+ password?: string;
3068
+ username?: string;
3069
+ }>>;
3070
+ root: ZodOptional<ZodString>;
3071
+ }, "strip", ZodTypeAny, {
3072
+ mongo?: {
3073
+ connectionString?: string;
3074
+ database?: string;
3075
+ domain?: string;
3076
+ password?: string;
3077
+ username?: string;
3078
+ };
3079
+ root?: string;
3080
+ }, {
3081
+ mongo?: {
3082
+ connectionString?: string;
3083
+ database?: string;
3084
+ domain?: string;
3085
+ password?: string;
3086
+ username?: string;
3087
+ };
3088
+ root?: string;
3089
+ }>>;
3090
+ telemetry: ZodDefault<ZodObject<{
3091
+ otel: ZodOptional<ZodObject<{
3092
+ otlpEndpoint: ZodOptional<ZodString>;
3093
+ }, "strip", ZodTypeAny, {
3094
+ otlpEndpoint?: string;
3095
+ }, {
3096
+ otlpEndpoint?: string;
3097
+ }>>;
3098
+ }, "strip", ZodTypeAny, {
3099
+ otel?: {
3100
+ otlpEndpoint?: string;
3101
+ };
3102
+ }, {
3103
+ otel?: {
3104
+ otlpEndpoint?: string;
3105
+ };
3106
+ }>>;
3107
+ }, "strip", ZodTypeAny, {
3108
+ silent: boolean;
3109
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
3110
+ api: {
3111
+ mnemonic?: string;
3112
+ host: string;
3113
+ port: number;
3114
+ };
3115
+ app: {
3116
+ port: number;
3117
+ };
3118
+ chain: {
3119
+ id?: string;
3120
+ };
3121
+ evm: {
3122
+ chainId?: string;
3123
+ infura?: {
3124
+ projectId?: string;
3125
+ projectSecret?: string;
3126
+ };
3127
+ jsonRpc?: {
3128
+ url?: string;
3129
+ };
3130
+ };
3131
+ producer: {
3132
+ healthCheckPort?: number;
3133
+ minStake: number;
3134
+ mnemonic?: string;
3135
+ port: number;
3136
+ disableIntentRedeclaration?: boolean;
3137
+ rewardAddress?: string;
3138
+ };
3139
+ storage: {
3140
+ mongo?: {
3141
+ connectionString?: string;
3142
+ database?: string;
3143
+ domain?: string;
3144
+ password?: string;
3145
+ username?: string;
3146
+ };
3147
+ root?: string;
3148
+ };
3149
+ telemetry: {
3150
+ otel?: {
3151
+ otlpEndpoint?: string;
3152
+ };
3153
+ };
3154
+ }, {
3155
+ silent?: boolean;
3156
+ logLevel?: "error" | "warn" | "info" | "log" | "debug" | "trace";
3157
+ api?: {
3158
+ mnemonic?: string;
3159
+ host?: string;
3160
+ port?: number;
3161
+ };
3162
+ app?: {
3163
+ port?: number;
3164
+ };
3165
+ chain?: {
3166
+ id?: string;
3167
+ };
3168
+ evm?: {
3169
+ chainId?: string;
3170
+ infura?: {
3171
+ projectId?: string;
3172
+ projectSecret?: string;
3173
+ };
3174
+ jsonRpc?: {
3175
+ url?: string;
3176
+ };
3177
+ };
3178
+ producer?: {
3179
+ healthCheckPort?: number;
3180
+ minStake?: number;
3181
+ mnemonic?: string;
3182
+ port?: number;
3183
+ disableIntentRedeclaration?: boolean;
3184
+ rewardAddress?: string;
3185
+ };
3186
+ storage?: {
3187
+ mongo?: {
3188
+ connectionString?: string;
3189
+ database?: string;
3190
+ domain?: string;
3191
+ password?: string;
3192
+ username?: string;
3193
+ };
3194
+ root?: string;
3195
+ };
3196
+ telemetry?: {
3197
+ otel?: {
3198
+ otlpEndpoint?: string;
3199
+ };
3200
+ };
3201
+ }>;
3202
+ ```
3203
+
3204
+ ### <a id="MnemonicStringSchema"></a>MnemonicStringSchema
3205
+
3206
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
3207
+
3208
+ ***
3209
+
3210
+ ```ts
3211
+ const MnemonicStringSchema: ZodEffects<ZodEffects<ZodString, string, string>, string, string>;
3212
+ ```
3213
+
3214
+ Validates a single string containing a BIP-39 mnemonic.
3215
+
3216
+ • Trims leading/trailing whitespace.
3217
+ • Collapses any run of whitespace (spaces, tabs, new-lines) to a single space.
3218
+ • Splits on spaces → array of words.
3219
+ • Checks that the word-count is 12, 15, 18, 21, or 24.
3220
+
3221
+ ### <a id="StepSummarySchema"></a>StepSummarySchema
3222
+
3223
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
3224
+
3225
+ ***
3226
+
3227
+ ```ts
3228
+ const StepSummarySchema: Schema = 'network.xyo.step.summary';
3229
+ ```
3230
+
3231
+ ### <a id="TODO"></a>TODO
3232
+
3233
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
3234
+
3235
+ ***
3236
+
3237
+ ```ts
3238
+ const TODO: true = true;
3239
+ ```
3240
+
3241
+ ### <a id="Xl1CommonConfigSchema"></a>Xl1CommonConfigSchema
3242
+
3243
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
3244
+
3245
+ ***
3246
+
3247
+ ```ts
3248
+ const Xl1CommonConfigSchema: ZodObject<{
3249
+ silent: ZodDefault<ZodBoolean>;
3250
+ logLevel: ZodDefault<ZodEnum<["error" | "warn" | "info" | "log" | "debug" | "trace", ...("error" | "warn" | "info" | "log" | "debug" | "trace")[]]>>;
3251
+ }, "strip", ZodTypeAny, {
3252
+ silent: boolean;
3253
+ logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
3254
+ }, {
3255
+ silent?: boolean;
3256
+ logLevel?: "error" | "warn" | "info" | "log" | "debug" | "trace";
3257
+ }>;
3258
+ ```
3259
+
3260
+ ### <a id="asBalancesStepSummary"></a>asBalancesStepSummary
3261
+
3262
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
3263
+
3264
+ ***
3265
+
3266
+ ```ts
3267
+ const asBalancesStepSummary: AsTypeFunction<BalancesStepSummary>;
3268
+ ```
3269
+
3270
+ ### <a id="asBalancesStepSummaryWithStorageMeta"></a>asBalancesStepSummaryWithStorageMeta
3271
+
3272
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
3273
+
3274
+ ***
3275
+
3276
+ ```ts
3277
+ const asBalancesStepSummaryWithStorageMeta: AsTypeFunction<WithStorageMeta<BalancesStepSummary>>;
3278
+ ```
3279
+
3280
+ ### <a id="isBalancesStepSummary"></a>isBalancesStepSummary
3281
+
3282
+ [**@xyo-network/xl1-protocol-sdk**](#../README)
3283
+
3284
+ ***
3285
+
3286
+ ```ts
3287
+ const isBalancesStepSummary: (x?) => x is BalancesStepSummary;
3288
+ ```
3289
+
3290
+ Identity function for determining if an object is an BalancesStepSummary
3291
+
3292
+ ## Parameters
3293
+
3294
+ ### x?
3295
+
3296
+ `unknown`
3297
+
3298
+ ## Returns
3299
+
3300
+ `x is BalancesStepSummary`
3301
+
18
3302
 
19
3303
  ## Maintainers
20
3304