@alephium/web3 2.0.3 → 2.0.5

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.
@@ -30,6 +30,7 @@ export interface AcceptedTransaction {
30
30
  inputSignatures?: string[]
31
31
  scriptSignatures?: string[]
32
32
  coinbase: boolean
33
+ conflicted?: boolean
33
34
  type: string
34
35
  }
35
36
 
@@ -122,6 +123,7 @@ export interface BlockEntry {
122
123
  parent?: string
123
124
  mainChain: boolean
124
125
  ghostUncles?: GhostUncle[]
126
+ conflictedTxs?: string[]
125
127
  }
126
128
 
127
129
  /** BlockEntryLite */
@@ -189,6 +191,8 @@ export interface ContractParent {
189
191
  export interface Event {
190
192
  /** @format block-hash */
191
193
  blockHash: string
194
+ /** @format int64 */
195
+ timestamp: number
192
196
  /** @format 32-byte-hash */
193
197
  txHash: string
194
198
  /** @format address */
@@ -228,6 +232,11 @@ export interface FungibleTokenMetadata {
228
232
  decimals: string
229
233
  }
230
234
 
235
+ /** GatewayTimeout */
236
+ export interface GatewayTimeout {
237
+ detail: string
238
+ }
239
+
231
240
  /** GhostUncle */
232
241
  export interface GhostUncle {
233
242
  /** @format block-hash */
@@ -513,6 +522,7 @@ export interface Transaction {
513
522
  inputSignatures?: string[]
514
523
  scriptSignatures?: string[]
515
524
  coinbase: boolean
525
+ conflicted?: boolean
516
526
  }
517
527
 
518
528
  /** TransactionInfo */
@@ -621,7 +631,10 @@ export enum Currencies {
621
631
  Rub = 'rub',
622
632
  Try = 'try',
623
633
  Cad = 'cad',
624
- Aud = 'aud'
634
+ Aud = 'aud',
635
+ Hkd = 'hkd',
636
+ Thb = 'thb',
637
+ Cny = 'cny'
625
638
  }
626
639
 
627
640
  import 'cross-fetch/polyfill'
@@ -843,10 +856,11 @@ export class HttpClient<SecurityDataType = unknown> {
843
856
  export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
844
857
  blocks = {
845
858
  /**
846
- * @description List latest blocks
859
+ * No description
847
860
  *
848
861
  * @tags Blocks
849
862
  * @name GetBlocks
863
+ * @summary List latest blocks
850
864
  * @request GET:/blocks
851
865
  */
852
866
  getBlocks: (
@@ -869,7 +883,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
869
883
  },
870
884
  params: RequestParams = {}
871
885
  ) =>
872
- this.request<ListBlocks, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
886
+ this.request<
887
+ ListBlocks,
888
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
889
+ >({
873
890
  path: `/blocks`,
874
891
  method: 'GET',
875
892
  query: query,
@@ -878,14 +895,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
878
895
  }).then(convertHttpResponse),
879
896
 
880
897
  /**
881
- * @description Get a block with hash
898
+ * No description
882
899
  *
883
900
  * @tags Blocks
884
901
  * @name GetBlocksBlockHash
902
+ * @summary Get a block with hash
885
903
  * @request GET:/blocks/{block_hash}
886
904
  */
887
905
  getBlocksBlockHash: (blockHash: string, params: RequestParams = {}) =>
888
- this.request<BlockEntry, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
906
+ this.request<
907
+ BlockEntry,
908
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
909
+ >({
889
910
  path: `/blocks/${blockHash}`,
890
911
  method: 'GET',
891
912
  format: 'json',
@@ -893,10 +914,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
893
914
  }).then(convertHttpResponse),
894
915
 
895
916
  /**
896
- * @description Get block's transactions
917
+ * No description
897
918
  *
898
919
  * @tags Blocks
899
920
  * @name GetBlocksBlockHashTransactions
921
+ * @summary Get block's transactions
900
922
  * @request GET:/blocks/{block_hash}/transactions
901
923
  */
902
924
  getBlocksBlockHashTransactions: (
@@ -918,7 +940,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
918
940
  },
919
941
  params: RequestParams = {}
920
942
  ) =>
921
- this.request<Transaction[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
943
+ this.request<
944
+ Transaction[],
945
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
946
+ >({
922
947
  path: `/blocks/${blockHash}/transactions`,
923
948
  method: 'GET',
924
949
  query: query,
@@ -928,14 +953,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
928
953
  }
929
954
  transactions = {
930
955
  /**
931
- * @description Get a transaction with hash
956
+ * No description
932
957
  *
933
958
  * @tags Transactions
934
959
  * @name GetTransactionsTransactionHash
960
+ * @summary Get a transaction with hash
935
961
  * @request GET:/transactions/{transaction_hash}
936
962
  */
937
963
  getTransactionsTransactionHash: (transactionHash: string, params: RequestParams = {}) =>
938
- this.request<TransactionLike, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
964
+ this.request<
965
+ TransactionLike,
966
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
967
+ >({
939
968
  path: `/transactions/${transactionHash}`,
940
969
  method: 'GET',
941
970
  format: 'json',
@@ -944,14 +973,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
944
973
  }
945
974
  addresses = {
946
975
  /**
947
- * @description Get address information
976
+ * No description
948
977
  *
949
978
  * @tags Addresses
950
979
  * @name GetAddressesAddress
980
+ * @summary Get address information
951
981
  * @request GET:/addresses/{address}
952
982
  */
953
983
  getAddressesAddress: (address: string, params: RequestParams = {}) =>
954
- this.request<AddressInfo, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
984
+ this.request<
985
+ AddressInfo,
986
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
987
+ >({
955
988
  path: `/addresses/${address}`,
956
989
  method: 'GET',
957
990
  format: 'json',
@@ -959,10 +992,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
959
992
  }).then(convertHttpResponse),
960
993
 
961
994
  /**
962
- * @description List transactions of a given address
995
+ * No description
963
996
  *
964
997
  * @tags Addresses
965
998
  * @name GetAddressesAddressTransactions
999
+ * @summary List transactions of a given address
966
1000
  * @request GET:/addresses/{address}/transactions
967
1001
  */
968
1002
  getAddressesAddressTransactions: (
@@ -984,7 +1018,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
984
1018
  },
985
1019
  params: RequestParams = {}
986
1020
  ) =>
987
- this.request<Transaction[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1021
+ this.request<
1022
+ Transaction[],
1023
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1024
+ >({
988
1025
  path: `/addresses/${address}/transactions`,
989
1026
  method: 'GET',
990
1027
  query: query,
@@ -993,11 +1030,13 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
993
1030
  }).then(convertHttpResponse),
994
1031
 
995
1032
  /**
996
- * @description List transactions for given addresses
1033
+ * No description
997
1034
  *
998
1035
  * @tags Addresses
999
1036
  * @name PostAddressesTransactions
1037
+ * @summary List transactions for given addresses
1000
1038
  * @request POST:/addresses/transactions
1039
+ * @deprecated
1001
1040
  */
1002
1041
  postAddressesTransactions: (
1003
1042
  query?: {
@@ -1030,7 +1069,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1030
1069
  data?: string[],
1031
1070
  params: RequestParams = {}
1032
1071
  ) =>
1033
- this.request<Transaction[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1072
+ this.request<
1073
+ Transaction[],
1074
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1075
+ >({
1034
1076
  path: `/addresses/transactions`,
1035
1077
  method: 'POST',
1036
1078
  query: query,
@@ -1041,10 +1083,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1041
1083
  }).then(convertHttpResponse),
1042
1084
 
1043
1085
  /**
1044
- * @description List transactions of a given address within a time-range
1086
+ * No description
1045
1087
  *
1046
1088
  * @tags Addresses
1047
1089
  * @name GetAddressesAddressTimerangedTransactions
1090
+ * @summary List transactions of a given address within a time-range
1048
1091
  * @request GET:/addresses/{address}/timeranged-transactions
1049
1092
  */
1050
1093
  getAddressesAddressTimerangedTransactions: (
@@ -1076,7 +1119,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1076
1119
  },
1077
1120
  params: RequestParams = {}
1078
1121
  ) =>
1079
- this.request<Transaction[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1122
+ this.request<
1123
+ Transaction[],
1124
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1125
+ >({
1080
1126
  path: `/addresses/${address}/timeranged-transactions`,
1081
1127
  method: 'GET',
1082
1128
  query: query,
@@ -1085,14 +1131,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1085
1131
  }).then(convertHttpResponse),
1086
1132
 
1087
1133
  /**
1088
- * @description Get total transactions of a given address
1134
+ * No description
1089
1135
  *
1090
1136
  * @tags Addresses
1091
1137
  * @name GetAddressesAddressTotalTransactions
1138
+ * @summary Get total transactions of a given address
1092
1139
  * @request GET:/addresses/{address}/total-transactions
1093
1140
  */
1094
1141
  getAddressesAddressTotalTransactions: (address: string, params: RequestParams = {}) =>
1095
- this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1142
+ this.request<
1143
+ number,
1144
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1145
+ >({
1096
1146
  path: `/addresses/${address}/total-transactions`,
1097
1147
  method: 'GET',
1098
1148
  format: 'json',
@@ -1100,14 +1150,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1100
1150
  }).then(convertHttpResponse),
1101
1151
 
1102
1152
  /**
1103
- * @description Get latest transaction information of a given address
1153
+ * No description
1104
1154
  *
1105
1155
  * @tags Addresses
1106
1156
  * @name GetAddressesAddressLatestTransaction
1157
+ * @summary Get latest transaction information of a given address
1107
1158
  * @request GET:/addresses/{address}/latest-transaction
1108
1159
  */
1109
1160
  getAddressesAddressLatestTransaction: (address: string, params: RequestParams = {}) =>
1110
- this.request<TransactionInfo, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1161
+ this.request<
1162
+ TransactionInfo,
1163
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1164
+ >({
1111
1165
  path: `/addresses/${address}/latest-transaction`,
1112
1166
  method: 'GET',
1113
1167
  format: 'json',
@@ -1115,16 +1169,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1115
1169
  }).then(convertHttpResponse),
1116
1170
 
1117
1171
  /**
1118
- * @description List mempool transactions of a given address
1172
+ * No description
1119
1173
  *
1120
1174
  * @tags Addresses
1121
1175
  * @name GetAddressesAddressMempoolTransactions
1176
+ * @summary List mempool transactions of a given address
1122
1177
  * @request GET:/addresses/{address}/mempool/transactions
1123
1178
  */
1124
1179
  getAddressesAddressMempoolTransactions: (address: string, params: RequestParams = {}) =>
1125
1180
  this.request<
1126
1181
  MempoolTransaction[],
1127
- BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
1182
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1128
1183
  >({
1129
1184
  path: `/addresses/${address}/mempool/transactions`,
1130
1185
  method: 'GET',
@@ -1133,14 +1188,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1133
1188
  }).then(convertHttpResponse),
1134
1189
 
1135
1190
  /**
1136
- * @description Get address balance
1191
+ * No description
1137
1192
  *
1138
1193
  * @tags Addresses
1139
1194
  * @name GetAddressesAddressBalance
1195
+ * @summary Get address balance
1140
1196
  * @request GET:/addresses/{address}/balance
1141
1197
  */
1142
1198
  getAddressesAddressBalance: (address: string, params: RequestParams = {}) =>
1143
- this.request<AddressBalance, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1199
+ this.request<
1200
+ AddressBalance,
1201
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1202
+ >({
1144
1203
  path: `/addresses/${address}/balance`,
1145
1204
  method: 'GET',
1146
1205
  format: 'json',
@@ -1148,10 +1207,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1148
1207
  }).then(convertHttpResponse),
1149
1208
 
1150
1209
  /**
1151
- * @description List address tokens
1210
+ * No description
1152
1211
  *
1153
1212
  * @tags Addresses
1154
1213
  * @name GetAddressesAddressTokens
1214
+ * @summary List address tokens
1155
1215
  * @request GET:/addresses/{address}/tokens
1156
1216
  * @deprecated
1157
1217
  */
@@ -1174,7 +1234,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1174
1234
  },
1175
1235
  params: RequestParams = {}
1176
1236
  ) =>
1177
- this.request<string[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1237
+ this.request<
1238
+ string[],
1239
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1240
+ >({
1178
1241
  path: `/addresses/${address}/tokens`,
1179
1242
  method: 'GET',
1180
1243
  query: query,
@@ -1183,10 +1246,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1183
1246
  }).then(convertHttpResponse),
1184
1247
 
1185
1248
  /**
1186
- * @description List address tokens
1249
+ * No description
1187
1250
  *
1188
1251
  * @tags Addresses
1189
1252
  * @name GetAddressesAddressTokensTokenIdTransactions
1253
+ * @summary List address tokens
1190
1254
  * @request GET:/addresses/{address}/tokens/{token_id}/transactions
1191
1255
  */
1192
1256
  getAddressesAddressTokensTokenIdTransactions: (
@@ -1209,7 +1273,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1209
1273
  },
1210
1274
  params: RequestParams = {}
1211
1275
  ) =>
1212
- this.request<Transaction[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1276
+ this.request<
1277
+ Transaction[],
1278
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1279
+ >({
1213
1280
  path: `/addresses/${address}/tokens/${tokenId}/transactions`,
1214
1281
  method: 'GET',
1215
1282
  query: query,
@@ -1218,16 +1285,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1218
1285
  }).then(convertHttpResponse),
1219
1286
 
1220
1287
  /**
1221
- * @description Get address balance of given token
1288
+ * No description
1222
1289
  *
1223
1290
  * @tags Addresses
1224
1291
  * @name GetAddressesAddressTokensTokenIdBalance
1292
+ * @summary Get address balance of given token
1225
1293
  * @request GET:/addresses/{address}/tokens/{token_id}/balance
1226
1294
  */
1227
1295
  getAddressesAddressTokensTokenIdBalance: (address: string, tokenId: string, params: RequestParams = {}) =>
1228
1296
  this.request<
1229
1297
  AddressTokenBalance,
1230
- BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
1298
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1231
1299
  >({
1232
1300
  path: `/addresses/${address}/tokens/${tokenId}/balance`,
1233
1301
  method: 'GET',
@@ -1236,14 +1304,19 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1236
1304
  }).then(convertHttpResponse),
1237
1305
 
1238
1306
  /**
1239
- * @description Get public key of p2pkh addresses, the address needs to have at least one input.
1307
+ * No description
1240
1308
  *
1241
1309
  * @tags Addresses
1242
1310
  * @name GetAddressesAddressPublicKey
1311
+ * @summary Use `/addresses/{address}/typed-public-key` instead
1243
1312
  * @request GET:/addresses/{address}/public-key
1313
+ * @deprecated
1244
1314
  */
1245
1315
  getAddressesAddressPublicKey: (address: string, params: RequestParams = {}) =>
1246
- this.request<string, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1316
+ this.request<
1317
+ string,
1318
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1319
+ >({
1247
1320
  path: `/addresses/${address}/public-key`,
1248
1321
  method: 'GET',
1249
1322
  format: 'json',
@@ -1251,10 +1324,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1251
1324
  }).then(convertHttpResponse),
1252
1325
 
1253
1326
  /**
1254
- * @description Get address tokens with balance
1327
+ * No description
1255
1328
  *
1256
1329
  * @tags Addresses
1257
1330
  * @name GetAddressesAddressTokensBalance
1331
+ * @summary Get address tokens with balance
1258
1332
  * @request GET:/addresses/{address}/tokens-balance
1259
1333
  */
1260
1334
  getAddressesAddressTokensBalance: (
@@ -1278,7 +1352,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1278
1352
  ) =>
1279
1353
  this.request<
1280
1354
  AddressTokenBalance[],
1281
- BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
1355
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1282
1356
  >({
1283
1357
  path: `/addresses/${address}/tokens-balance`,
1284
1358
  method: 'GET',
@@ -1288,14 +1362,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1288
1362
  }).then(convertHttpResponse),
1289
1363
 
1290
1364
  /**
1291
- * @description Are the addresses used (at least 1 transaction)
1365
+ * No description
1292
1366
  *
1293
1367
  * @tags Addresses, Addresses
1294
1368
  * @name PostAddressesUsed
1369
+ * @summary Are the addresses used (at least 1 transaction)
1295
1370
  * @request POST:/addresses/used
1296
1371
  */
1297
1372
  postAddressesUsed: (data?: string[], params: RequestParams = {}) =>
1298
- this.request<boolean[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1373
+ this.request<
1374
+ boolean[],
1375
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1376
+ >({
1299
1377
  path: `/addresses/used`,
1300
1378
  method: 'POST',
1301
1379
  body: data,
@@ -1327,7 +1405,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1327
1405
  },
1328
1406
  params: RequestParams = {}
1329
1407
  ) =>
1330
- this.request<string, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1408
+ this.request<
1409
+ string,
1410
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1411
+ >({
1331
1412
  path: `/addresses/${address}/export-transactions/csv`,
1332
1413
  method: 'GET',
1333
1414
  query: query,
@@ -1335,45 +1416,13 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1335
1416
  ...params
1336
1417
  }).then(convertHttpResponse),
1337
1418
 
1338
- /**
1339
- * No description
1340
- *
1341
- * @tags Addresses
1342
- * @name GetAddressesAddressAmountHistoryDeprecated
1343
- * @request GET:/addresses/{address}/amount-history-DEPRECATED
1344
- * @deprecated
1345
- */
1346
- getAddressesAddressAmountHistoryDeprecated: (
1347
- address: string,
1348
- query: {
1349
- /**
1350
- * @format int64
1351
- * @min 0
1352
- */
1353
- fromTs: number
1354
- /**
1355
- * @format int64
1356
- * @min 0
1357
- */
1358
- toTs: number
1359
- 'interval-type': IntervalType
1360
- },
1361
- params: RequestParams = {}
1362
- ) =>
1363
- this.request<string, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1364
- path: `/addresses/${address}/amount-history-DEPRECATED`,
1365
- method: 'GET',
1366
- query: query,
1367
- format: 'json',
1368
- ...params
1369
- }).then(convertHttpResponse),
1370
-
1371
1419
  /**
1372
1420
  * No description
1373
1421
  *
1374
1422
  * @tags Addresses
1375
1423
  * @name GetAddressesAddressAmountHistory
1376
1424
  * @request GET:/addresses/{address}/amount-history
1425
+ * @deprecated
1377
1426
  */
1378
1427
  getAddressesAddressAmountHistory: (
1379
1428
  address: string,
@@ -1392,7 +1441,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1392
1441
  },
1393
1442
  params: RequestParams = {}
1394
1443
  ) =>
1395
- this.request<AmountHistory, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1444
+ this.request<
1445
+ AmountHistory,
1446
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1447
+ >({
1396
1448
  path: `/addresses/${address}/amount-history`,
1397
1449
  method: 'GET',
1398
1450
  query: query,
@@ -1402,14 +1454,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1402
1454
  }
1403
1455
  infos = {
1404
1456
  /**
1405
- * @description Get explorer informations
1457
+ * No description
1406
1458
  *
1407
1459
  * @tags Infos
1408
1460
  * @name GetInfos
1461
+ * @summary Get explorer informations
1409
1462
  * @request GET:/infos
1410
1463
  */
1411
1464
  getInfos: (params: RequestParams = {}) =>
1412
- this.request<ExplorerInfo, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1465
+ this.request<
1466
+ ExplorerInfo,
1467
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1468
+ >({
1413
1469
  path: `/infos`,
1414
1470
  method: 'GET',
1415
1471
  format: 'json',
@@ -1417,14 +1473,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1417
1473
  }).then(convertHttpResponse),
1418
1474
 
1419
1475
  /**
1420
- * @description List latest height for each chain
1476
+ * No description
1421
1477
  *
1422
1478
  * @tags Infos
1423
1479
  * @name GetInfosHeights
1480
+ * @summary List latest height for each chain
1424
1481
  * @request GET:/infos/heights
1425
1482
  */
1426
1483
  getInfosHeights: (params: RequestParams = {}) =>
1427
- this.request<PerChainHeight[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1484
+ this.request<
1485
+ PerChainHeight[],
1486
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1487
+ >({
1428
1488
  path: `/infos/heights`,
1429
1489
  method: 'GET',
1430
1490
  format: 'json',
@@ -1432,10 +1492,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1432
1492
  }).then(convertHttpResponse),
1433
1493
 
1434
1494
  /**
1435
- * @description Get token supply list
1495
+ * No description
1436
1496
  *
1437
1497
  * @tags Infos
1438
1498
  * @name GetInfosSupply
1499
+ * @summary Get token supply list
1439
1500
  * @request GET:/infos/supply
1440
1501
  */
1441
1502
  getInfosSupply: (
@@ -1456,7 +1517,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1456
1517
  },
1457
1518
  params: RequestParams = {}
1458
1519
  ) =>
1459
- this.request<TokenSupply[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1520
+ this.request<
1521
+ TokenSupply[],
1522
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1523
+ >({
1460
1524
  path: `/infos/supply`,
1461
1525
  method: 'GET',
1462
1526
  query: query,
@@ -1465,14 +1529,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1465
1529
  }).then(convertHttpResponse),
1466
1530
 
1467
1531
  /**
1468
- * @description Get the ALPH total supply
1532
+ * No description
1469
1533
  *
1470
1534
  * @tags Infos
1471
1535
  * @name GetInfosSupplyTotalAlph
1536
+ * @summary Get the ALPH total supply
1472
1537
  * @request GET:/infos/supply/total-alph
1473
1538
  */
1474
1539
  getInfosSupplyTotalAlph: (params: RequestParams = {}) =>
1475
- this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1540
+ this.request<
1541
+ number,
1542
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1543
+ >({
1476
1544
  path: `/infos/supply/total-alph`,
1477
1545
  method: 'GET',
1478
1546
  format: 'text',
@@ -1480,14 +1548,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1480
1548
  }).then(convertHttpResponse),
1481
1549
 
1482
1550
  /**
1483
- * @description Get the ALPH circulating supply
1551
+ * No description
1484
1552
  *
1485
1553
  * @tags Infos
1486
1554
  * @name GetInfosSupplyCirculatingAlph
1555
+ * @summary Get the ALPH circulating supply
1487
1556
  * @request GET:/infos/supply/circulating-alph
1488
1557
  */
1489
1558
  getInfosSupplyCirculatingAlph: (params: RequestParams = {}) =>
1490
- this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1559
+ this.request<
1560
+ number,
1561
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1562
+ >({
1491
1563
  path: `/infos/supply/circulating-alph`,
1492
1564
  method: 'GET',
1493
1565
  format: 'text',
@@ -1495,14 +1567,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1495
1567
  }).then(convertHttpResponse),
1496
1568
 
1497
1569
  /**
1498
- * @description Get the ALPH reserved supply
1570
+ * No description
1499
1571
  *
1500
1572
  * @tags Infos
1501
1573
  * @name GetInfosSupplyReservedAlph
1574
+ * @summary Get the ALPH reserved supply
1502
1575
  * @request GET:/infos/supply/reserved-alph
1503
1576
  */
1504
1577
  getInfosSupplyReservedAlph: (params: RequestParams = {}) =>
1505
- this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1578
+ this.request<
1579
+ number,
1580
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1581
+ >({
1506
1582
  path: `/infos/supply/reserved-alph`,
1507
1583
  method: 'GET',
1508
1584
  format: 'text',
@@ -1510,14 +1586,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1510
1586
  }).then(convertHttpResponse),
1511
1587
 
1512
1588
  /**
1513
- * @description Get the ALPH locked supply
1589
+ * No description
1514
1590
  *
1515
1591
  * @tags Infos
1516
1592
  * @name GetInfosSupplyLockedAlph
1593
+ * @summary Get the ALPH locked supply
1517
1594
  * @request GET:/infos/supply/locked-alph
1518
1595
  */
1519
1596
  getInfosSupplyLockedAlph: (params: RequestParams = {}) =>
1520
- this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1597
+ this.request<
1598
+ number,
1599
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1600
+ >({
1521
1601
  path: `/infos/supply/locked-alph`,
1522
1602
  method: 'GET',
1523
1603
  format: 'text',
@@ -1525,14 +1605,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1525
1605
  }).then(convertHttpResponse),
1526
1606
 
1527
1607
  /**
1528
- * @description Get the total number of transactions
1608
+ * No description
1529
1609
  *
1530
1610
  * @tags Infos
1531
1611
  * @name GetInfosTotalTransactions
1612
+ * @summary Get the total number of transactions
1532
1613
  * @request GET:/infos/total-transactions
1533
1614
  */
1534
1615
  getInfosTotalTransactions: (params: RequestParams = {}) =>
1535
- this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1616
+ this.request<
1617
+ number,
1618
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1619
+ >({
1536
1620
  path: `/infos/total-transactions`,
1537
1621
  method: 'GET',
1538
1622
  format: 'text',
@@ -1540,28 +1624,31 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1540
1624
  }).then(convertHttpResponse),
1541
1625
 
1542
1626
  /**
1543
- * @description Get the average block time for each chain
1627
+ * No description
1544
1628
  *
1545
1629
  * @tags Infos
1546
1630
  * @name GetInfosAverageBlockTimes
1631
+ * @summary Get the average block time for each chain
1547
1632
  * @request GET:/infos/average-block-times
1548
1633
  */
1549
1634
  getInfosAverageBlockTimes: (params: RequestParams = {}) =>
1550
- this.request<PerChainDuration[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>(
1551
- {
1552
- path: `/infos/average-block-times`,
1553
- method: 'GET',
1554
- format: 'json',
1555
- ...params
1556
- }
1557
- ).then(convertHttpResponse)
1635
+ this.request<
1636
+ PerChainDuration[],
1637
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1638
+ >({
1639
+ path: `/infos/average-block-times`,
1640
+ method: 'GET',
1641
+ format: 'json',
1642
+ ...params
1643
+ }).then(convertHttpResponse)
1558
1644
  }
1559
1645
  mempool = {
1560
1646
  /**
1561
- * @description list mempool transactions
1647
+ * No description
1562
1648
  *
1563
1649
  * @tags Mempool
1564
1650
  * @name GetMempoolTransactions
1651
+ * @summary list mempool transactions
1565
1652
  * @request GET:/mempool/transactions
1566
1653
  */
1567
1654
  getMempoolTransactions: (
@@ -1584,7 +1671,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1584
1671
  ) =>
1585
1672
  this.request<
1586
1673
  MempoolTransaction[],
1587
- BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
1674
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1588
1675
  >({
1589
1676
  path: `/mempool/transactions`,
1590
1677
  method: 'GET',
@@ -1595,10 +1682,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1595
1682
  }
1596
1683
  tokens = {
1597
1684
  /**
1598
- * @description List token information
1685
+ * No description
1599
1686
  *
1600
1687
  * @tags Tokens
1601
1688
  * @name GetTokens
1689
+ * @summary List token information
1602
1690
  * @request GET:/tokens
1603
1691
  */
1604
1692
  getTokens: (
@@ -1624,7 +1712,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1624
1712
  },
1625
1713
  params: RequestParams = {}
1626
1714
  ) =>
1627
- this.request<TokenInfo[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1715
+ this.request<
1716
+ TokenInfo[],
1717
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1718
+ >({
1628
1719
  path: `/tokens`,
1629
1720
  method: 'GET',
1630
1721
  query: query,
@@ -1633,14 +1724,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1633
1724
  }).then(convertHttpResponse),
1634
1725
 
1635
1726
  /**
1636
- * @description List given tokens information
1727
+ * No description
1637
1728
  *
1638
1729
  * @tags Tokens
1639
1730
  * @name PostTokens
1731
+ * @summary List given tokens information
1640
1732
  * @request POST:/tokens
1641
1733
  */
1642
1734
  postTokens: (data?: string[], params: RequestParams = {}) =>
1643
- this.request<TokenInfo[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1735
+ this.request<
1736
+ TokenInfo[],
1737
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1738
+ >({
1644
1739
  path: `/tokens`,
1645
1740
  method: 'POST',
1646
1741
  body: data,
@@ -1650,10 +1745,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1650
1745
  }).then(convertHttpResponse),
1651
1746
 
1652
1747
  /**
1653
- * @description List token transactions
1748
+ * No description
1654
1749
  *
1655
1750
  * @tags Tokens
1656
1751
  * @name GetTokensTokenIdTransactions
1752
+ * @summary List token transactions
1657
1753
  * @request GET:/tokens/{token_id}/transactions
1658
1754
  */
1659
1755
  getTokensTokenIdTransactions: (
@@ -1675,7 +1771,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1675
1771
  },
1676
1772
  params: RequestParams = {}
1677
1773
  ) =>
1678
- this.request<Transaction[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1774
+ this.request<
1775
+ Transaction[],
1776
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1777
+ >({
1679
1778
  path: `/tokens/${tokenId}/transactions`,
1680
1779
  method: 'GET',
1681
1780
  query: query,
@@ -1684,10 +1783,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1684
1783
  }).then(convertHttpResponse),
1685
1784
 
1686
1785
  /**
1687
- * @description List token addresses
1786
+ * No description
1688
1787
  *
1689
1788
  * @tags Tokens
1690
1789
  * @name GetTokensTokenIdAddresses
1790
+ * @summary List token addresses
1691
1791
  * @request GET:/tokens/{token_id}/addresses
1692
1792
  */
1693
1793
  getTokensTokenIdAddresses: (
@@ -1709,7 +1809,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1709
1809
  },
1710
1810
  params: RequestParams = {}
1711
1811
  ) =>
1712
- this.request<string[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1812
+ this.request<
1813
+ string[],
1814
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1815
+ >({
1713
1816
  path: `/tokens/${tokenId}/addresses`,
1714
1817
  method: 'GET',
1715
1818
  query: query,
@@ -1718,16 +1821,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1718
1821
  }).then(convertHttpResponse),
1719
1822
 
1720
1823
  /**
1721
- * @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
1824
+ * @description If metadata doesn't exist or token isn't a fungible, it won't be in the output list
1722
1825
  *
1723
1826
  * @tags Tokens
1724
1827
  * @name PostTokensFungibleMetadata
1828
+ * @summary Return metadata for the given fungible tokens
1725
1829
  * @request POST:/tokens/fungible-metadata
1726
1830
  */
1727
1831
  postTokensFungibleMetadata: (data?: string[], params: RequestParams = {}) =>
1728
1832
  this.request<
1729
1833
  FungibleTokenMetadata[],
1730
- BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
1834
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1731
1835
  >({
1732
1836
  path: `/tokens/fungible-metadata`,
1733
1837
  method: 'POST',
@@ -1738,14 +1842,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1738
1842
  }).then(convertHttpResponse),
1739
1843
 
1740
1844
  /**
1741
- * @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
1845
+ * @description If metadata doesn't exist or token isn't a nft, it won't be in the output list
1742
1846
  *
1743
1847
  * @tags Tokens
1744
1848
  * @name PostTokensNftMetadata
1849
+ * @summary Return metadata for the given nft tokens
1745
1850
  * @request POST:/tokens/nft-metadata
1746
1851
  */
1747
1852
  postTokensNftMetadata: (data?: string[], params: RequestParams = {}) =>
1748
- this.request<NFTMetadata[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1853
+ this.request<
1854
+ NFTMetadata[],
1855
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1856
+ >({
1749
1857
  path: `/tokens/nft-metadata`,
1750
1858
  method: 'POST',
1751
1859
  body: data,
@@ -1755,16 +1863,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1755
1863
  }).then(convertHttpResponse),
1756
1864
 
1757
1865
  /**
1758
- * @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
1866
+ * @description If metadata doesn't exist or address isn't a nft collection, it won't be in the output list
1759
1867
  *
1760
1868
  * @tags Tokens
1761
1869
  * @name PostTokensNftCollectionMetadata
1870
+ * @summary Return metadata for the given nft collection addresses
1762
1871
  * @request POST:/tokens/nft-collection-metadata
1763
1872
  */
1764
1873
  postTokensNftCollectionMetadata: (data?: string[], params: RequestParams = {}) =>
1765
1874
  this.request<
1766
1875
  NFTCollectionMetadata[],
1767
- BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
1876
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1768
1877
  >({
1769
1878
  path: `/tokens/nft-collection-metadata`,
1770
1879
  method: 'POST',
@@ -1775,10 +1884,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1775
1884
  }).then(convertHttpResponse),
1776
1885
 
1777
1886
  /**
1778
- * @description Get a sorted list of top addresses by ALPH balance. Updates once per day.
1887
+ * @description Updates once per day.
1779
1888
  *
1780
1889
  * @tags Tokens
1781
1890
  * @name GetTokensHoldersAlph
1891
+ * @summary Get a sorted list of top addresses by ALPH balance
1782
1892
  * @request GET:/tokens/holders/alph
1783
1893
  */
1784
1894
  getTokensHoldersAlph: (
@@ -1799,7 +1909,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1799
1909
  },
1800
1910
  params: RequestParams = {}
1801
1911
  ) =>
1802
- this.request<HolderInfo[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1912
+ this.request<
1913
+ HolderInfo[],
1914
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1915
+ >({
1803
1916
  path: `/tokens/holders/alph`,
1804
1917
  method: 'GET',
1805
1918
  query: query,
@@ -1808,10 +1921,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1808
1921
  }).then(convertHttpResponse),
1809
1922
 
1810
1923
  /**
1811
- * @description Get a sorted list of top addresses by {token_id} balance. Updates once per day.
1924
+ * @description Updates once per day.
1812
1925
  *
1813
1926
  * @tags Tokens
1814
1927
  * @name GetTokensHoldersTokenTokenId
1928
+ * @summary Get a sorted list of top addresses by {token_id} balance. Updates once per day.
1815
1929
  * @request GET:/tokens/holders/token/{token_id}
1816
1930
  */
1817
1931
  getTokensHoldersTokenTokenId: (
@@ -1833,7 +1947,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1833
1947
  },
1834
1948
  params: RequestParams = {}
1835
1949
  ) =>
1836
- this.request<HolderInfo[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1950
+ this.request<
1951
+ HolderInfo[],
1952
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1953
+ >({
1837
1954
  path: `/tokens/holders/token/${tokenId}`,
1838
1955
  method: 'GET',
1839
1956
  query: query,
@@ -1866,7 +1983,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1866
1983
  },
1867
1984
  params: RequestParams = {}
1868
1985
  ) =>
1869
- this.request<Hashrate[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
1986
+ this.request<
1987
+ Hashrate[],
1988
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1989
+ >({
1870
1990
  path: `/charts/hashrates`,
1871
1991
  method: 'GET',
1872
1992
  query: query,
@@ -1898,7 +2018,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1898
2018
  },
1899
2019
  params: RequestParams = {}
1900
2020
  ) =>
1901
- this.request<TimedCount[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2021
+ this.request<
2022
+ TimedCount[],
2023
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2024
+ >({
1902
2025
  path: `/charts/transactions-count`,
1903
2026
  method: 'GET',
1904
2027
  query: query,
@@ -1932,7 +2055,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1932
2055
  ) =>
1933
2056
  this.request<
1934
2057
  PerChainTimedCount[],
1935
- BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
2058
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
1936
2059
  >({
1937
2060
  path: `/charts/transactions-count-per-chain`,
1938
2061
  method: 'GET',
@@ -1943,14 +2066,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1943
2066
  }
1944
2067
  contractEvents = {
1945
2068
  /**
1946
- * @description Get contract events by transaction id
2069
+ * No description
1947
2070
  *
1948
2071
  * @tags Contract events
1949
2072
  * @name GetContractEventsTransactionIdTransactionId
2073
+ * @summary Get contract events by transaction id
1950
2074
  * @request GET:/contract-events/transaction-id/{transaction_id}
1951
2075
  */
1952
2076
  getContractEventsTransactionIdTransactionId: (transactionId: string, params: RequestParams = {}) =>
1953
- this.request<Event[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2077
+ this.request<
2078
+ Event[],
2079
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2080
+ >({
1954
2081
  path: `/contract-events/transaction-id/${transactionId}`,
1955
2082
  method: 'GET',
1956
2083
  format: 'json',
@@ -1958,15 +2085,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1958
2085
  }).then(convertHttpResponse),
1959
2086
 
1960
2087
  /**
1961
- * @description Get contract events by contract address
2088
+ * No description
1962
2089
  *
1963
2090
  * @tags Contract events
1964
2091
  * @name GetContractEventsContractAddressContractAddress
2092
+ * @summary Get contract events by contract address
1965
2093
  * @request GET:/contract-events/contract-address/{contract_address}
1966
2094
  */
1967
2095
  getContractEventsContractAddressContractAddress: (
1968
2096
  contractAddress: string,
1969
2097
  query?: {
2098
+ /** @format int32 */
2099
+ event_index?: number
1970
2100
  /**
1971
2101
  * Page number
1972
2102
  * @format int32
@@ -1983,7 +2113,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1983
2113
  },
1984
2114
  params: RequestParams = {}
1985
2115
  ) =>
1986
- this.request<Event[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2116
+ this.request<
2117
+ Event[],
2118
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2119
+ >({
1987
2120
  path: `/contract-events/contract-address/${contractAddress}`,
1988
2121
  method: 'GET',
1989
2122
  query: query,
@@ -1992,16 +2125,19 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1992
2125
  }).then(convertHttpResponse),
1993
2126
 
1994
2127
  /**
1995
- * @description Get contract events by contract and input addresses
2128
+ * No description
1996
2129
  *
1997
2130
  * @tags Contract events
1998
2131
  * @name GetContractEventsContractAddressContractAddressInputAddressInputAddress
2132
+ * @summary Get contract events by contract and input addresses
1999
2133
  * @request GET:/contract-events/contract-address/{contract_address}/input-address/{input_address}
2000
2134
  */
2001
2135
  getContractEventsContractAddressContractAddressInputAddressInputAddress: (
2002
2136
  contractAddress: string,
2003
2137
  inputAddress: string,
2004
2138
  query?: {
2139
+ /** @format int32 */
2140
+ event_index?: number
2005
2141
  /**
2006
2142
  * Page number
2007
2143
  * @format int32
@@ -2018,7 +2154,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2018
2154
  },
2019
2155
  params: RequestParams = {}
2020
2156
  ) =>
2021
- this.request<Event[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2157
+ this.request<
2158
+ Event[],
2159
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2160
+ >({
2022
2161
  path: `/contract-events/contract-address/${contractAddress}/input-address/${inputAddress}`,
2023
2162
  method: 'GET',
2024
2163
  query: query,
@@ -2028,14 +2167,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2028
2167
  }
2029
2168
  contracts = {
2030
2169
  /**
2031
- * @description Get contract liveness
2170
+ * No description
2032
2171
  *
2033
2172
  * @tags Contracts
2034
2173
  * @name GetContractsContractAddressCurrentLiveness
2174
+ * @summary Get contract liveness
2035
2175
  * @request GET:/contracts/{contract_address}/current-liveness
2036
2176
  */
2037
2177
  getContractsContractAddressCurrentLiveness: (contractAddress: string, params: RequestParams = {}) =>
2038
- this.request<ContractLiveness, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2178
+ this.request<
2179
+ ContractLiveness,
2180
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2181
+ >({
2039
2182
  path: `/contracts/${contractAddress}/current-liveness`,
2040
2183
  method: 'GET',
2041
2184
  format: 'json',
@@ -2043,14 +2186,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2043
2186
  }).then(convertHttpResponse),
2044
2187
 
2045
2188
  /**
2046
- * @description Get contract parent address if exist
2189
+ * No description
2047
2190
  *
2048
2191
  * @tags Contracts
2049
2192
  * @name GetContractsContractAddressParent
2193
+ * @summary Get contract parent address if exist
2050
2194
  * @request GET:/contracts/{contract_address}/parent
2051
2195
  */
2052
2196
  getContractsContractAddressParent: (contractAddress: string, params: RequestParams = {}) =>
2053
- this.request<ContractParent, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2197
+ this.request<
2198
+ ContractParent,
2199
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2200
+ >({
2054
2201
  path: `/contracts/${contractAddress}/parent`,
2055
2202
  method: 'GET',
2056
2203
  format: 'json',
@@ -2058,10 +2205,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2058
2205
  }).then(convertHttpResponse),
2059
2206
 
2060
2207
  /**
2061
- * @description Get sub contract addresses
2208
+ * No description
2062
2209
  *
2063
2210
  * @tags Contracts
2064
2211
  * @name GetContractsContractAddressSubContracts
2212
+ * @summary Get sub contract addresses
2065
2213
  * @request GET:/contracts/{contract_address}/sub-contracts
2066
2214
  */
2067
2215
  getContractsContractAddressSubContracts: (
@@ -2083,7 +2231,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2083
2231
  },
2084
2232
  params: RequestParams = {}
2085
2233
  ) =>
2086
- this.request<SubContracts, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2234
+ this.request<
2235
+ SubContracts,
2236
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2237
+ >({
2087
2238
  path: `/contracts/${contractAddress}/sub-contracts`,
2088
2239
  method: 'GET',
2089
2240
  query: query,
@@ -2106,7 +2257,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2106
2257
  data?: string[],
2107
2258
  params: RequestParams = {}
2108
2259
  ) =>
2109
- this.request<number[], BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2260
+ this.request<
2261
+ number[],
2262
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2263
+ >({
2110
2264
  path: `/market/prices`,
2111
2265
  method: 'POST',
2112
2266
  query: query,
@@ -2130,7 +2284,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2130
2284
  },
2131
2285
  params: RequestParams = {}
2132
2286
  ) =>
2133
- this.request<TimedPrices, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2287
+ this.request<
2288
+ TimedPrices,
2289
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2290
+ >({
2134
2291
  path: `/market/prices/${symbol}/charts`,
2135
2292
  method: 'GET',
2136
2293
  query: query,
@@ -2140,28 +2297,36 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2140
2297
  }
2141
2298
  utils = {
2142
2299
  /**
2143
- * @description Perform a sanity check
2300
+ * No description
2144
2301
  *
2145
2302
  * @tags Utils
2146
2303
  * @name PutUtilsSanityCheck
2304
+ * @summary Perform a sanity check
2147
2305
  * @request PUT:/utils/sanity-check
2148
2306
  */
2149
2307
  putUtilsSanityCheck: (params: RequestParams = {}) =>
2150
- this.request<void, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2308
+ this.request<
2309
+ void,
2310
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2311
+ >({
2151
2312
  path: `/utils/sanity-check`,
2152
2313
  method: 'PUT',
2153
2314
  ...params
2154
2315
  }).then(convertHttpResponse),
2155
2316
 
2156
2317
  /**
2157
- * @description Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
2318
+ * No description
2158
2319
  *
2159
2320
  * @tags Utils
2160
2321
  * @name PutUtilsUpdateGlobalLoglevel
2322
+ * @summary Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
2161
2323
  * @request PUT:/utils/update-global-loglevel
2162
2324
  */
2163
2325
  putUtilsUpdateGlobalLoglevel: (data: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR', params: RequestParams = {}) =>
2164
- this.request<void, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2326
+ this.request<
2327
+ void,
2328
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2329
+ >({
2165
2330
  path: `/utils/update-global-loglevel`,
2166
2331
  method: 'PUT',
2167
2332
  body: data,
@@ -2169,14 +2334,18 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2169
2334
  }).then(convertHttpResponse),
2170
2335
 
2171
2336
  /**
2172
- * @description Update logback values
2337
+ * No description
2173
2338
  *
2174
2339
  * @tags Utils
2175
2340
  * @name PutUtilsUpdateLogConfig
2341
+ * @summary Update logback values
2176
2342
  * @request PUT:/utils/update-log-config
2177
2343
  */
2178
2344
  putUtilsUpdateLogConfig: (data?: LogbackValue[], params: RequestParams = {}) =>
2179
- this.request<void, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2345
+ this.request<
2346
+ void,
2347
+ BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
2348
+ >({
2180
2349
  path: `/utils/update-log-config`,
2181
2350
  method: 'PUT',
2182
2351
  body: data,