@alephium/web3 1.0.2-rc.2 → 1.0.2

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,48 +1,34 @@
1
- /** Val */
2
- export type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256;
3
- /** ContractOutput */
4
- export interface ContractOutput {
5
- /** @format address */
6
- address: string;
7
- /** @format int32 */
8
- hint: number;
9
- /** @format 32-byte-hash */
10
- spent?: string;
11
- /** @format uint256 */
12
- attoAlphAmount: string;
13
- tokens?: Token[];
14
- fixedOutput: boolean;
15
- type: string;
16
- /** @format 32-byte-hash */
17
- key: string;
18
- }
19
- /** IntervalType */
20
- export declare enum IntervalType {
21
- Daily = "daily",
22
- Hourly = "hourly",
23
- Weekly = "weekly"
24
- }
25
- /** Token */
26
- export interface Token {
27
- /** @format uint256 */
28
- amount: string;
1
+ export interface AcceptedTransaction {
29
2
  /** @format 32-byte-hash */
30
- id: string;
31
- }
32
- /** ContractLivenessLocation */
33
- export interface ContractLivenessLocation {
3
+ hash: string;
34
4
  /** @format block-hash */
35
5
  blockHash: string;
36
- /** @format 32-byte-hash */
37
- txHash: string;
38
6
  /** @format int64 */
39
7
  timestamp: number;
40
- }
41
- /** NonStandard */
42
- export interface NonStandard {
8
+ inputs?: Input[];
9
+ outputs?: Output[];
10
+ /** @format int32 */
11
+ gasAmount: number;
12
+ /** @format uint256 */
13
+ gasPrice: string;
14
+ scriptExecutionOk: boolean;
15
+ coinbase: boolean;
43
16
  type: string;
44
17
  }
45
- /** AddressTokenBalance */
18
+ export interface AddressBalance {
19
+ /** @format uint256 */
20
+ balance: string;
21
+ /** @format uint256 */
22
+ lockedBalance: string;
23
+ }
24
+ export interface AddressInfo {
25
+ /** @format uint256 */
26
+ balance: string;
27
+ /** @format uint256 */
28
+ lockedBalance: string;
29
+ /** @format int32 */
30
+ txNumber: number;
31
+ }
46
32
  export interface AddressTokenBalance {
47
33
  /** @format 32-byte-hash */
48
34
  tokenId: string;
@@ -51,476 +37,365 @@ export interface AddressTokenBalance {
51
37
  /** @format uint256 */
52
38
  lockedBalance: string;
53
39
  }
54
- /** OutputRef */
55
- export interface OutputRef {
40
+ export interface AmountHistory {
41
+ amountHistory?: TimedAmount[];
42
+ }
43
+ export interface AssetOutput {
56
44
  /** @format int32 */
57
45
  hint: number;
58
46
  /** @format 32-byte-hash */
59
47
  key: string;
60
- }
61
- /** Input */
62
- export interface Input {
63
- /** @format address */
64
- address?: string;
65
- contractInput: boolean;
66
- /** @format hex-string */
67
- unlockScript?: string;
68
48
  /** @format uint256 */
69
- attoAlphAmount?: string;
49
+ attoAlphAmount: string;
50
+ /** @format address */
51
+ address: string;
70
52
  tokens?: Token[];
71
- /** @format 32-byte-hash */
72
- txHashRef?: string;
73
- outputRef: OutputRef;
74
- }
75
- /** PerChainCount */
76
- export interface PerChainCount {
77
- /** @format int32 */
78
- chainFrom: number;
79
- /** @format int32 */
80
- chainTo: number;
81
53
  /** @format int64 */
82
- count: number;
83
- }
84
- /** Unknown */
85
- export interface Unknown {
86
- id: string;
54
+ lockTime?: number;
55
+ /** @format hex-string */
56
+ message?: string;
57
+ /** @format 32-byte-hash */
58
+ spent?: string;
87
59
  type: string;
88
60
  }
89
- /** BlockEntry */
90
- export interface BlockEntry {
61
+ export interface BadRequest {
62
+ detail: string;
63
+ }
64
+ export interface BlockEntryLite {
91
65
  /** @format block-hash */
92
- parent?: string;
66
+ hash: string;
67
+ /** @format int64 */
68
+ timestamp: number;
93
69
  /** @format group-index */
94
70
  chainFrom: number;
95
- /** @format 32-byte-hash */
96
- depStateHash: string;
97
- deps?: string[];
98
- /** @format hex-string */
99
- nonce: string;
100
- version: number;
101
- /** @format hex-string */
102
- target: string;
103
- mainChain: boolean;
104
- /** @format 32-byte-hash */
105
- txsHash: string;
106
71
  /** @format group-index */
107
72
  chainTo: number;
108
- ghostUncles?: GhostUncle[];
109
- /** @format bigint */
110
- hashRate: string;
111
- /** @format int32 */
112
- txNumber: number;
113
- /** @format block-hash */
114
- hash: string;
115
73
  /** @format int32 */
116
74
  height: number;
117
- /** @format int64 */
118
- timestamp: number;
119
- }
120
- /** ContractParent */
121
- export interface ContractParent {
122
- /** @format address */
123
- parent?: string;
124
- }
125
- /** ServiceUnavailable */
126
- export interface ServiceUnavailable {
127
- detail: string;
128
- }
129
- /** ValI256 */
130
- export interface ValI256 {
131
- type: string;
75
+ /** @format int32 */
76
+ txNumber: number;
77
+ mainChain: boolean;
132
78
  /** @format bigint */
133
- value: string;
79
+ hashRate: string;
134
80
  }
135
- /** ContractLiveness */
136
81
  export interface ContractLiveness {
137
82
  /** @format address */
138
83
  parent?: string;
139
- interfaceId?: StdInterfaceId;
140
- destruction?: ContractLivenessLocation;
141
84
  creation: ContractLivenessLocation;
85
+ destruction?: ContractLivenessLocation;
86
+ interfaceId?: StdInterfaceId;
142
87
  }
143
- /** AssetOutput */
144
- export interface AssetOutput {
145
- /** @format address */
146
- address: string;
88
+ export interface ContractLivenessLocation {
89
+ /** @format block-hash */
90
+ blockHash: string;
91
+ /** @format 32-byte-hash */
92
+ txHash: string;
147
93
  /** @format int64 */
148
- lockTime?: number;
94
+ timestamp: number;
95
+ }
96
+ export interface ContractOutput {
149
97
  /** @format int32 */
150
98
  hint: number;
151
99
  /** @format 32-byte-hash */
152
- spent?: string;
100
+ key: string;
153
101
  /** @format uint256 */
154
102
  attoAlphAmount: string;
103
+ /** @format address */
104
+ address: string;
155
105
  tokens?: Token[];
156
- fixedOutput: boolean;
157
- type: string;
158
- /** @format hex-string */
159
- message?: string;
160
106
  /** @format 32-byte-hash */
161
- key: string;
162
- }
163
- /** NFT */
164
- export interface NFT {
107
+ spent?: string;
165
108
  type: string;
166
109
  }
167
- /** AcceptedTransaction */
168
- export interface AcceptedTransaction {
169
- outputs?: Output[];
110
+ export interface ContractParent {
111
+ /** @format address */
112
+ parent?: string;
113
+ }
114
+ export interface Event {
170
115
  /** @format block-hash */
171
116
  blockHash: string;
172
- scriptSignatures?: string[];
173
- inputs?: Input[];
174
- scriptExecutionOk: boolean;
175
- type: string;
176
- scriptOpt?: string;
177
- version: number;
178
- coinbase: boolean;
179
- inputSignatures?: string[];
117
+ /** @format 32-byte-hash */
118
+ txHash: string;
119
+ /** @format address */
120
+ contractAddress: string;
121
+ /** @format address */
122
+ inputAddress?: string;
180
123
  /** @format int32 */
181
- gasAmount: number;
182
- networkId: number;
124
+ eventIndex: number;
125
+ fields?: Val[];
126
+ }
127
+ export interface ExplorerInfo {
128
+ releaseVersion: string;
129
+ commit: string;
130
+ /** @format int32 */
131
+ migrationsVersion: number;
132
+ /** @format int64 */
133
+ lastFinalizedInputTime: number;
134
+ }
135
+ export interface FungibleToken {
136
+ type: string;
137
+ }
138
+ export interface FungibleTokenMetadata {
183
139
  /** @format 32-byte-hash */
184
- hash: string;
140
+ id: string;
141
+ symbol: string;
142
+ name: string;
185
143
  /** @format uint256 */
186
- gasPrice: string;
144
+ decimals: string;
145
+ }
146
+ export interface Hashrate {
187
147
  /** @format int64 */
188
148
  timestamp: number;
149
+ hashrate: number;
150
+ value: number;
189
151
  }
190
- /** TokenSupply */
191
- export interface TokenSupply {
192
- /** @format uint256 */
193
- circulating: string;
194
- /** @format uint256 */
195
- total: string;
196
- /** @format uint256 */
197
- reserved: string;
198
- /** @format uint256 */
199
- maximum: string;
152
+ export interface Input {
153
+ outputRef: OutputRef;
154
+ /** @format hex-string */
155
+ unlockScript?: string;
156
+ /** @format 32-byte-hash */
157
+ txHashRef?: string;
158
+ /** @format address */
159
+ address?: string;
200
160
  /** @format uint256 */
201
- locked: string;
202
- /** @format int64 */
203
- timestamp: number;
161
+ attoAlphAmount?: string;
162
+ tokens?: Token[];
204
163
  }
205
- /** PendingTransaction */
206
- export interface PendingTransaction {
207
- outputs?: Output[];
164
+ export interface InternalServerError {
165
+ detail: string;
166
+ }
167
+ export declare enum IntervalType {
168
+ Daily = "daily",
169
+ Hourly = "hourly",
170
+ Weekly = "weekly"
171
+ }
172
+ export interface ListBlocks {
173
+ /** @format int32 */
174
+ total: number;
175
+ blocks?: BlockEntryLite[];
176
+ }
177
+ export interface LogbackValue {
178
+ name: string;
179
+ level: string;
180
+ }
181
+ export interface MempoolTransaction {
182
+ /** @format 32-byte-hash */
183
+ hash: string;
208
184
  /** @format group-index */
209
185
  chainFrom: number;
210
- /** @format int64 */
211
- lastSeen: number;
212
186
  /** @format group-index */
213
187
  chainTo: number;
214
188
  inputs?: Input[];
189
+ outputs?: Output[];
215
190
  /** @format int32 */
216
191
  gasAmount: number;
217
- type: string;
218
- /** @format 32-byte-hash */
219
- hash: string;
220
192
  /** @format uint256 */
221
193
  gasPrice: string;
194
+ /** @format int64 */
195
+ lastSeen: number;
222
196
  }
223
- /** TransactionLike */
224
- export type TransactionLike = AcceptedTransaction | PendingTransaction;
225
- /** LogbackValue */
226
- export interface LogbackValue {
227
- level: string;
228
- name: string;
197
+ export interface NFT {
198
+ type: string;
229
199
  }
230
- /** ValU256 */
231
- export interface ValU256 {
200
+ export interface NFTCollection {
232
201
  type: string;
233
- /** @format uint256 */
234
- value: string;
235
202
  }
236
- /** BlockEntryLite */
237
- export interface BlockEntryLite {
238
- mainChain: boolean;
203
+ export interface NFTCollectionMetadata {
204
+ /** @format address */
205
+ address: string;
206
+ collectionUri: string;
207
+ }
208
+ export interface NFTCollectionWithRoyalty {
209
+ type: string;
210
+ }
211
+ export interface NFTMetadata {
212
+ /** @format 32-byte-hash */
213
+ id: string;
214
+ tokenUri: string;
215
+ /** @format 32-byte-hash */
216
+ collectionId: string;
217
+ /** @format uint256 */
218
+ nftIndex: string;
219
+ }
220
+ export interface NonStandard {
221
+ type: string;
222
+ }
223
+ export interface NotFound {
224
+ detail: string;
225
+ resource: string;
226
+ }
227
+ export type Output = AssetOutput | ContractOutput;
228
+ export interface OutputRef {
229
+ /** @format int32 */
230
+ hint: number;
231
+ /** @format 32-byte-hash */
232
+ key: string;
233
+ }
234
+ export interface PendingTransaction {
235
+ /** @format 32-byte-hash */
236
+ hash: string;
239
237
  /** @format group-index */
240
238
  chainFrom: number;
241
239
  /** @format group-index */
242
240
  chainTo: number;
243
- /** @format bigint */
244
- hashRate: string;
241
+ inputs?: Input[];
242
+ outputs?: Output[];
245
243
  /** @format int32 */
246
- txNumber: number;
247
- /** @format block-hash */
248
- hash: string;
244
+ gasAmount: number;
245
+ /** @format uint256 */
246
+ gasPrice: string;
247
+ /** @format int64 */
248
+ lastSeen: number;
249
+ type: string;
250
+ }
251
+ export interface PerChainCount {
249
252
  /** @format int32 */
250
- height: number;
253
+ chainFrom: number;
254
+ /** @format int32 */
255
+ chainTo: number;
251
256
  /** @format int64 */
252
- timestamp: number;
257
+ count: number;
253
258
  }
254
- /** PerChainHeight */
255
- export interface PerChainHeight {
259
+ export interface PerChainDuration {
256
260
  /** @format int32 */
257
261
  chainFrom: number;
258
262
  /** @format int32 */
259
263
  chainTo: number;
260
264
  /** @format int64 */
261
- value: number;
265
+ duration: number;
262
266
  /** @format int64 */
263
- height: number;
264
- }
265
- /** ValByteVec */
266
- export interface ValByteVec {
267
- type: string;
268
- /** @format hex-string */
269
- value: string;
270
- }
271
- /** TokenStdInterfaceId */
272
- export declare enum TokenStdInterfaceId {
273
- Fungible = "fungible",
274
- NonFungible = "non-fungible",
275
- NonStandard = "non-standard"
267
+ value: number;
276
268
  }
277
- /** ExplorerInfo */
278
- export interface ExplorerInfo {
279
- releaseVersion: string;
280
- commit: string;
269
+ export interface PerChainHeight {
281
270
  /** @format int32 */
282
- migrationsVersion: number;
271
+ chainFrom: number;
272
+ /** @format int32 */
273
+ chainTo: number;
283
274
  /** @format int64 */
284
- lastFinalizedInputTime: number;
285
- }
286
- /** ValArray */
287
- export interface ValArray {
288
- type: string;
289
- value: Val[];
290
- }
291
- /** BadRequest */
292
- export interface BadRequest {
293
- detail: string;
294
- }
295
- /** Hashrate */
296
- export interface Hashrate {
297
- hashrate: number;
298
- value: number;
275
+ height: number;
299
276
  /** @format int64 */
300
- timestamp: number;
277
+ value: number;
301
278
  }
302
- /** Transaction */
303
- export interface Transaction {
304
- outputs?: Output[];
305
- /** @format block-hash */
306
- blockHash: string;
307
- scriptSignatures?: string[];
308
- inputs?: Input[];
309
- scriptExecutionOk: boolean;
310
- scriptOpt?: string;
311
- version: number;
312
- coinbase: boolean;
313
- inputSignatures?: string[];
314
- /** @format int32 */
315
- gasAmount: number;
316
- networkId: number;
317
- /** @format 32-byte-hash */
318
- hash: string;
319
- /** @format uint256 */
320
- gasPrice: string;
279
+ export interface PerChainTimedCount {
321
280
  /** @format int64 */
322
281
  timestamp: number;
282
+ totalCountPerChain?: PerChainCount[];
323
283
  }
324
- /** FungibleToken */
325
- export interface FungibleToken {
326
- type: string;
327
- }
328
- /** GhostUncle */
329
- export interface GhostUncle {
330
- /** @format block-hash */
331
- blockHash: string;
332
- /** @format address */
333
- miner: string;
284
+ export interface ServiceUnavailable {
285
+ detail: string;
334
286
  }
335
- /** NFTCollectionWithRoyalty */
336
- export interface NFTCollectionWithRoyalty {
337
- type: string;
287
+ export type StdInterfaceId = FungibleToken | NFT | NFTCollection | NFTCollectionWithRoyalty | NonStandard | Unknown;
288
+ export interface SubContracts {
289
+ subContracts?: string[];
338
290
  }
339
- /** PerChainTimedCount */
340
- export interface PerChainTimedCount {
341
- totalCountPerChain?: PerChainCount[];
291
+ export interface TimedAmount {
342
292
  /** @format int64 */
343
293
  timestamp: number;
294
+ /** @format bigint */
295
+ amount: string;
344
296
  }
345
- /** MempoolTransaction */
346
- export interface MempoolTransaction {
347
- outputs?: Output[];
348
- /** @format group-index */
349
- chainFrom: number;
297
+ export interface TimedCount {
350
298
  /** @format int64 */
351
- lastSeen: number;
352
- /** @format group-index */
353
- chainTo: number;
354
- inputs?: Input[];
355
- /** @format int32 */
356
- gasAmount: number;
357
- /** @format 32-byte-hash */
358
- hash: string;
359
- /** @format uint256 */
360
- gasPrice: string;
361
- }
362
- export declare enum TokensWithPrice {
363
- WETH = "WETH",
364
- ALPH = "ALPH",
365
- USDT = "USDT",
366
- AYIN = "AYIN",
367
- DAI = "DAI",
368
- USDC = "USDC",
369
- WBTC = "WBTC"
370
- }
371
- export declare enum MaxSizeTokens {
372
- Value80 = 80
373
- }
374
- /** NFTCollection */
375
- export interface NFTCollection {
376
- type: string;
377
- }
378
- export declare enum MaxSizeAddressesForTokens {
379
- Value80 = 80
380
- }
381
- /** InternalServerError */
382
- export interface InternalServerError {
383
- detail: string;
299
+ timestamp: number;
300
+ /** @format int64 */
301
+ totalCountAllChains: number;
384
302
  }
385
- /** TimedPrices */
386
303
  export interface TimedPrices {
387
304
  timestamps?: number[];
388
305
  prices?: number[];
389
306
  }
390
- /** TimedCount */
391
- export interface TimedCount {
392
- /** @format int64 */
393
- totalCountAllChains: number;
394
- /** @format int64 */
395
- timestamp: number;
396
- }
397
- /** NFTMetadata */
398
- export interface NFTMetadata {
399
- /** @format uint256 */
400
- nftIndex: string;
401
- tokenUri: string;
307
+ export interface Token {
402
308
  /** @format 32-byte-hash */
403
309
  id: string;
310
+ /** @format uint256 */
311
+ amount: string;
312
+ }
313
+ export interface TokenInfo {
404
314
  /** @format 32-byte-hash */
405
- collectionId: string;
315
+ token: string;
316
+ /** Raw interface id, e.g. 0001 */
317
+ stdInterfaceId?: TokenStdInterfaceId | string;
406
318
  }
407
- /** PerChainDuration */
408
- export interface PerChainDuration {
319
+ export declare enum TokenStdInterfaceId {
320
+ Fungible = "fungible",
321
+ NonFungible = "non-fungible",
322
+ NonStandard = "non-standard"
323
+ }
324
+ export interface TokenSupply {
409
325
  /** @format int64 */
410
- duration: number;
411
- /** @format int32 */
412
- chainFrom: number;
413
- /** @format int32 */
414
- chainTo: number;
326
+ timestamp: number;
327
+ /** @format uint256 */
328
+ total: string;
329
+ /** @format uint256 */
330
+ circulating: string;
331
+ /** @format uint256 */
332
+ reserved: string;
333
+ /** @format uint256 */
334
+ locked: string;
335
+ /** @format uint256 */
336
+ maximum: string;
337
+ }
338
+ export interface Transaction {
339
+ /** @format 32-byte-hash */
340
+ hash: string;
341
+ /** @format block-hash */
342
+ blockHash: string;
415
343
  /** @format int64 */
416
- value: number;
344
+ timestamp: number;
345
+ inputs?: Input[];
346
+ outputs?: Output[];
347
+ /** @format int32 */
348
+ gasAmount: number;
349
+ /** @format uint256 */
350
+ gasPrice: string;
351
+ scriptExecutionOk: boolean;
352
+ coinbase: boolean;
417
353
  }
418
- /** StdInterfaceId */
419
- export type StdInterfaceId = FungibleToken | NFT | NFTCollection | NFTCollectionWithRoyalty | NonStandard | Unknown;
420
- /** Output */
421
- export type Output = AssetOutput | ContractOutput;
422
- /** Unauthorized */
354
+ export type TransactionLike = AcceptedTransaction | PendingTransaction;
423
355
  export interface Unauthorized {
424
356
  detail: string;
425
357
  }
426
- /** NFTCollectionMetadata */
427
- export interface NFTCollectionMetadata {
428
- collectionUri: string;
429
- /** @format address */
430
- address: string;
358
+ export interface Unknown {
359
+ id: string;
360
+ type: string;
431
361
  }
432
- /** ValAddress */
362
+ export type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256;
433
363
  export interface ValAddress {
434
- type: string;
435
364
  /** @format address */
436
365
  value: string;
437
- }
438
- /** ValBool */
439
- export interface ValBool {
440
366
  type: string;
441
- value: boolean;
442
367
  }
443
- /** FungibleTokenMetadata */
444
- export interface FungibleTokenMetadata {
445
- symbol: string;
446
- /** @format uint256 */
447
- decimals: string;
448
- name: string;
449
- /** @format 32-byte-hash */
450
- id: string;
368
+ export interface ValArray {
369
+ value: Val[];
370
+ type: string;
451
371
  }
452
- export declare enum MaxSizeAddresses {
453
- Value80 = 80
372
+ export interface ValBool {
373
+ value: boolean;
374
+ type: string;
454
375
  }
455
- export declare enum Currencies {
456
- Btc = "btc",
457
- Eth = "eth",
458
- Usd = "usd",
459
- Eur = "eur",
460
- Chf = "chf",
461
- Gbp = "gbp",
462
- Idr = "idr",
463
- Vnd = "vnd",
464
- Rub = "rub",
465
- Try = "try",
466
- Cad = "cad",
467
- Aud = "aud"
376
+ export interface ValByteVec {
377
+ /** @format hex-string */
378
+ value: string;
379
+ type: string;
468
380
  }
469
- /** AddressInfo */
470
- export interface AddressInfo {
471
- /** @format uint256 */
472
- balance: string;
473
- /** @format uint256 */
474
- lockedBalance: string;
475
- /** @format int32 */
476
- txNumber: number;
381
+ export interface ValI256 {
382
+ /** @format bigint */
383
+ value: string;
384
+ type: string;
477
385
  }
478
- /** AddressBalance */
479
- export interface AddressBalance {
480
- /** @format uint256 */
481
- balance: string;
386
+ export interface ValU256 {
482
387
  /** @format uint256 */
483
- lockedBalance: string;
484
- }
485
- /** AmountHistory */
486
- export interface AmountHistory {
487
- amountHistory?: string[][];
488
- }
489
- /** Event */
490
- export interface Event {
491
- /** @format block-hash */
492
- blockHash: string;
493
- /** @format address */
494
- inputAddress?: string;
495
- /** @format address */
496
- contractAddress: string;
497
- /** @format int32 */
498
- eventIndex: number;
499
- fields?: Val[];
500
- /** @format 32-byte-hash */
501
- txHash: string;
502
- }
503
- /** ListBlocks */
504
- export interface ListBlocks {
505
- /** @format int32 */
506
- total: number;
507
- blocks?: BlockEntryLite[];
388
+ value: string;
389
+ type: string;
508
390
  }
509
- /** SubContracts */
510
- export interface SubContracts {
511
- subContracts?: string[];
391
+ export declare enum MaxSizeTokens {
392
+ Value80 = 80
512
393
  }
513
- /** TokenInfo */
514
- export interface TokenInfo {
515
- /** Raw interface id, e.g. 0001 */
516
- stdInterfaceId?: TokenStdInterfaceId | string;
517
- /** @format 32-byte-hash */
518
- token: string;
394
+ export declare enum MaxSizeAddressesForTokens {
395
+ Value80 = 80
519
396
  }
520
- /** NotFound */
521
- export interface NotFound {
522
- resource: string;
523
- detail: string;
397
+ export declare enum MaxSizeAddresses {
398
+ Value80 = 80
524
399
  }
525
400
  import 'cross-fetch/polyfill';
526
401
  export type QueryParamsType = Record<string | number, any>;
@@ -586,120 +461,113 @@ export declare class HttpClient<SecurityDataType = unknown> {
586
461
  * @version 1.0
587
462
  */
588
463
  export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
589
- contracts: {
464
+ blocks: {
590
465
  /**
591
- * @description Get sub contract addresses
466
+ * @description List latest blocks
592
467
  *
593
- * @tags Contracts
594
- * @name GetContractsContractAddressSubContracts
595
- * @request GET:/contracts/{contract_address}/sub-contracts
468
+ * @tags Blocks
469
+ * @name GetBlocks
470
+ * @request GET:/blocks
596
471
  */
597
- getContractsContractAddressSubContracts: (contractAddress: string, query?: {
472
+ getBlocks: (query?: {
598
473
  /**
599
474
  * Page number
600
475
  * @format int32
601
- * @min 1
602
476
  */
603
477
  page?: number;
604
478
  /**
605
479
  * Number of items per page
606
480
  * @format int32
607
- * @min 0
608
- * @max 100
609
481
  */
610
482
  limit?: number;
611
- }, params?: RequestParams) => Promise<SubContracts>;
612
- /**
613
- * @description Get contract liveness
614
- *
615
- * @tags Contracts
616
- * @name GetContractsContractAddressCurrentLiveness
617
- * @request GET:/contracts/{contract_address}/current-liveness
618
- */
619
- getContractsContractAddressCurrentLiveness: (contractAddress: string, params?: RequestParams) => Promise<ContractLiveness>;
620
- /**
621
- * @description Get contract parent address if exist
622
- *
623
- * @tags Contracts
624
- * @name GetContractsContractAddressParent
625
- * @request GET:/contracts/{contract_address}/parent
626
- */
627
- getContractsContractAddressParent: (contractAddress: string, params?: RequestParams) => Promise<ContractParent>;
628
- };
629
- addresses: {
483
+ /** Reverse pagination */
484
+ reverse?: boolean;
485
+ }, params?: RequestParams) => Promise<ListBlocks>;
630
486
  /**
631
- * @description Are the addresses used (at least 1 transaction)
487
+ * @description Get a block with hash
632
488
  *
633
- * @tags Addresses, Addresses
634
- * @name PostAddressesUsed
635
- * @request POST:/addresses/used
489
+ * @tags Blocks
490
+ * @name GetBlocksBlockHash
491
+ * @request GET:/blocks/{block_hash}
636
492
  */
637
- postAddressesUsed: (data?: string[], params?: RequestParams) => Promise<boolean[]>;
493
+ getBlocksBlockHash: (blockHash: string, params?: RequestParams) => Promise<BlockEntryLite>;
638
494
  /**
639
- * No description
495
+ * @description Get block's transactions
640
496
  *
641
- * @tags Addresses
642
- * @name GetAddressesAddressExportTransactionsCsv
643
- * @request GET:/addresses/{address}/export-transactions/csv
497
+ * @tags Blocks
498
+ * @name GetBlocksBlockHashTransactions
499
+ * @request GET:/blocks/{block_hash}/transactions
644
500
  */
645
- getAddressesAddressExportTransactionsCsv: (address: string, query: {
501
+ getBlocksBlockHashTransactions: (blockHash: string, query?: {
646
502
  /**
647
- * @format int64
648
- * @min 0
503
+ * Page number
504
+ * @format int32
649
505
  */
650
- fromTs: number;
506
+ page?: number;
651
507
  /**
652
- * @format int64
653
- * @min 0
508
+ * Number of items per page
509
+ * @format int32
654
510
  */
655
- toTs: number;
656
- }, params?: RequestParams) => Promise<string>;
511
+ limit?: number;
512
+ }, params?: RequestParams) => Promise<Transaction[]>;
513
+ };
514
+ transactions: {
657
515
  /**
658
- * @description Get address balance
516
+ * @description Get a transaction with hash
659
517
  *
660
- * @tags Addresses
661
- * @name GetAddressesAddressBalance
662
- * @request GET:/addresses/{address}/balance
518
+ * @tags Transactions
519
+ * @name GetTransactionsTransactionHash
520
+ * @request GET:/transactions/{transaction_hash}
663
521
  */
664
- getAddressesAddressBalance: (address: string, params?: RequestParams) => Promise<AddressBalance>;
522
+ getTransactionsTransactionHash: (transactionHash: string, params?: RequestParams) => Promise<AcceptedTransaction | PendingTransaction>;
523
+ };
524
+ addresses: {
665
525
  /**
666
- * @description List mempool transactions of a given address
526
+ * @description Get address information
667
527
  *
668
528
  * @tags Addresses
669
- * @name GetAddressesAddressMempoolTransactions
670
- * @request GET:/addresses/{address}/mempool/transactions
529
+ * @name GetAddressesAddress
530
+ * @request GET:/addresses/{address}
671
531
  */
672
- getAddressesAddressMempoolTransactions: (address: string, params?: RequestParams) => Promise<MempoolTransaction[]>;
532
+ getAddressesAddress: (address: string, params?: RequestParams) => Promise<AddressInfo>;
673
533
  /**
674
- * @description List address tokens
534
+ * @description List transactions of a given address
675
535
  *
676
536
  * @tags Addresses
677
- * @name GetAddressesAddressTokensTokenIdTransactions
678
- * @request GET:/addresses/{address}/tokens/{token_id}/transactions
537
+ * @name GetAddressesAddressTransactions
538
+ * @request GET:/addresses/{address}/transactions
679
539
  */
680
- getAddressesAddressTokensTokenIdTransactions: (address: string, tokenId: string, query?: {
540
+ getAddressesAddressTransactions: (address: string, query?: {
681
541
  /**
682
542
  * Page number
683
543
  * @format int32
684
- * @min 1
685
544
  */
686
545
  page?: number;
687
546
  /**
688
547
  * Number of items per page
689
548
  * @format int32
690
- * @min 0
691
- * @max 100
692
549
  */
693
550
  limit?: number;
694
551
  }, params?: RequestParams) => Promise<Transaction[]>;
695
552
  /**
696
- * @description Get total transactions of a given address
553
+ * @description List transactions for given addresses
697
554
  *
698
555
  * @tags Addresses
699
- * @name GetAddressesAddressTotalTransactions
700
- * @request GET:/addresses/{address}/total-transactions
556
+ * @name PostAddressesTransactions
557
+ * @request POST:/addresses/transactions
701
558
  */
702
- getAddressesAddressTotalTransactions: (address: string, params?: RequestParams) => Promise<number>;
559
+ postAddressesTransactions: (query?: {
560
+ /**
561
+ * Page number
562
+ * @format int32
563
+ */
564
+ page?: number;
565
+ /**
566
+ * Number of items per page
567
+ * @format int32
568
+ */
569
+ limit?: number;
570
+ }, data?: string[], params?: RequestParams) => Promise<Transaction[]>;
703
571
  /**
704
572
  * @description List transactions of a given address within a time-range
705
573
  *
@@ -721,90 +589,128 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
721
589
  /**
722
590
  * Page number
723
591
  * @format int32
724
- * @min 1
725
592
  */
726
593
  page?: number;
727
594
  /**
728
595
  * Number of items per page
729
596
  * @format int32
730
- * @min 0
731
- * @max 1000
732
597
  */
733
598
  limit?: number;
734
599
  }, params?: RequestParams) => Promise<Transaction[]>;
735
600
  /**
736
- * @description List transactions of a given address
601
+ * @description Get total transactions of a given address
737
602
  *
738
603
  * @tags Addresses
739
- * @name GetAddressesAddressTransactions
740
- * @request GET:/addresses/{address}/transactions
604
+ * @name GetAddressesAddressTotalTransactions
605
+ * @request GET:/addresses/{address}/total-transactions
741
606
  */
742
- getAddressesAddressTransactions: (address: string, query?: {
607
+ getAddressesAddressTotalTransactions: (address: string, params?: RequestParams) => Promise<number>;
608
+ /**
609
+ * @description List mempool transactions of a given address
610
+ *
611
+ * @tags Addresses
612
+ * @name GetAddressesAddressMempoolTransactions
613
+ * @request GET:/addresses/{address}/mempool/transactions
614
+ */
615
+ getAddressesAddressMempoolTransactions: (address: string, params?: RequestParams) => Promise<MempoolTransaction[]>;
616
+ /**
617
+ * @description Get address balance
618
+ *
619
+ * @tags Addresses
620
+ * @name GetAddressesAddressBalance
621
+ * @request GET:/addresses/{address}/balance
622
+ */
623
+ getAddressesAddressBalance: (address: string, params?: RequestParams) => Promise<AddressBalance>;
624
+ /**
625
+ * @description List address tokens
626
+ *
627
+ * @tags Addresses
628
+ * @name GetAddressesAddressTokens
629
+ * @request GET:/addresses/{address}/tokens
630
+ * @deprecated
631
+ */
632
+ getAddressesAddressTokens: (address: string, query?: {
743
633
  /**
744
634
  * Page number
745
635
  * @format int32
746
- * @min 1
747
636
  */
748
637
  page?: number;
749
638
  /**
750
639
  * Number of items per page
751
640
  * @format int32
752
- * @min 0
753
- * @max 100
754
641
  */
755
642
  limit?: number;
756
- }, params?: RequestParams) => Promise<Transaction[]>;
643
+ }, params?: RequestParams) => Promise<string[]>;
757
644
  /**
758
- * No description
645
+ * @description List address tokens
759
646
  *
760
647
  * @tags Addresses
761
- * @name GetAddressesAddressAmountHistory
762
- * @request GET:/addresses/{address}/amount-history
648
+ * @name GetAddressesAddressTokensTokenIdTransactions
649
+ * @request GET:/addresses/{address}/tokens/{token_id}/transactions
763
650
  */
764
- getAddressesAddressAmountHistory: (address: string, query: {
651
+ getAddressesAddressTokensTokenIdTransactions: (address: string, tokenId: string, query?: {
765
652
  /**
766
- * @format int64
767
- * @min 0
653
+ * Page number
654
+ * @format int32
768
655
  */
769
- fromTs: number;
656
+ page?: number;
770
657
  /**
771
- * @format int64
772
- * @min 0
658
+ * Number of items per page
659
+ * @format int32
773
660
  */
774
- toTs: number;
775
- 'interval-type': IntervalType;
776
- }, params?: RequestParams) => Promise<AmountHistory>;
661
+ limit?: number;
662
+ }, params?: RequestParams) => Promise<Transaction[]>;
777
663
  /**
778
- * @description List transactions for given addresses
664
+ * @description Get address balance of given token
779
665
  *
780
666
  * @tags Addresses
781
- * @name PostAddressesTransactions
782
- * @request POST:/addresses/transactions
667
+ * @name GetAddressesAddressTokensTokenIdBalance
668
+ * @request GET:/addresses/{address}/tokens/{token_id}/balance
783
669
  */
784
- postAddressesTransactions: (query?: {
670
+ getAddressesAddressTokensTokenIdBalance: (address: string, tokenId: string, params?: RequestParams) => Promise<AddressTokenBalance>;
671
+ /**
672
+ * @description Get public key of p2pkh addresses, the address needs to have at least one input.
673
+ *
674
+ * @tags Addresses
675
+ * @name GetAddressesAddressPublicKey
676
+ * @request GET:/addresses/{address}/public-key
677
+ */
678
+ getAddressesAddressPublicKey: (address: string, params?: RequestParams) => Promise<string>;
679
+ /**
680
+ * @description Get address tokens with balance
681
+ *
682
+ * @tags Addresses
683
+ * @name GetAddressesAddressTokensBalance
684
+ * @request GET:/addresses/{address}/tokens-balance
685
+ */
686
+ getAddressesAddressTokensBalance: (address: string, query?: {
785
687
  /**
786
688
  * Page number
787
689
  * @format int32
788
- * @min 1
789
690
  */
790
691
  page?: number;
791
692
  /**
792
693
  * Number of items per page
793
694
  * @format int32
794
- * @min 0
795
- * @max 100
796
695
  */
797
696
  limit?: number;
798
- }, data?: string[], params?: RequestParams) => Promise<Transaction[]>;
697
+ }, params?: RequestParams) => Promise<AddressTokenBalance[]>;
698
+ /**
699
+ * @description Are the addresses used (at least 1 transaction)
700
+ *
701
+ * @tags Addresses, Addresses
702
+ * @name PostAddressesUsed
703
+ * @request POST:/addresses/used
704
+ */
705
+ postAddressesUsed: (data?: string[], params?: RequestParams) => Promise<boolean[]>;
799
706
  /**
800
707
  * No description
801
708
  *
802
709
  * @tags Addresses
803
- * @name GetAddressesAddressAmountHistoryDeprecated
804
- * @request GET:/addresses/{address}/amount-history-DEPRECATED
805
- * @deprecated
710
+ * @name GetAddressesAddressExportTransactionsCsv
711
+ * @request GET:/addresses/{address}/export-transactions/csv
806
712
  */
807
- getAddressesAddressAmountHistoryDeprecated: (address: string, query: {
713
+ getAddressesAddressExportTransactionsCsv: (address: string, query: {
808
714
  /**
809
715
  * @format int64
810
716
  * @min 0
@@ -815,79 +721,66 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
815
721
  * @min 0
816
722
  */
817
723
  toTs: number;
818
- 'interval-type': IntervalType;
819
724
  }, params?: RequestParams) => Promise<string>;
820
725
  /**
821
- * @description List address tokens
726
+ * No description
822
727
  *
823
728
  * @tags Addresses
824
- * @name GetAddressesAddressTokens
825
- * @request GET:/addresses/{address}/tokens
729
+ * @name GetAddressesAddressAmountHistoryDeprecated
730
+ * @request GET:/addresses/{address}/amount-history-DEPRECATED
826
731
  * @deprecated
827
732
  */
828
- getAddressesAddressTokens: (address: string, query?: {
733
+ getAddressesAddressAmountHistoryDeprecated: (address: string, query: {
829
734
  /**
830
- * Page number
831
- * @format int32
832
- * @min 1
735
+ * @format int64
736
+ * @min 0
833
737
  */
834
- page?: number;
738
+ fromTs: number;
835
739
  /**
836
- * Number of items per page
837
- * @format int32
740
+ * @format int64
838
741
  * @min 0
839
- * @max 100
840
742
  */
841
- limit?: number;
842
- }, params?: RequestParams) => Promise<string[]>;
743
+ toTs: number;
744
+ 'interval-type': IntervalType;
745
+ }, params?: RequestParams) => Promise<string>;
843
746
  /**
844
- * @description Get address tokens with balance
747
+ * No description
845
748
  *
846
749
  * @tags Addresses
847
- * @name GetAddressesAddressTokensBalance
848
- * @request GET:/addresses/{address}/tokens-balance
750
+ * @name GetAddressesAddressAmountHistory
751
+ * @request GET:/addresses/{address}/amount-history
849
752
  */
850
- getAddressesAddressTokensBalance: (address: string, query?: {
753
+ getAddressesAddressAmountHistory: (address: string, query: {
851
754
  /**
852
- * Page number
853
- * @format int32
854
- * @min 1
755
+ * @format int64
756
+ * @min 0
855
757
  */
856
- page?: number;
758
+ fromTs: number;
857
759
  /**
858
- * Number of items per page
859
- * @format int32
760
+ * @format int64
860
761
  * @min 0
861
- * @max 100
862
762
  */
863
- limit?: number;
864
- }, params?: RequestParams) => Promise<AddressTokenBalance[]>;
865
- /**
866
- * @description Get address balance of given token
867
- *
868
- * @tags Addresses
869
- * @name GetAddressesAddressTokensTokenIdBalance
870
- * @request GET:/addresses/{address}/tokens/{token_id}/balance
871
- */
872
- getAddressesAddressTokensTokenIdBalance: (address: string, tokenId: string, params?: RequestParams) => Promise<AddressTokenBalance>;
763
+ toTs: number;
764
+ 'interval-type': IntervalType;
765
+ }, params?: RequestParams) => Promise<AmountHistory>;
766
+ };
767
+ infos: {
873
768
  /**
874
- * @description Get address information
769
+ * @description Get explorer informations
875
770
  *
876
- * @tags Addresses
877
- * @name GetAddressesAddress
878
- * @request GET:/addresses/{address}
771
+ * @tags Infos
772
+ * @name GetInfos
773
+ * @request GET:/infos
879
774
  */
880
- getAddressesAddress: (address: string, params?: RequestParams) => Promise<AddressInfo>;
775
+ getInfos: (params?: RequestParams) => Promise<ExplorerInfo>;
881
776
  /**
882
- * @description Get public key of p2pkh addresses, the address needs to have at least one input.
777
+ * @description List latest height for each chain
883
778
  *
884
- * @tags Addresses
885
- * @name GetAddressesAddressPublicKey
886
- * @request GET:/addresses/{address}/public-key
779
+ * @tags Infos
780
+ * @name GetInfosHeights
781
+ * @request GET:/infos/heights
887
782
  */
888
- getAddressesAddressPublicKey: (address: string, params?: RequestParams) => Promise<string>;
889
- };
890
- infos: {
783
+ getInfosHeights: (params?: RequestParams) => Promise<PerChainHeight[]>;
891
784
  /**
892
785
  * @description Get token supply list
893
786
  *
@@ -899,41 +792,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
899
792
  /**
900
793
  * Page number
901
794
  * @format int32
902
- * @min 1
903
795
  */
904
796
  page?: number;
905
797
  /**
906
798
  * Number of items per page
907
799
  * @format int32
908
- * @min 0
909
- * @max 100
910
800
  */
911
801
  limit?: number;
912
802
  }, params?: RequestParams) => Promise<TokenSupply[]>;
913
- /**
914
- * @description Get the ALPH locked supply
915
- *
916
- * @tags Infos
917
- * @name GetInfosSupplyLockedAlph
918
- * @request GET:/infos/supply/locked-alph
919
- */
920
- getInfosSupplyLockedAlph: (params?: RequestParams) => Promise<number>;
921
- /**
922
- * @description Get explorer informations
923
- *
924
- * @tags Infos
925
- * @name GetInfos
926
- * @request GET:/infos
927
- */
928
- getInfos: (params?: RequestParams) => Promise<ExplorerInfo>;
929
- /**
930
- * @description Get the ALPH circulating supply
931
- *
932
- * @tags Infos
933
- * @name GetInfosSupplyCirculatingAlph
934
- * @request GET:/infos/supply/circulating-alph
935
- */
936
- getInfosSupplyCirculatingAlph: (params?: RequestParams) => Promise<number>;
937
803
  /**
938
804
  * @description Get the ALPH total supply
939
805
  *
@@ -943,13 +809,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
943
809
  */
944
810
  getInfosSupplyTotalAlph: (params?: RequestParams) => Promise<number>;
945
811
  /**
946
- * @description Get the total number of transactions
812
+ * @description Get the ALPH circulating supply
947
813
  *
948
814
  * @tags Infos
949
- * @name GetInfosTotalTransactions
950
- * @request GET:/infos/total-transactions
815
+ * @name GetInfosSupplyCirculatingAlph
816
+ * @request GET:/infos/supply/circulating-alph
951
817
  */
952
- getInfosTotalTransactions: (params?: RequestParams) => Promise<number>;
818
+ getInfosSupplyCirculatingAlph: (params?: RequestParams) => Promise<number>;
953
819
  /**
954
820
  * @description Get the ALPH reserved supply
955
821
  *
@@ -959,13 +825,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
959
825
  */
960
826
  getInfosSupplyReservedAlph: (params?: RequestParams) => Promise<number>;
961
827
  /**
962
- * @description List latest height for each chain
828
+ * @description Get the ALPH locked supply
963
829
  *
964
830
  * @tags Infos
965
- * @name GetInfosHeights
966
- * @request GET:/infos/heights
831
+ * @name GetInfosSupplyLockedAlph
832
+ * @request GET:/infos/supply/locked-alph
967
833
  */
968
- getInfosHeights: (params?: RequestParams) => Promise<PerChainHeight[]>;
834
+ getInfosSupplyLockedAlph: (params?: RequestParams) => Promise<number>;
835
+ /**
836
+ * @description Get the total number of transactions
837
+ *
838
+ * @tags Infos
839
+ * @name GetInfosTotalTransactions
840
+ * @request GET:/infos/total-transactions
841
+ */
842
+ getInfosTotalTransactions: (params?: RequestParams) => Promise<number>;
969
843
  /**
970
844
  * @description Get the average block time for each chain
971
845
  *
@@ -975,289 +849,133 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
975
849
  */
976
850
  getInfosAverageBlockTimes: (params?: RequestParams) => Promise<PerChainDuration[]>;
977
851
  };
978
- utils: {
979
- /**
980
- * @description Perform a sanity check
981
- *
982
- * @tags Utils
983
- * @name PutUtilsSanityCheck
984
- * @request PUT:/utils/sanity-check
985
- */
986
- putUtilsSanityCheck: (params?: RequestParams) => Promise<void>;
987
- /**
988
- * @description Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
989
- *
990
- * @tags Utils
991
- * @name PutUtilsUpdateGlobalLoglevel
992
- * @request PUT:/utils/update-global-loglevel
993
- */
994
- putUtilsUpdateGlobalLoglevel: (data: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR', params?: RequestParams) => Promise<void>;
995
- /**
996
- * @description Update logback values
997
- *
998
- * @tags Utils
999
- * @name PutUtilsUpdateLogConfig
1000
- * @request PUT:/utils/update-log-config
1001
- */
1002
- putUtilsUpdateLogConfig: (data?: LogbackValue[], params?: RequestParams) => Promise<void>;
1003
- };
1004
- tokens: {
1005
- /**
1006
- * @description Return metadata for the given fungible tokens, if metadata doesn't exist or token isn't a fungible, it won't be in the output list
1007
- *
1008
- * @tags Tokens
1009
- * @name PostTokensFungibleMetadata
1010
- * @request POST:/tokens/fungible-metadata
1011
- */
1012
- postTokensFungibleMetadata: (data?: string[], params?: RequestParams) => Promise<FungibleTokenMetadata[]>;
1013
- /**
1014
- * @description List given tokens information
1015
- *
1016
- * @tags Tokens
1017
- * @name PostTokens
1018
- * @request POST:/tokens
1019
- */
1020
- postTokens: (data?: string[], params?: RequestParams) => Promise<TokenInfo[]>;
1021
- /**
1022
- * @description List token information
1023
- *
1024
- * @tags Tokens
1025
- * @name GetTokens
1026
- * @request GET:/tokens
1027
- */
1028
- getTokens: (query?: {
1029
- /**
1030
- * Page number
1031
- * @format int32
1032
- * @min 1
1033
- */
1034
- page?: number;
1035
- /**
1036
- * Number of items per page
1037
- * @format int32
1038
- * @min 0
1039
- * @max 100
1040
- */
1041
- limit?: number;
1042
- /**
1043
- * fungible, non-fungible, non-standard or any interface id in hex-string format, e.g: 0001
1044
- * @format string
1045
- */
1046
- 'interface-id'?: TokenStdInterfaceId | string;
1047
- }, params?: RequestParams) => Promise<TokenInfo[]>;
1048
- /**
1049
- * @description List token transactions
1050
- *
1051
- * @tags Tokens
1052
- * @name GetTokensTokenIdTransactions
1053
- * @request GET:/tokens/{token_id}/transactions
1054
- */
1055
- getTokensTokenIdTransactions: (tokenId: string, query?: {
1056
- /**
1057
- * Page number
1058
- * @format int32
1059
- * @min 1
1060
- */
1061
- page?: number;
1062
- /**
1063
- * Number of items per page
1064
- * @format int32
1065
- * @min 0
1066
- * @max 100
1067
- */
1068
- limit?: number;
1069
- }, params?: RequestParams) => Promise<Transaction[]>;
1070
- /**
1071
- * @description Return metadata for the given nft collection addresses, if metadata doesn't exist or address isn't a nft collection, it won't be in the output list
1072
- *
1073
- * @tags Tokens
1074
- * @name PostTokensNftCollectionMetadata
1075
- * @request POST:/tokens/nft-collection-metadata
1076
- */
1077
- postTokensNftCollectionMetadata: (data?: string[], params?: RequestParams) => Promise<NFTCollectionMetadata[]>;
1078
- /**
1079
- * @description List token addresses
1080
- *
1081
- * @tags Tokens
1082
- * @name GetTokensTokenIdAddresses
1083
- * @request GET:/tokens/{token_id}/addresses
1084
- */
1085
- getTokensTokenIdAddresses: (tokenId: string, query?: {
1086
- /**
1087
- * Page number
1088
- * @format int32
1089
- * @min 1
1090
- */
1091
- page?: number;
1092
- /**
1093
- * Number of items per page
1094
- * @format int32
1095
- * @min 0
1096
- * @max 100
1097
- */
1098
- limit?: number;
1099
- }, params?: RequestParams) => Promise<string[]>;
1100
- /**
1101
- * @description Return metadata for the given nft tokens, if metadata doesn't exist or token isn't a nft, it won't be in the output list
1102
- *
1103
- * @tags Tokens
1104
- * @name PostTokensNftMetadata
1105
- * @request POST:/tokens/nft-metadata
1106
- */
1107
- postTokensNftMetadata: (data?: string[], params?: RequestParams) => Promise<NFTMetadata[]>;
1108
- };
1109
- market: {
1110
- /**
1111
- * No description
1112
- *
1113
- * @tags Market
1114
- * @name PostMarketPrices
1115
- * @request POST:/market/prices
1116
- */
1117
- postMarketPrices: (query: {
1118
- currency: string;
1119
- }, data?: string[], params?: RequestParams) => Promise<number[]>;
1120
- /**
1121
- * No description
1122
- *
1123
- * @tags Market
1124
- * @name GetMarketPricesSymbolCharts
1125
- * @request GET:/market/prices/{symbol}/charts
1126
- */
1127
- getMarketPricesSymbolCharts: (symbol: string, query: {
1128
- currency: string;
1129
- }, params?: RequestParams) => Promise<TimedPrices>;
1130
- };
1131
- blocks: {
852
+ mempool: {
1132
853
  /**
1133
- * @description Get block's transactions
854
+ * @description list mempool transactions
1134
855
  *
1135
- * @tags Blocks
1136
- * @name GetBlocksBlockHashTransactions
1137
- * @request GET:/blocks/{block_hash}/transactions
856
+ * @tags Mempool
857
+ * @name GetMempoolTransactions
858
+ * @request GET:/mempool/transactions
1138
859
  */
1139
- getBlocksBlockHashTransactions: (blockHash: string, query?: {
860
+ getMempoolTransactions: (query?: {
1140
861
  /**
1141
862
  * Page number
1142
863
  * @format int32
1143
- * @min 1
1144
864
  */
1145
865
  page?: number;
1146
866
  /**
1147
867
  * Number of items per page
1148
868
  * @format int32
1149
- * @min 0
1150
- * @max 100
1151
869
  */
1152
870
  limit?: number;
1153
- }, params?: RequestParams) => Promise<Transaction[]>;
1154
- /**
1155
- * @description Get a block with hash
1156
- *
1157
- * @tags Blocks
1158
- * @name GetBlocksBlockHash
1159
- * @request GET:/blocks/{block_hash}
1160
- */
1161
- getBlocksBlockHash: (blockHash: string, params?: RequestParams) => Promise<BlockEntry>;
871
+ }, params?: RequestParams) => Promise<MempoolTransaction[]>;
872
+ };
873
+ tokens: {
1162
874
  /**
1163
- * @description List latest blocks
875
+ * @description List token information
1164
876
  *
1165
- * @tags Blocks
1166
- * @name GetBlocks
1167
- * @request GET:/blocks
877
+ * @tags Tokens
878
+ * @name GetTokens
879
+ * @request GET:/tokens
1168
880
  */
1169
- getBlocks: (query?: {
881
+ getTokens: (query?: {
1170
882
  /**
1171
883
  * Page number
1172
884
  * @format int32
1173
- * @min 1
1174
885
  */
1175
886
  page?: number;
1176
887
  /**
1177
888
  * Number of items per page
1178
889
  * @format int32
1179
- * @min 0
1180
- * @max 100
1181
890
  */
1182
891
  limit?: number;
1183
- /** Reverse pagination */
1184
- reverse?: boolean;
1185
- }, params?: RequestParams) => Promise<ListBlocks>;
1186
- };
1187
- transactions: {
1188
- /**
1189
- * @description Get a transaction with hash
1190
- *
1191
- * @tags Transactions
1192
- * @name GetTransactionsTransactionHash
1193
- * @request GET:/transactions/{transaction_hash}
1194
- */
1195
- getTransactionsTransactionHash: (transactionHash: string, params?: RequestParams) => Promise<AcceptedTransaction | PendingTransaction>;
1196
- };
1197
- contractEvents: {
892
+ /**
893
+ * fungible, non-fungible, non-standard or any interface id in hex-string format, e.g: 0001
894
+ * @format string
895
+ */
896
+ 'interface-id'?: TokenStdInterfaceId | string;
897
+ }, params?: RequestParams) => Promise<TokenInfo[]>;
1198
898
  /**
1199
- * @description Get contract events by transaction id
899
+ * @description List given tokens information
1200
900
  *
1201
- * @tags Contract events
1202
- * @name GetContractEventsTransactionIdTransactionId
1203
- * @request GET:/contract-events/transaction-id/{transaction_id}
901
+ * @tags Tokens
902
+ * @name PostTokens
903
+ * @request POST:/tokens
1204
904
  */
1205
- getContractEventsTransactionIdTransactionId: (transactionId: string, params?: RequestParams) => Promise<Event[]>;
905
+ postTokens: (data?: string[], params?: RequestParams) => Promise<TokenInfo[]>;
1206
906
  /**
1207
- * @description Get contract events by contract address
907
+ * @description List token transactions
1208
908
  *
1209
- * @tags Contract events
1210
- * @name GetContractEventsContractAddressContractAddress
1211
- * @request GET:/contract-events/contract-address/{contract_address}
909
+ * @tags Tokens
910
+ * @name GetTokensTokenIdTransactions
911
+ * @request GET:/tokens/{token_id}/transactions
1212
912
  */
1213
- getContractEventsContractAddressContractAddress: (contractAddress: string, query?: {
913
+ getTokensTokenIdTransactions: (tokenId: string, query?: {
1214
914
  /**
1215
915
  * Page number
1216
916
  * @format int32
1217
- * @min 1
1218
917
  */
1219
918
  page?: number;
1220
919
  /**
1221
920
  * Number of items per page
1222
921
  * @format int32
1223
- * @min 0
1224
- * @max 100
1225
922
  */
1226
923
  limit?: number;
1227
- }, params?: RequestParams) => Promise<Event[]>;
924
+ }, params?: RequestParams) => Promise<Transaction[]>;
1228
925
  /**
1229
- * @description Get contract events by contract and input addresses
926
+ * @description List token addresses
1230
927
  *
1231
- * @tags Contract events
1232
- * @name GetContractEventsContractAddressContractAddressInputAddressInputAddress
1233
- * @request GET:/contract-events/contract-address/{contract_address}/input-address/{input_address}
928
+ * @tags Tokens
929
+ * @name GetTokensTokenIdAddresses
930
+ * @request GET:/tokens/{token_id}/addresses
1234
931
  */
1235
- getContractEventsContractAddressContractAddressInputAddressInputAddress: (contractAddress: string, inputAddress: string, query?: {
932
+ getTokensTokenIdAddresses: (tokenId: string, query?: {
1236
933
  /**
1237
934
  * Page number
1238
935
  * @format int32
1239
- * @min 1
1240
936
  */
1241
937
  page?: number;
1242
938
  /**
1243
939
  * Number of items per page
1244
940
  * @format int32
1245
- * @min 0
1246
- * @max 100
1247
941
  */
1248
942
  limit?: number;
1249
- }, params?: RequestParams) => Promise<Event[]>;
943
+ }, params?: RequestParams) => Promise<string[]>;
944
+ /**
945
+ * @description Return metadata for the given fungible tokens, if metadata doesn't exist or token isn't a fungible, it won't be in the output list
946
+ *
947
+ * @tags Tokens
948
+ * @name PostTokensFungibleMetadata
949
+ * @request POST:/tokens/fungible-metadata
950
+ */
951
+ postTokensFungibleMetadata: (data?: string[], params?: RequestParams) => Promise<FungibleTokenMetadata[]>;
952
+ /**
953
+ * @description Return metadata for the given nft tokens, if metadata doesn't exist or token isn't a nft, it won't be in the output list
954
+ *
955
+ * @tags Tokens
956
+ * @name PostTokensNftMetadata
957
+ * @request POST:/tokens/nft-metadata
958
+ */
959
+ postTokensNftMetadata: (data?: string[], params?: RequestParams) => Promise<NFTMetadata[]>;
960
+ /**
961
+ * @description Return metadata for the given nft collection addresses, if metadata doesn't exist or address isn't a nft collection, it won't be in the output list
962
+ *
963
+ * @tags Tokens
964
+ * @name PostTokensNftCollectionMetadata
965
+ * @request POST:/tokens/nft-collection-metadata
966
+ */
967
+ postTokensNftCollectionMetadata: (data?: string[], params?: RequestParams) => Promise<NFTCollectionMetadata[]>;
1250
968
  };
1251
969
  charts: {
1252
970
  /**
1253
971
  * @description `interval-type` query param: hourly, daily
1254
972
  *
1255
973
  * @tags Charts
1256
- * @name GetChartsTransactionsCountPerChain
1257
- * @summary Get transaction count history per chain
1258
- * @request GET:/charts/transactions-count-per-chain
974
+ * @name GetChartsHashrates
975
+ * @summary Get hashrate chart in H/s
976
+ * @request GET:/charts/hashrates
1259
977
  */
1260
- getChartsTransactionsCountPerChain: (query: {
978
+ getChartsHashrates: (query: {
1261
979
  /**
1262
980
  * @format int64
1263
981
  * @min 0
@@ -1269,7 +987,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1269
987
  */
1270
988
  toTs: number;
1271
989
  'interval-type': IntervalType;
1272
- }, params?: RequestParams) => Promise<PerChainTimedCount[]>;
990
+ }, params?: RequestParams) => Promise<Hashrate[]>;
1273
991
  /**
1274
992
  * @description `interval-type` query param: hourly, daily
1275
993
  *
@@ -1295,11 +1013,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1295
1013
  * @description `interval-type` query param: hourly, daily
1296
1014
  *
1297
1015
  * @tags Charts
1298
- * @name GetChartsHashrates
1299
- * @summary Get hashrate chart in H/s
1300
- * @request GET:/charts/hashrates
1016
+ * @name GetChartsTransactionsCountPerChain
1017
+ * @summary Get transaction count history per chain
1018
+ * @request GET:/charts/transactions-count-per-chain
1301
1019
  */
1302
- getChartsHashrates: (query: {
1020
+ getChartsTransactionsCountPerChain: (query: {
1303
1021
  /**
1304
1022
  * @format int64
1305
1023
  * @min 0
@@ -1311,31 +1029,140 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1311
1029
  */
1312
1030
  toTs: number;
1313
1031
  'interval-type': IntervalType;
1314
- }, params?: RequestParams) => Promise<Hashrate[]>;
1032
+ }, params?: RequestParams) => Promise<PerChainTimedCount[]>;
1315
1033
  };
1316
- mempool: {
1034
+ contractEvents: {
1317
1035
  /**
1318
- * @description list mempool transactions
1036
+ * @description Get contract events by transaction id
1319
1037
  *
1320
- * @tags Mempool
1321
- * @name GetMempoolTransactions
1322
- * @request GET:/mempool/transactions
1038
+ * @tags Contract events
1039
+ * @name GetContractEventsTransactionIdTransactionId
1040
+ * @request GET:/contract-events/transaction-id/{transaction_id}
1323
1041
  */
1324
- getMempoolTransactions: (query?: {
1042
+ getContractEventsTransactionIdTransactionId: (transactionId: string, params?: RequestParams) => Promise<Event[]>;
1043
+ /**
1044
+ * @description Get contract events by contract address
1045
+ *
1046
+ * @tags Contract events
1047
+ * @name GetContractEventsContractAddressContractAddress
1048
+ * @request GET:/contract-events/contract-address/{contract_address}
1049
+ */
1050
+ getContractEventsContractAddressContractAddress: (contractAddress: string, query?: {
1325
1051
  /**
1326
1052
  * Page number
1327
1053
  * @format int32
1328
- * @min 1
1329
1054
  */
1330
1055
  page?: number;
1331
1056
  /**
1332
1057
  * Number of items per page
1333
1058
  * @format int32
1334
- * @min 0
1335
- * @max 100
1336
1059
  */
1337
1060
  limit?: number;
1338
- }, params?: RequestParams) => Promise<MempoolTransaction[]>;
1061
+ }, params?: RequestParams) => Promise<Event[]>;
1062
+ /**
1063
+ * @description Get contract events by contract and input addresses
1064
+ *
1065
+ * @tags Contract events
1066
+ * @name GetContractEventsContractAddressContractAddressInputAddressInputAddress
1067
+ * @request GET:/contract-events/contract-address/{contract_address}/input-address/{input_address}
1068
+ */
1069
+ getContractEventsContractAddressContractAddressInputAddressInputAddress: (contractAddress: string, inputAddress: string, query?: {
1070
+ /**
1071
+ * Page number
1072
+ * @format int32
1073
+ */
1074
+ page?: number;
1075
+ /**
1076
+ * Number of items per page
1077
+ * @format int32
1078
+ */
1079
+ limit?: number;
1080
+ }, params?: RequestParams) => Promise<Event[]>;
1081
+ };
1082
+ contracts: {
1083
+ /**
1084
+ * @description Get contract liveness
1085
+ *
1086
+ * @tags Contracts
1087
+ * @name GetContractsContractAddressCurrentLiveness
1088
+ * @request GET:/contracts/{contract_address}/current-liveness
1089
+ */
1090
+ getContractsContractAddressCurrentLiveness: (contractAddress: string, params?: RequestParams) => Promise<ContractLiveness>;
1091
+ /**
1092
+ * @description Get contract parent address if exist
1093
+ *
1094
+ * @tags Contracts
1095
+ * @name GetContractsContractAddressParent
1096
+ * @request GET:/contracts/{contract_address}/parent
1097
+ */
1098
+ getContractsContractAddressParent: (contractAddress: string, params?: RequestParams) => Promise<ContractParent>;
1099
+ /**
1100
+ * @description Get sub contract addresses
1101
+ *
1102
+ * @tags Contracts
1103
+ * @name GetContractsContractAddressSubContracts
1104
+ * @request GET:/contracts/{contract_address}/sub-contracts
1105
+ */
1106
+ getContractsContractAddressSubContracts: (contractAddress: string, query?: {
1107
+ /**
1108
+ * Page number
1109
+ * @format int32
1110
+ */
1111
+ page?: number;
1112
+ /**
1113
+ * Number of items per page
1114
+ * @format int32
1115
+ */
1116
+ limit?: number;
1117
+ }, params?: RequestParams) => Promise<SubContracts>;
1118
+ };
1119
+ market: {
1120
+ /**
1121
+ * No description
1122
+ *
1123
+ * @tags Market
1124
+ * @name PostMarketPrices
1125
+ * @request POST:/market/prices
1126
+ */
1127
+ postMarketPrices: (query: {
1128
+ currency: string;
1129
+ }, data?: string[], params?: RequestParams) => Promise<number[]>;
1130
+ /**
1131
+ * No description
1132
+ *
1133
+ * @tags Market
1134
+ * @name GetMarketPricesSymbolCharts
1135
+ * @request GET:/market/prices/{symbol}/charts
1136
+ */
1137
+ getMarketPricesSymbolCharts: (symbol: string, query: {
1138
+ currency: string;
1139
+ }, params?: RequestParams) => Promise<TimedPrices>;
1140
+ };
1141
+ utils: {
1142
+ /**
1143
+ * @description Perform a sanity check
1144
+ *
1145
+ * @tags Utils
1146
+ * @name PutUtilsSanityCheck
1147
+ * @request PUT:/utils/sanity-check
1148
+ */
1149
+ putUtilsSanityCheck: (params?: RequestParams) => Promise<void>;
1150
+ /**
1151
+ * @description Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
1152
+ *
1153
+ * @tags Utils
1154
+ * @name PutUtilsUpdateGlobalLoglevel
1155
+ * @request PUT:/utils/update-global-loglevel
1156
+ */
1157
+ putUtilsUpdateGlobalLoglevel: (data: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR', params?: RequestParams) => Promise<void>;
1158
+ /**
1159
+ * @description Update logback values
1160
+ *
1161
+ * @tags Utils
1162
+ * @name PutUtilsUpdateLogConfig
1163
+ * @request PUT:/utils/update-log-config
1164
+ */
1165
+ putUtilsUpdateLogConfig: (data?: LogbackValue[], params?: RequestParams) => Promise<void>;
1339
1166
  };
1340
1167
  }
1341
1168
  export {};