@alephium/web3 0.44.0 → 1.0.0

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.
@@ -1,3 +1,4 @@
1
+ /** AddressBalance */
1
2
  export interface AddressBalance {
2
3
  /** @format address */
3
4
  address: string;
@@ -11,6 +12,7 @@ export interface AddressBalance {
11
12
  lockedBalanceHint: string;
12
13
  warning?: string;
13
14
  }
15
+ /** AddressInfo */
14
16
  export interface AddressInfo {
15
17
  /** @format address */
16
18
  address: string;
@@ -20,16 +22,19 @@ export interface AddressInfo {
20
22
  group: number;
21
23
  path: string;
22
24
  }
25
+ /** Addresses */
23
26
  export interface Addresses {
24
27
  /** @format address */
25
28
  activeAddress: string;
26
29
  addresses: AddressInfo[];
27
30
  }
31
+ /** AssetInput */
28
32
  export interface AssetInput {
29
33
  outputRef: OutputRef;
30
34
  /** @format hex-string */
31
35
  unlockScript: string;
32
36
  }
37
+ /** AssetOutput */
33
38
  export interface AssetOutput {
34
39
  /** @format int32 */
35
40
  hint: number;
@@ -46,14 +51,17 @@ export interface AssetOutput {
46
51
  message: string;
47
52
  type: string;
48
53
  }
54
+ /** AssetState */
49
55
  export interface AssetState {
50
56
  /** @format uint256 */
51
57
  attoAlphAmount: string;
52
58
  tokens?: Token[];
53
59
  }
60
+ /** BadRequest */
54
61
  export interface BadRequest {
55
62
  detail: string;
56
63
  }
64
+ /** Balance */
57
65
  export interface Balance {
58
66
  /** @format uint256 */
59
67
  balance: string;
@@ -69,6 +77,7 @@ export interface Balance {
69
77
  utxoNum: number;
70
78
  warning?: string;
71
79
  }
80
+ /** Balances */
72
81
  export interface Balances {
73
82
  /** @format uint256 */
74
83
  totalBalance: string;
@@ -76,19 +85,23 @@ export interface Balances {
76
85
  totalBalanceHint: string;
77
86
  balances: AddressBalance[];
78
87
  }
88
+ /** Ban */
79
89
  export interface Ban {
80
90
  peers: string[];
81
91
  type: string;
82
92
  }
93
+ /** Banned */
83
94
  export interface Banned {
84
95
  /** @format int64 */
85
96
  until: number;
86
97
  type: string;
87
98
  }
99
+ /** BlockAndEvents */
88
100
  export interface BlockAndEvents {
89
101
  block: BlockEntry;
90
102
  events: ContractEventByBlockHash[];
91
103
  }
104
+ /** BlockEntry */
92
105
  export interface BlockEntry {
93
106
  /** @format block-hash */
94
107
  hash: string;
@@ -111,7 +124,9 @@ export interface BlockEntry {
111
124
  txsHash: string;
112
125
  /** @format hex-string */
113
126
  target: string;
127
+ ghostUncles: GhostUncleBlockEntry[];
114
128
  }
129
+ /** BlockHeaderEntry */
115
130
  export interface BlockHeaderEntry {
116
131
  /** @format block-hash */
117
132
  hash: string;
@@ -125,12 +140,15 @@ export interface BlockHeaderEntry {
125
140
  height: number;
126
141
  deps: string[];
127
142
  }
143
+ /** BlocksAndEventsPerTimeStampRange */
128
144
  export interface BlocksAndEventsPerTimeStampRange {
129
145
  blocksAndEvents: BlockAndEvents[][];
130
146
  }
147
+ /** BlocksPerTimeStampRange */
131
148
  export interface BlocksPerTimeStampRange {
132
149
  blocks: BlockEntry[][];
133
150
  }
151
+ /** BrokerInfo */
134
152
  export interface BrokerInfo {
135
153
  /** @format clique-id */
136
154
  cliqueId: string;
@@ -145,6 +163,7 @@ export interface BrokerInfo {
145
163
  port: number;
146
164
  };
147
165
  }
166
+ /** BuildDeployContractTx */
148
167
  export interface BuildDeployContractTx {
149
168
  /** @format hex-string */
150
169
  fromPublicKey: string;
@@ -166,6 +185,7 @@ export interface BuildDeployContractTx {
166
185
  /** @format block-hash */
167
186
  targetBlockHash?: string;
168
187
  }
188
+ /** BuildDeployContractTxResult */
169
189
  export interface BuildDeployContractTxResult {
170
190
  /** @format int32 */
171
191
  fromGroup: number;
@@ -181,6 +201,7 @@ export interface BuildDeployContractTxResult {
181
201
  /** @format address */
182
202
  contractAddress: string;
183
203
  }
204
+ /** BuildExecuteScriptTx */
184
205
  export interface BuildExecuteScriptTx {
185
206
  /** @format hex-string */
186
207
  fromPublicKey: string;
@@ -198,6 +219,7 @@ export interface BuildExecuteScriptTx {
198
219
  /** @format block-hash */
199
220
  targetBlockHash?: string;
200
221
  }
222
+ /** BuildExecuteScriptTxResult */
201
223
  export interface BuildExecuteScriptTxResult {
202
224
  /** @format int32 */
203
225
  fromGroup: number;
@@ -211,10 +233,12 @@ export interface BuildExecuteScriptTxResult {
211
233
  /** @format 32-byte-hash */
212
234
  txId: string;
213
235
  }
236
+ /** BuildInfo */
214
237
  export interface BuildInfo {
215
238
  releaseVersion: string;
216
239
  commit: string;
217
240
  }
241
+ /** BuildMultiAddressesTransaction */
218
242
  export interface BuildMultiAddressesTransaction {
219
243
  from: Source[];
220
244
  /** @format uint256 */
@@ -222,6 +246,7 @@ export interface BuildMultiAddressesTransaction {
222
246
  /** @format block-hash */
223
247
  targetBlockHash?: string;
224
248
  }
249
+ /** BuildMultisig */
225
250
  export interface BuildMultisig {
226
251
  /** @format address */
227
252
  fromAddress: string;
@@ -232,15 +257,18 @@ export interface BuildMultisig {
232
257
  /** @format uint256 */
233
258
  gasPrice?: string;
234
259
  }
260
+ /** BuildMultisigAddress */
235
261
  export interface BuildMultisigAddress {
236
262
  keys: string[];
237
263
  /** @format int32 */
238
264
  mrequired: number;
239
265
  }
266
+ /** BuildMultisigAddressResult */
240
267
  export interface BuildMultisigAddressResult {
241
268
  /** @format address */
242
269
  address: string;
243
270
  }
271
+ /** BuildSweepAddressTransactions */
244
272
  export interface BuildSweepAddressTransactions {
245
273
  /** @format public-key */
246
274
  fromPublicKey: string;
@@ -257,6 +285,7 @@ export interface BuildSweepAddressTransactions {
257
285
  /** @format block-hash */
258
286
  targetBlockHash?: string;
259
287
  }
288
+ /** BuildSweepAddressTransactionsResult */
260
289
  export interface BuildSweepAddressTransactionsResult {
261
290
  unsignedTxs: SweepAddressTransaction[];
262
291
  /** @format int32 */
@@ -264,6 +293,7 @@ export interface BuildSweepAddressTransactionsResult {
264
293
  /** @format int32 */
265
294
  toGroup: number;
266
295
  }
296
+ /** BuildSweepMultisig */
267
297
  export interface BuildSweepMultisig {
268
298
  /** @format address */
269
299
  fromAddress: string;
@@ -283,6 +313,7 @@ export interface BuildSweepMultisig {
283
313
  /** @format block-hash */
284
314
  targetBlockHash?: string;
285
315
  }
316
+ /** BuildTransaction */
286
317
  export interface BuildTransaction {
287
318
  /** @format hex-string */
288
319
  fromPublicKey: string;
@@ -297,6 +328,7 @@ export interface BuildTransaction {
297
328
  /** @format block-hash */
298
329
  targetBlockHash?: string;
299
330
  }
331
+ /** BuildTransactionResult */
300
332
  export interface BuildTransactionResult {
301
333
  unsignedTx: string;
302
334
  /** @format gas */
@@ -310,6 +342,7 @@ export interface BuildTransactionResult {
310
342
  /** @format int32 */
311
343
  toGroup: number;
312
344
  }
345
+ /** CallContract */
313
346
  export interface CallContract {
314
347
  /** @format int32 */
315
348
  group: number;
@@ -327,11 +360,14 @@ export interface CallContract {
327
360
  existingContracts?: string[];
328
361
  inputAssets?: TestInputAsset[];
329
362
  }
363
+ /** CallContractFailed */
330
364
  export interface CallContractFailed {
331
365
  error: string;
332
366
  type: string;
333
367
  }
368
+ /** CallContractResult */
334
369
  export type CallContractResult = CallContractFailed | CallContractSucceeded;
370
+ /** CallContractSucceeded */
335
371
  export interface CallContractSucceeded {
336
372
  returns: Val[];
337
373
  /** @format int32 */
@@ -343,10 +379,12 @@ export interface CallContractSucceeded {
343
379
  debugMessages: DebugMessage[];
344
380
  type: string;
345
381
  }
382
+ /** ChainInfo */
346
383
  export interface ChainInfo {
347
384
  /** @format int32 */
348
385
  currentHeight: number;
349
386
  }
387
+ /** ChainParams */
350
388
  export interface ChainParams {
351
389
  networkId: number;
352
390
  /** @format int32 */
@@ -356,10 +394,12 @@ export interface ChainParams {
356
394
  /** @format int32 */
357
395
  groups: number;
358
396
  }
397
+ /** ChangeActiveAddress */
359
398
  export interface ChangeActiveAddress {
360
399
  /** @format address */
361
400
  address: string;
362
401
  }
402
+ /** CompileContractResult */
363
403
  export interface CompileContractResult {
364
404
  version: string;
365
405
  name: string;
@@ -378,11 +418,13 @@ export interface CompileContractResult {
378
418
  maps?: MapsSig;
379
419
  stdInterfaceId?: string;
380
420
  }
421
+ /** CompileProjectResult */
381
422
  export interface CompileProjectResult {
382
423
  contracts: CompileContractResult[];
383
424
  scripts: CompileScriptResult[];
384
425
  structs?: StructSig[];
385
426
  }
427
+ /** CompileScriptResult */
386
428
  export interface CompileScriptResult {
387
429
  version: string;
388
430
  name: string;
@@ -392,6 +434,7 @@ export interface CompileScriptResult {
392
434
  functions: FunctionSig[];
393
435
  warnings: string[];
394
436
  }
437
+ /** CompilerOptions */
395
438
  export interface CompilerOptions {
396
439
  ignoreUnusedConstantsWarnings?: boolean;
397
440
  ignoreUnusedVariablesWarnings?: boolean;
@@ -400,6 +443,7 @@ export interface CompilerOptions {
400
443
  ignoreUpdateFieldsCheckWarnings?: boolean;
401
444
  ignoreCheckExternalCallerWarnings?: boolean;
402
445
  }
446
+ /** Confirmed */
403
447
  export interface Confirmed {
404
448
  /** @format block-hash */
405
449
  blockHash: string;
@@ -413,14 +457,17 @@ export interface Confirmed {
413
457
  toGroupConfirmations: number;
414
458
  type: string;
415
459
  }
460
+ /** Constant */
416
461
  export interface Constant {
417
462
  name: string;
418
463
  value: Val;
419
464
  }
465
+ /** Contract */
420
466
  export interface Contract {
421
467
  code: string;
422
468
  compilerOptions?: CompilerOptions;
423
469
  }
470
+ /** ContractEvent */
424
471
  export interface ContractEvent {
425
472
  /** @format block-hash */
426
473
  blockHash: string;
@@ -430,6 +477,7 @@ export interface ContractEvent {
430
477
  eventIndex: number;
431
478
  fields: Val[];
432
479
  }
480
+ /** ContractEventByBlockHash */
433
481
  export interface ContractEventByBlockHash {
434
482
  /** @format 32-byte-hash */
435
483
  txId: string;
@@ -439,6 +487,7 @@ export interface ContractEventByBlockHash {
439
487
  eventIndex: number;
440
488
  fields: Val[];
441
489
  }
490
+ /** ContractEventByTxId */
442
491
  export interface ContractEventByTxId {
443
492
  /** @format block-hash */
444
493
  blockHash: string;
@@ -448,17 +497,21 @@ export interface ContractEventByTxId {
448
497
  eventIndex: number;
449
498
  fields: Val[];
450
499
  }
500
+ /** ContractEvents */
451
501
  export interface ContractEvents {
452
502
  events: ContractEvent[];
453
503
  /** @format int32 */
454
504
  nextStart: number;
455
505
  }
506
+ /** ContractEventsByBlockHash */
456
507
  export interface ContractEventsByBlockHash {
457
508
  events: ContractEventByBlockHash[];
458
509
  }
510
+ /** ContractEventsByTxId */
459
511
  export interface ContractEventsByTxId {
460
512
  events: ContractEventByTxId[];
461
513
  }
514
+ /** ContractOutput */
462
515
  export interface ContractOutput {
463
516
  /** @format int32 */
464
517
  hint: number;
@@ -471,6 +524,7 @@ export interface ContractOutput {
471
524
  tokens: Token[];
472
525
  type: string;
473
526
  }
527
+ /** ContractState */
474
528
  export interface ContractState {
475
529
  /** @format address */
476
530
  address: string;
@@ -484,14 +538,17 @@ export interface ContractState {
484
538
  mutFields: Val[];
485
539
  asset: AssetState;
486
540
  }
541
+ /** DebugMessage */
487
542
  export interface DebugMessage {
488
543
  /** @format address */
489
544
  contractAddress: string;
490
545
  message: string;
491
546
  }
547
+ /** DecodeUnsignedTx */
492
548
  export interface DecodeUnsignedTx {
493
549
  unsignedTx: string;
494
550
  }
551
+ /** DecodeUnsignedTxResult */
495
552
  export interface DecodeUnsignedTxResult {
496
553
  /** @format int32 */
497
554
  fromGroup: number;
@@ -499,6 +556,7 @@ export interface DecodeUnsignedTxResult {
499
556
  toGroup: number;
500
557
  unsignedTx: UnsignedTx;
501
558
  }
559
+ /** Destination */
502
560
  export interface Destination {
503
561
  /** @format address */
504
562
  address: string;
@@ -510,25 +568,31 @@ export interface Destination {
510
568
  /** @format hex-string */
511
569
  message?: string;
512
570
  }
571
+ /** DiscoveryAction */
513
572
  export type DiscoveryAction = Reachable | Unreachable;
573
+ /** Enum */
514
574
  export interface Enum {
515
575
  name: string;
516
576
  fields: EnumField[];
517
577
  }
578
+ /** EnumField */
518
579
  export interface EnumField {
519
580
  name: string;
520
581
  value: Val;
521
582
  }
583
+ /** EventSig */
522
584
  export interface EventSig {
523
585
  name: string;
524
586
  fieldNames: string[];
525
587
  fieldTypes: string[];
526
588
  }
589
+ /** FieldsSig */
527
590
  export interface FieldsSig {
528
591
  names: string[];
529
592
  types: string[];
530
593
  isMutable: boolean[];
531
594
  }
595
+ /** FixedAssetOutput */
532
596
  export interface FixedAssetOutput {
533
597
  /** @format int32 */
534
598
  hint: number;
@@ -544,6 +608,7 @@ export interface FixedAssetOutput {
544
608
  /** @format hex-string */
545
609
  message: string;
546
610
  }
611
+ /** FunctionSig */
547
612
  export interface FunctionSig {
548
613
  name: string;
549
614
  usePreapprovedAssets: boolean;
@@ -554,13 +619,23 @@ export interface FunctionSig {
554
619
  paramIsMutable: boolean[];
555
620
  returnTypes: string[];
556
621
  }
622
+ /** GhostUncleBlockEntry */
623
+ export interface GhostUncleBlockEntry {
624
+ /** @format block-hash */
625
+ blockHash: string;
626
+ /** @format address */
627
+ miner: string;
628
+ }
629
+ /** Group */
557
630
  export interface Group {
558
631
  /** @format int32 */
559
632
  group: number;
560
633
  }
634
+ /** HashesAtHeight */
561
635
  export interface HashesAtHeight {
562
636
  headers: string[];
563
637
  }
638
+ /** InterCliquePeerInfo */
564
639
  export interface InterCliquePeerInfo {
565
640
  /** @format clique-id */
566
641
  cliqueId: string;
@@ -577,16 +652,20 @@ export interface InterCliquePeerInfo {
577
652
  isSynced: boolean;
578
653
  clientVersion: string;
579
654
  }
655
+ /** InternalServerError */
580
656
  export interface InternalServerError {
581
657
  detail: string;
582
658
  }
659
+ /** MapsSig */
583
660
  export interface MapsSig {
584
661
  names: string[];
585
662
  types: string[];
586
663
  }
664
+ /** MemPooled */
587
665
  export interface MemPooled {
588
666
  type: string;
589
667
  }
668
+ /** MempoolTransactions */
590
669
  export interface MempoolTransactions {
591
670
  /** @format int32 */
592
671
  fromGroup: number;
@@ -594,19 +673,25 @@ export interface MempoolTransactions {
594
673
  toGroup: number;
595
674
  transactions: TransactionTemplate[];
596
675
  }
676
+ /** MinerAddresses */
597
677
  export interface MinerAddresses {
598
678
  addresses: string[];
599
679
  }
680
+ /** MinerAddressesInfo */
600
681
  export interface MinerAddressesInfo {
601
682
  addresses: AddressInfo[];
602
683
  }
684
+ /** MisbehaviorAction */
603
685
  export type MisbehaviorAction = Ban | Unban;
686
+ /** MultipleCallContract */
604
687
  export interface MultipleCallContract {
605
688
  calls: CallContract[];
606
689
  }
690
+ /** MultipleCallContractResult */
607
691
  export interface MultipleCallContractResult {
608
692
  results: CallContractResult[];
609
693
  }
694
+ /** NodeInfo */
610
695
  export interface NodeInfo {
611
696
  buildInfo: BuildInfo;
612
697
  upnp: boolean;
@@ -617,21 +702,26 @@ export interface NodeInfo {
617
702
  port: number;
618
703
  };
619
704
  }
705
+ /** NodeVersion */
620
706
  export interface NodeVersion {
621
707
  /** @format semver */
622
708
  version: string;
623
709
  }
710
+ /** NotFound */
624
711
  export interface NotFound {
625
712
  detail: string;
626
713
  resource: string;
627
714
  }
715
+ /** Output */
628
716
  export type Output = AssetOutput | ContractOutput;
717
+ /** OutputRef */
629
718
  export interface OutputRef {
630
719
  /** @format int32 */
631
720
  hint: number;
632
721
  /** @format 32-byte-hash */
633
722
  key: string;
634
723
  }
724
+ /** PeerAddress */
635
725
  export interface PeerAddress {
636
726
  /** @format inet-address */
637
727
  address: string;
@@ -642,39 +732,49 @@ export interface PeerAddress {
642
732
  /** @format int32 */
643
733
  minerApiPort: number;
644
734
  }
735
+ /** PeerMisbehavior */
645
736
  export interface PeerMisbehavior {
646
737
  /** @format inet-address */
647
738
  peer: string;
648
739
  status: PeerStatus;
649
740
  }
741
+ /** PeerStatus */
650
742
  export type PeerStatus = Banned | Penalty;
743
+ /** Penalty */
651
744
  export interface Penalty {
652
745
  /** @format int32 */
653
746
  value: number;
654
747
  type: string;
655
748
  }
749
+ /** Project */
656
750
  export interface Project {
657
751
  code: string;
658
752
  compilerOptions?: CompilerOptions;
659
753
  }
754
+ /** Reachable */
660
755
  export interface Reachable {
661
756
  peers: string[];
662
757
  type: string;
663
758
  }
759
+ /** Result */
664
760
  export interface Result {
665
761
  /** @format bigint */
666
762
  hashrate: string;
667
763
  }
764
+ /** RevealMnemonic */
668
765
  export interface RevealMnemonic {
669
766
  password: string;
670
767
  }
768
+ /** RevealMnemonicResult */
671
769
  export interface RevealMnemonicResult {
672
770
  mnemonic: string;
673
771
  }
772
+ /** Script */
674
773
  export interface Script {
675
774
  code: string;
676
775
  compilerOptions?: CompilerOptions;
677
776
  }
777
+ /** SelfClique */
678
778
  export interface SelfClique {
679
779
  /** @format clique-id */
680
780
  cliqueId: string;
@@ -682,16 +782,21 @@ export interface SelfClique {
682
782
  selfReady: boolean;
683
783
  synced: boolean;
684
784
  }
785
+ /** ServiceUnavailable */
685
786
  export interface ServiceUnavailable {
686
787
  detail: string;
687
788
  }
789
+ /** Sign */
688
790
  export interface Sign {
791
+ /** @format 32-byte-hash */
689
792
  data: string;
690
793
  }
794
+ /** SignResult */
691
795
  export interface SignResult {
692
796
  /** @format signature */
693
797
  signature: string;
694
798
  }
799
+ /** Source */
695
800
  export interface Source {
696
801
  /** @format hex-string */
697
802
  fromPublicKey: string;
@@ -702,21 +807,25 @@ export interface Source {
702
807
  gasAmount?: number;
703
808
  utxos?: OutputRef[];
704
809
  }
810
+ /** StructSig */
705
811
  export interface StructSig {
706
812
  name: string;
707
813
  fieldNames: string[];
708
814
  fieldTypes: string[];
709
815
  isMutable: boolean[];
710
816
  }
817
+ /** SubmitMultisig */
711
818
  export interface SubmitMultisig {
712
819
  unsignedTx: string;
713
820
  signatures: string[];
714
821
  }
822
+ /** SubmitTransaction */
715
823
  export interface SubmitTransaction {
716
824
  unsignedTx: string;
717
825
  /** @format signature */
718
826
  signature: string;
719
827
  }
828
+ /** SubmitTxResult */
720
829
  export interface SubmitTxResult {
721
830
  /** @format 32-byte-hash */
722
831
  txId: string;
@@ -725,6 +834,7 @@ export interface SubmitTxResult {
725
834
  /** @format int32 */
726
835
  toGroup: number;
727
836
  }
837
+ /** Sweep */
728
838
  export interface Sweep {
729
839
  /** @format address */
730
840
  toAddress: string;
@@ -739,6 +849,7 @@ export interface Sweep {
739
849
  /** @format block-hash */
740
850
  targetBlockHash?: string;
741
851
  }
852
+ /** SweepAddressTransaction */
742
853
  export interface SweepAddressTransaction {
743
854
  /** @format 32-byte-hash */
744
855
  txId: string;
@@ -748,10 +859,12 @@ export interface SweepAddressTransaction {
748
859
  /** @format uint256 */
749
860
  gasPrice: string;
750
861
  }
862
+ /** TargetToHashrate */
751
863
  export interface TargetToHashrate {
752
864
  /** @format hex-string */
753
865
  target: string;
754
866
  }
867
+ /** TestContract */
755
868
  export interface TestContract {
756
869
  /** @format int32 */
757
870
  group?: number;
@@ -776,6 +889,7 @@ export interface TestContract {
776
889
  existingContracts?: ContractState[];
777
890
  inputAssets?: TestInputAsset[];
778
891
  }
892
+ /** TestContractResult */
779
893
  export interface TestContractResult {
780
894
  /** @format address */
781
895
  address: string;
@@ -790,17 +904,20 @@ export interface TestContractResult {
790
904
  events: ContractEventByTxId[];
791
905
  debugMessages: DebugMessage[];
792
906
  }
907
+ /** TestInputAsset */
793
908
  export interface TestInputAsset {
794
909
  /** @format address */
795
910
  address: string;
796
911
  asset: AssetState;
797
912
  }
913
+ /** Token */
798
914
  export interface Token {
799
915
  /** @format 32-byte-hash */
800
916
  id: string;
801
917
  /** @format uint256 */
802
918
  amount: string;
803
919
  }
920
+ /** Transaction */
804
921
  export interface Transaction {
805
922
  unsigned: UnsignedTx;
806
923
  scriptExecutionOk: boolean;
@@ -809,11 +926,13 @@ export interface Transaction {
809
926
  inputSignatures: string[];
810
927
  scriptSignatures: string[];
811
928
  }
929
+ /** TransactionTemplate */
812
930
  export interface TransactionTemplate {
813
931
  unsigned: UnsignedTx;
814
932
  inputSignatures: string[];
815
933
  scriptSignatures: string[];
816
934
  }
935
+ /** Transfer */
817
936
  export interface Transfer {
818
937
  destinations: Destination[];
819
938
  /** @format gas */
@@ -823,6 +942,7 @@ export interface Transfer {
823
942
  /** @format int32 */
824
943
  utxosLimit?: number;
825
944
  }
945
+ /** TransferResult */
826
946
  export interface TransferResult {
827
947
  /** @format 32-byte-hash */
828
948
  txId: string;
@@ -831,13 +951,17 @@ export interface TransferResult {
831
951
  /** @format group-index */
832
952
  toGroup: number;
833
953
  }
954
+ /** TransferResults */
834
955
  export interface TransferResults {
835
956
  results: TransferResult[];
836
957
  }
958
+ /** TxNotFound */
837
959
  export interface TxNotFound {
838
960
  type: string;
839
961
  }
962
+ /** TxStatus */
840
963
  export type TxStatus = Confirmed | MemPooled | TxNotFound;
964
+ /** UTXO */
841
965
  export interface UTXO {
842
966
  ref: OutputRef;
843
967
  /** @format uint256 */
@@ -848,21 +972,26 @@ export interface UTXO {
848
972
  /** @format hex-string */
849
973
  additionalData?: string;
850
974
  }
975
+ /** UTXOs */
851
976
  export interface UTXOs {
852
977
  utxos: UTXO[];
853
978
  warning?: string;
854
979
  }
980
+ /** Unauthorized */
855
981
  export interface Unauthorized {
856
982
  detail: string;
857
983
  }
984
+ /** Unban */
858
985
  export interface Unban {
859
986
  peers: string[];
860
987
  type: string;
861
988
  }
989
+ /** Unreachable */
862
990
  export interface Unreachable {
863
991
  peers: string[];
864
992
  type: string;
865
993
  }
994
+ /** UnsignedTx */
866
995
  export interface UnsignedTx {
867
996
  /** @format 32-byte-hash */
868
997
  txId: string;
@@ -877,35 +1006,43 @@ export interface UnsignedTx {
877
1006
  inputs: AssetInput[];
878
1007
  fixedOutputs: FixedAssetOutput[];
879
1008
  }
1009
+ /** Val */
880
1010
  export type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256;
1011
+ /** ValAddress */
881
1012
  export interface ValAddress {
882
1013
  /** @format address */
883
1014
  value: string;
884
1015
  type: string;
885
1016
  }
1017
+ /** ValArray */
886
1018
  export interface ValArray {
887
1019
  value: Val[];
888
1020
  type: string;
889
1021
  }
1022
+ /** ValBool */
890
1023
  export interface ValBool {
891
1024
  value: boolean;
892
1025
  type: string;
893
1026
  }
1027
+ /** ValByteVec */
894
1028
  export interface ValByteVec {
895
1029
  /** @format hex-string */
896
1030
  value: string;
897
1031
  type: string;
898
1032
  }
1033
+ /** ValI256 */
899
1034
  export interface ValI256 {
900
1035
  /** @format bigint */
901
1036
  value: string;
902
1037
  type: string;
903
1038
  }
1039
+ /** ValU256 */
904
1040
  export interface ValU256 {
905
1041
  /** @format uint256 */
906
1042
  value: string;
907
1043
  type: string;
908
1044
  }
1045
+ /** VerifySignature */
909
1046
  export interface VerifySignature {
910
1047
  /** @format hex-string */
911
1048
  data: string;
@@ -914,6 +1051,7 @@ export interface VerifySignature {
914
1051
  /** @format public-key */
915
1052
  publicKey: string;
916
1053
  }
1054
+ /** WalletCreation */
917
1055
  export interface WalletCreation {
918
1056
  password: string;
919
1057
  walletName: string;
@@ -921,13 +1059,16 @@ export interface WalletCreation {
921
1059
  mnemonicPassphrase?: string;
922
1060
  mnemonicSize?: number;
923
1061
  }
1062
+ /** WalletCreationResult */
924
1063
  export interface WalletCreationResult {
925
1064
  walletName: string;
926
1065
  mnemonic: string;
927
1066
  }
1067
+ /** WalletDeletion */
928
1068
  export interface WalletDeletion {
929
1069
  password: string;
930
1070
  }
1071
+ /** WalletRestore */
931
1072
  export interface WalletRestore {
932
1073
  password: string;
933
1074
  mnemonic: string;
@@ -935,13 +1076,16 @@ export interface WalletRestore {
935
1076
  isMiner?: boolean;
936
1077
  mnemonicPassphrase?: string;
937
1078
  }
1079
+ /** WalletRestoreResult */
938
1080
  export interface WalletRestoreResult {
939
1081
  walletName: string;
940
1082
  }
1083
+ /** WalletStatus */
941
1084
  export interface WalletStatus {
942
1085
  walletName: string;
943
1086
  locked: boolean;
944
1087
  }
1088
+ /** WalletUnlock */
945
1089
  export interface WalletUnlock {
946
1090
  password: string;
947
1091
  mnemonicPassphrase?: string;
@@ -1007,7 +1151,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
1007
1151
  }
1008
1152
  /**
1009
1153
  * @title Alephium API
1010
- * @version 2.14.0
1154
+ * @version 3.1.0
1011
1155
  * @baseUrl ../
1012
1156
  */
1013
1157
  export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -1373,6 +1517,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1373
1517
  * @request GET:/blockflow/blocks/{block_hash}
1374
1518
  */
1375
1519
  getBlockflowBlocksBlockHash: (blockHash: string, params?: RequestParams) => Promise<BlockEntry>;
1520
+ /**
1521
+ * No description
1522
+ *
1523
+ * @tags Blockflow
1524
+ * @name GetBlockflowMainChainBlockByGhostUncleGhostUncleHash
1525
+ * @summary Get a mainchain block by ghost uncle hash
1526
+ * @request GET:/blockflow/main-chain-block-by-ghost-uncle/{ghost_uncle_hash}
1527
+ */
1528
+ getBlockflowMainChainBlockByGhostUncleGhostUncleHash: (ghostUncleHash: string, params?: RequestParams) => Promise<BlockEntry>;
1376
1529
  /**
1377
1530
  * No description
1378
1531
  *