@shapeshiftoss/unchained-client 9.8.3 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/cosmos/types.d.ts +2 -2
  2. package/dist/evm/ethereum/parser/cowswap.d.ts +4 -0
  3. package/dist/evm/ethereum/parser/foxy.d.ts +4 -0
  4. package/dist/evm/ethereum/parser/thor.d.ts +4 -0
  5. package/dist/evm/ethereum/parser/uniV2.d.ts +4 -0
  6. package/dist/evm/ethereum/parser/weth.d.ts +4 -0
  7. package/dist/evm/ethereum/parser/yearn.d.ts +7 -0
  8. package/dist/evm/ethereum/parser/yearn.js +30 -14
  9. package/dist/evm/parser/erc20.d.ts +6 -0
  10. package/dist/evm/parser/erc20.js +14 -11
  11. package/dist/evm/parser/types.d.ts +10 -9
  12. package/dist/evm/parser/types.js +0 -5
  13. package/dist/evm/parser/zrx.d.ts +4 -0
  14. package/dist/generated/cosmos/api.d.ts +183 -66
  15. package/dist/generated/cosmos/api.js +82 -13
  16. package/dist/generated/cosmos/base.d.ts +1 -1
  17. package/dist/generated/cosmos/base.js +1 -1
  18. package/dist/generated/cosmos/common.d.ts +1 -1
  19. package/dist/generated/cosmos/common.js +1 -1
  20. package/dist/generated/cosmos/configuration.d.ts +1 -1
  21. package/dist/generated/cosmos/configuration.js +1 -1
  22. package/dist/generated/cosmos/index.d.ts +1 -1
  23. package/dist/generated/cosmos/index.js +1 -1
  24. package/dist/generated/osmosis/api.d.ts +183 -66
  25. package/dist/generated/osmosis/api.js +82 -13
  26. package/dist/generated/osmosis/base.d.ts +1 -1
  27. package/dist/generated/osmosis/base.js +1 -1
  28. package/dist/generated/osmosis/common.d.ts +1 -1
  29. package/dist/generated/osmosis/common.js +1 -1
  30. package/dist/generated/osmosis/configuration.d.ts +1 -1
  31. package/dist/generated/osmosis/configuration.js +1 -1
  32. package/dist/generated/osmosis/index.d.ts +1 -1
  33. package/dist/generated/osmosis/index.js +1 -1
  34. package/dist/types.d.ts +0 -13
  35. package/dist/types.js +1 -12
  36. package/package.json +3 -3
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Cosmos Unchained API
6
- * Provides access to cosmos chain data
6
+ * Provides access to cosmos chain data.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
@@ -30,7 +30,8 @@ const base_1 = require("./base");
30
30
  const V1ApiAxiosParamCreator = function (configuration) {
31
31
  return {
32
32
  /**
33
- * Get the estimated gas cost for a transaction
33
+ *
34
+ * @summary Get the estimated gas cost for a transaction.
34
35
  * @param {InlineObject} [body]
35
36
  * @param {*} [options] Override http request option.
36
37
  * @throws {RequiredError}
@@ -110,6 +111,34 @@ const V1ApiAxiosParamCreator = function (configuration) {
110
111
  options: localVarRequestOptions,
111
112
  };
112
113
  },
114
+ /**
115
+ * # Get transaction details
116
+ * @param {string} txid Transaction hash
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ getTx: async (txid, options = {}) => {
121
+ // verify required parameter 'txid' is not null or undefined
122
+ (0, common_1.assertParamExists)('getTx', 'txid', txid);
123
+ const localVarPath = `/api/v1/tx/{txid}`
124
+ .replace(`{${"txid"}}`, encodeURIComponent(String(txid)));
125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
+ let baseOptions;
128
+ if (configuration) {
129
+ baseOptions = configuration.baseOptions;
130
+ }
131
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
132
+ const localVarHeaderParameter = {};
133
+ const localVarQueryParameter = {};
134
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
137
+ return {
138
+ url: (0, common_1.toPathString)(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ };
141
+ },
113
142
  /**
114
143
  *
115
144
  * @summary Get paginated transaction history.
@@ -148,7 +177,8 @@ const V1ApiAxiosParamCreator = function (configuration) {
148
177
  };
149
178
  },
150
179
  /**
151
- * Get a specific validator
180
+ *
181
+ * @summary Get a specific validator.
152
182
  * @param {string} pubkey Account address or xpub
153
183
  * @param {*} [options] Override http request option.
154
184
  * @throws {RequiredError}
@@ -176,7 +206,8 @@ const V1ApiAxiosParamCreator = function (configuration) {
176
206
  };
177
207
  },
178
208
  /**
179
- * Get the list of current validators
209
+ *
210
+ * @summary Get the list of current validators.
180
211
  * @param {*} [options] Override http request option.
181
212
  * @throws {RequiredError}
182
213
  */
@@ -238,7 +269,8 @@ const V1ApiFp = function (configuration) {
238
269
  const localVarAxiosParamCreator = (0, exports.V1ApiAxiosParamCreator)(configuration);
239
270
  return {
240
271
  /**
241
- * Get the estimated gas cost for a transaction
272
+ *
273
+ * @summary Get the estimated gas cost for a transaction.
242
274
  * @param {InlineObject} [body]
243
275
  * @param {*} [options] Override http request option.
244
276
  * @throws {RequiredError}
@@ -268,6 +300,16 @@ const V1ApiFp = function (configuration) {
268
300
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInfo(options);
269
301
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
270
302
  },
303
+ /**
304
+ * # Get transaction details
305
+ * @param {string} txid Transaction hash
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ async getTx(txid, options) {
310
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTx(txid, options);
311
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
312
+ },
271
313
  /**
272
314
  *
273
315
  * @summary Get paginated transaction history.
@@ -282,7 +324,8 @@ const V1ApiFp = function (configuration) {
282
324
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
283
325
  },
284
326
  /**
285
- * Get a specific validator
327
+ *
328
+ * @summary Get a specific validator.
286
329
  * @param {string} pubkey Account address or xpub
287
330
  * @param {*} [options] Override http request option.
288
331
  * @throws {RequiredError}
@@ -292,7 +335,8 @@ const V1ApiFp = function (configuration) {
292
335
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
293
336
  },
294
337
  /**
295
- * Get the list of current validators
338
+ *
339
+ * @summary Get the list of current validators.
296
340
  * @param {*} [options] Override http request option.
297
341
  * @throws {RequiredError}
298
342
  */
@@ -322,7 +366,8 @@ const V1ApiFactory = function (configuration, basePath, axios) {
322
366
  const localVarFp = (0, exports.V1ApiFp)(configuration);
323
367
  return {
324
368
  /**
325
- * Get the estimated gas cost for a transaction
369
+ *
370
+ * @summary Get the estimated gas cost for a transaction.
326
371
  * @param {InlineObject} [body]
327
372
  * @param {*} [options] Override http request option.
328
373
  * @throws {RequiredError}
@@ -349,6 +394,15 @@ const V1ApiFactory = function (configuration, basePath, axios) {
349
394
  getInfo(options) {
350
395
  return localVarFp.getInfo(options).then((request) => request(axios, basePath));
351
396
  },
397
+ /**
398
+ * # Get transaction details
399
+ * @param {string} txid Transaction hash
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ getTx(txid, options) {
404
+ return localVarFp.getTx(txid, options).then((request) => request(axios, basePath));
405
+ },
352
406
  /**
353
407
  *
354
408
  * @summary Get paginated transaction history.
@@ -362,7 +416,8 @@ const V1ApiFactory = function (configuration, basePath, axios) {
362
416
  return localVarFp.getTxHistory(pubkey, cursor, pageSize, options).then((request) => request(axios, basePath));
363
417
  },
364
418
  /**
365
- * Get a specific validator
419
+ *
420
+ * @summary Get a specific validator.
366
421
  * @param {string} pubkey Account address or xpub
367
422
  * @param {*} [options] Override http request option.
368
423
  * @throws {RequiredError}
@@ -371,7 +426,8 @@ const V1ApiFactory = function (configuration, basePath, axios) {
371
426
  return localVarFp.getValidator(pubkey, options).then((request) => request(axios, basePath));
372
427
  },
373
428
  /**
374
- * Get the list of current validators
429
+ *
430
+ * @summary Get the list of current validators.
375
431
  * @param {*} [options] Override http request option.
376
432
  * @throws {RequiredError}
377
433
  */
@@ -399,7 +455,8 @@ exports.V1ApiFactory = V1ApiFactory;
399
455
  */
400
456
  class V1Api extends base_1.BaseAPI {
401
457
  /**
402
- * Get the estimated gas cost for a transaction
458
+ *
459
+ * @summary Get the estimated gas cost for a transaction.
403
460
  * @param {V1ApiEstimateGasRequest} requestParameters Request parameters.
404
461
  * @param {*} [options] Override http request option.
405
462
  * @throws {RequiredError}
@@ -429,6 +486,16 @@ class V1Api extends base_1.BaseAPI {
429
486
  getInfo(options) {
430
487
  return (0, exports.V1ApiFp)(this.configuration).getInfo(options).then((request) => request(this.axios, this.basePath));
431
488
  }
489
+ /**
490
+ * # Get transaction details
491
+ * @param {V1ApiGetTxRequest} requestParameters Request parameters.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ * @memberof V1Api
495
+ */
496
+ getTx(requestParameters, options) {
497
+ return (0, exports.V1ApiFp)(this.configuration).getTx(requestParameters.txid, options).then((request) => request(this.axios, this.basePath));
498
+ }
432
499
  /**
433
500
  *
434
501
  * @summary Get paginated transaction history.
@@ -441,7 +508,8 @@ class V1Api extends base_1.BaseAPI {
441
508
  return (0, exports.V1ApiFp)(this.configuration).getTxHistory(requestParameters.pubkey, requestParameters.cursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
442
509
  }
443
510
  /**
444
- * Get a specific validator
511
+ *
512
+ * @summary Get a specific validator.
445
513
  * @param {V1ApiGetValidatorRequest} requestParameters Request parameters.
446
514
  * @param {*} [options] Override http request option.
447
515
  * @throws {RequiredError}
@@ -451,7 +519,8 @@ class V1Api extends base_1.BaseAPI {
451
519
  return (0, exports.V1ApiFp)(this.configuration).getValidator(requestParameters.pubkey, options).then((request) => request(this.axios, this.basePath));
452
520
  }
453
521
  /**
454
- * Get the list of current validators
522
+ *
523
+ * @summary Get the list of current validators.
455
524
  * @param {*} [options] Override http request option.
456
525
  * @throws {RequiredError}
457
526
  * @memberof V1Api
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cosmos Unchained API
3
- * Provides access to cosmos chain data
3
+ * Provides access to cosmos chain data.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Cosmos Unchained API
6
- * Provides access to cosmos chain data
6
+ * Provides access to cosmos chain data.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cosmos Unchained API
3
- * Provides access to cosmos chain data
3
+ * Provides access to cosmos chain data.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Cosmos Unchained API
6
- * Provides access to cosmos chain data
6
+ * Provides access to cosmos chain data.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cosmos Unchained API
3
- * Provides access to cosmos chain data
3
+ * Provides access to cosmos chain data.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Cosmos Unchained API
6
- * Provides access to cosmos chain data
6
+ * Provides access to cosmos chain data.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cosmos Unchained API
3
- * Provides access to cosmos chain data
3
+ * Provides access to cosmos chain data.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Cosmos Unchained API
6
- * Provides access to cosmos chain data
6
+ * Provides access to cosmos chain data.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Osmosis Unchained API
3
- * Provides access to osmosis chain data
3
+ * Provides access to osmosis chain data.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
@@ -48,83 +48,34 @@ export interface Account {
48
48
  * @memberof Account
49
49
  */
50
50
  'assets': Array<Value>;
51
- /**
52
- *
53
- * @type {Array<Delegation>}
54
- * @memberof Account
55
- */
56
- 'delegations': Array<Delegation>;
57
- /**
58
- *
59
- * @type {Array<Redelegation>}
60
- * @memberof Account
61
- */
62
- 'redelegations': Array<Redelegation>;
63
- /**
64
- *
65
- * @type {Array<Reward>}
66
- * @memberof Account
67
- */
68
- 'rewards': Array<Reward>;
69
51
  /**
70
52
  *
71
53
  * @type {number}
72
54
  * @memberof Account
73
55
  */
74
56
  'sequence': number;
75
- /**
76
- *
77
- * @type {Array<Unbonding>}
78
- * @memberof Account
79
- */
80
- 'unbondings': Array<Unbonding>;
81
- }
82
- /**
83
- *
84
- * @export
85
- * @interface AccountAllOf
86
- */
87
- export interface AccountAllOf {
88
- /**
89
- *
90
- * @type {number}
91
- * @memberof AccountAllOf
92
- */
93
- 'accountNumber': number;
94
- /**
95
- *
96
- * @type {Array<Value>}
97
- * @memberof AccountAllOf
98
- */
99
- 'assets': Array<Value>;
100
57
  /**
101
58
  *
102
59
  * @type {Array<Delegation>}
103
- * @memberof AccountAllOf
60
+ * @memberof Account
104
61
  */
105
62
  'delegations': Array<Delegation>;
106
63
  /**
107
64
  *
108
65
  * @type {Array<Redelegation>}
109
- * @memberof AccountAllOf
66
+ * @memberof Account
110
67
  */
111
68
  'redelegations': Array<Redelegation>;
112
69
  /**
113
70
  *
114
71
  * @type {Array<Reward>}
115
- * @memberof AccountAllOf
72
+ * @memberof Account
116
73
  */
117
74
  'rewards': Array<Reward>;
118
- /**
119
- *
120
- * @type {number}
121
- * @memberof AccountAllOf
122
- */
123
- 'sequence': number;
124
75
  /**
125
76
  *
126
77
  * @type {Array<Unbonding>}
127
- * @memberof AccountAllOf
78
+ * @memberof Account
128
79
  */
129
80
  'unbondings': Array<Unbonding>;
130
81
  }
@@ -286,6 +237,87 @@ export interface BaseTxHistoryAllOf {
286
237
  */
287
238
  'txs': Array<Tx>;
288
239
  }
240
+ /**
241
+ * Contains common cosmossdk info about account details for an address or xpub
242
+ * @export
243
+ * @interface CosmosSDKAccount
244
+ */
245
+ export interface CosmosSDKAccount {
246
+ /**
247
+ *
248
+ * @type {string}
249
+ * @memberof CosmosSDKAccount
250
+ */
251
+ 'balance': string;
252
+ /**
253
+ *
254
+ * @type {string}
255
+ * @memberof CosmosSDKAccount
256
+ */
257
+ 'pubkey': string;
258
+ /**
259
+ *
260
+ * @type {string}
261
+ * @memberof CosmosSDKAccount
262
+ */
263
+ 'unconfirmedBalance': string;
264
+ /**
265
+ *
266
+ * @type {number}
267
+ * @memberof CosmosSDKAccount
268
+ */
269
+ 'accountNumber': number;
270
+ /**
271
+ *
272
+ * @type {Array<Value>}
273
+ * @memberof CosmosSDKAccount
274
+ */
275
+ 'assets': Array<Value>;
276
+ /**
277
+ *
278
+ * @type {number}
279
+ * @memberof CosmosSDKAccount
280
+ */
281
+ 'sequence': number;
282
+ }
283
+ /**
284
+ *
285
+ * @export
286
+ * @interface CosmosSDKAccountAllOf
287
+ */
288
+ export interface CosmosSDKAccountAllOf {
289
+ /**
290
+ *
291
+ * @type {number}
292
+ * @memberof CosmosSDKAccountAllOf
293
+ */
294
+ 'accountNumber': number;
295
+ /**
296
+ *
297
+ * @type {Array<Value>}
298
+ * @memberof CosmosSDKAccountAllOf
299
+ */
300
+ 'assets': Array<Value>;
301
+ /**
302
+ *
303
+ * @type {number}
304
+ * @memberof CosmosSDKAccountAllOf
305
+ */
306
+ 'sequence': number;
307
+ }
308
+ /**
309
+ * Contains common cosmossdk info about the running coinstack
310
+ * @export
311
+ * @interface CosmosSDKInfo
312
+ */
313
+ export interface CosmosSDKInfo {
314
+ /**
315
+ *
316
+ * @type {string}
317
+ * @memberof CosmosSDKInfo
318
+ */
319
+ 'network': string;
320
+ }
289
321
  /**
290
322
  * Contains info about a staking delegation
291
323
  * @export
@@ -520,6 +552,37 @@ export interface Reward {
520
552
  */
521
553
  'validator': Validator;
522
554
  }
555
+ /**
556
+ * Contains info about current staking state
557
+ * @export
558
+ * @interface Staking
559
+ */
560
+ export interface Staking {
561
+ /**
562
+ *
563
+ * @type {Array<Delegation>}
564
+ * @memberof Staking
565
+ */
566
+ 'delegations': Array<Delegation>;
567
+ /**
568
+ *
569
+ * @type {Array<Redelegation>}
570
+ * @memberof Staking
571
+ */
572
+ 'redelegations': Array<Redelegation>;
573
+ /**
574
+ *
575
+ * @type {Array<Reward>}
576
+ * @memberof Staking
577
+ */
578
+ 'rewards': Array<Reward>;
579
+ /**
580
+ *
581
+ * @type {Array<Unbonding>}
582
+ * @memberof Staking
583
+ */
584
+ 'unbondings': Array<Unbonding>;
585
+ }
523
586
  /**
524
587
  * Contains info about a transaction
525
588
  * @export
@@ -922,7 +985,8 @@ export interface Value {
922
985
  */
923
986
  export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
924
987
  /**
925
- * Get the estimated gas cost for a transaction
988
+ *
989
+ * @summary Get the estimated gas cost for a transaction.
926
990
  * @param {InlineObject} [body]
927
991
  * @param {*} [options] Override http request option.
928
992
  * @throws {RequiredError}
@@ -943,6 +1007,13 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
943
1007
  * @throws {RequiredError}
944
1008
  */
945
1009
  getInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
1010
+ /**
1011
+ * # Get transaction details
1012
+ * @param {string} txid Transaction hash
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ */
1016
+ getTx: (txid: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
946
1017
  /**
947
1018
  *
948
1019
  * @summary Get paginated transaction history.
@@ -954,14 +1025,16 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
954
1025
  */
955
1026
  getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
956
1027
  /**
957
- * Get a specific validator
1028
+ *
1029
+ * @summary Get a specific validator.
958
1030
  * @param {string} pubkey Account address or xpub
959
1031
  * @param {*} [options] Override http request option.
960
1032
  * @throws {RequiredError}
961
1033
  */
962
1034
  getValidator: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
963
1035
  /**
964
- * Get the list of current validators
1036
+ *
1037
+ * @summary Get the list of current validators.
965
1038
  * @param {*} [options] Override http request option.
966
1039
  * @throws {RequiredError}
967
1040
  */
@@ -981,7 +1054,8 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
981
1054
  */
982
1055
  export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
983
1056
  /**
984
- * Get the estimated gas cost for a transaction
1057
+ *
1058
+ * @summary Get the estimated gas cost for a transaction.
985
1059
  * @param {InlineObject} [body]
986
1060
  * @param {*} [options] Override http request option.
987
1061
  * @throws {RequiredError}
@@ -1002,6 +1076,13 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
1002
1076
  * @throws {RequiredError}
1003
1077
  */
1004
1078
  getInfo(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
1079
+ /**
1080
+ * # Get transaction details
1081
+ * @param {string} txid Transaction hash
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ getTx(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Tx>>;
1005
1086
  /**
1006
1087
  *
1007
1088
  * @summary Get paginated transaction history.
@@ -1013,14 +1094,16 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
1013
1094
  */
1014
1095
  getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
1015
1096
  /**
1016
- * Get a specific validator
1097
+ *
1098
+ * @summary Get a specific validator.
1017
1099
  * @param {string} pubkey Account address or xpub
1018
1100
  * @param {*} [options] Override http request option.
1019
1101
  * @throws {RequiredError}
1020
1102
  */
1021
1103
  getValidator(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Validator>>;
1022
1104
  /**
1023
- * Get the list of current validators
1105
+ *
1106
+ * @summary Get the list of current validators.
1024
1107
  * @param {*} [options] Override http request option.
1025
1108
  * @throws {RequiredError}
1026
1109
  */
@@ -1040,7 +1123,8 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
1040
1123
  */
1041
1124
  export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
1042
1125
  /**
1043
- * Get the estimated gas cost for a transaction
1126
+ *
1127
+ * @summary Get the estimated gas cost for a transaction.
1044
1128
  * @param {InlineObject} [body]
1045
1129
  * @param {*} [options] Override http request option.
1046
1130
  * @throws {RequiredError}
@@ -1061,6 +1145,13 @@ export declare const V1ApiFactory: (configuration?: Configuration | undefined, b
1061
1145
  * @throws {RequiredError}
1062
1146
  */
1063
1147
  getInfo(options?: any): AxiosPromise<Info>;
1148
+ /**
1149
+ * # Get transaction details
1150
+ * @param {string} txid Transaction hash
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ */
1154
+ getTx(txid: string, options?: any): AxiosPromise<Tx>;
1064
1155
  /**
1065
1156
  *
1066
1157
  * @summary Get paginated transaction history.
@@ -1072,14 +1163,16 @@ export declare const V1ApiFactory: (configuration?: Configuration | undefined, b
1072
1163
  */
1073
1164
  getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<TxHistory>;
1074
1165
  /**
1075
- * Get a specific validator
1166
+ *
1167
+ * @summary Get a specific validator.
1076
1168
  * @param {string} pubkey Account address or xpub
1077
1169
  * @param {*} [options] Override http request option.
1078
1170
  * @throws {RequiredError}
1079
1171
  */
1080
1172
  getValidator(pubkey: string, options?: any): AxiosPromise<Validator>;
1081
1173
  /**
1082
- * Get the list of current validators
1174
+ *
1175
+ * @summary Get the list of current validators.
1083
1176
  * @param {*} [options] Override http request option.
1084
1177
  * @throws {RequiredError}
1085
1178
  */
@@ -1119,6 +1212,19 @@ export interface V1ApiGetAccountRequest {
1119
1212
  */
1120
1213
  readonly pubkey: string;
1121
1214
  }
1215
+ /**
1216
+ * Request parameters for getTx operation in V1Api.
1217
+ * @export
1218
+ * @interface V1ApiGetTxRequest
1219
+ */
1220
+ export interface V1ApiGetTxRequest {
1221
+ /**
1222
+ * Transaction hash
1223
+ * @type {string}
1224
+ * @memberof V1ApiGetTx
1225
+ */
1226
+ readonly txid: string;
1227
+ }
1122
1228
  /**
1123
1229
  * Request parameters for getTxHistory operation in V1Api.
1124
1230
  * @export
@@ -1178,7 +1284,8 @@ export interface V1ApiSendTxRequest {
1178
1284
  */
1179
1285
  export declare class V1Api extends BaseAPI {
1180
1286
  /**
1181
- * Get the estimated gas cost for a transaction
1287
+ *
1288
+ * @summary Get the estimated gas cost for a transaction.
1182
1289
  * @param {V1ApiEstimateGasRequest} requestParameters Request parameters.
1183
1290
  * @param {*} [options] Override http request option.
1184
1291
  * @throws {RequiredError}
@@ -1202,6 +1309,14 @@ export declare class V1Api extends BaseAPI {
1202
1309
  * @memberof V1Api
1203
1310
  */
1204
1311
  getInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Info, any>>;
1312
+ /**
1313
+ * # Get transaction details
1314
+ * @param {V1ApiGetTxRequest} requestParameters Request parameters.
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ * @memberof V1Api
1318
+ */
1319
+ getTx(requestParameters: V1ApiGetTxRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tx, any>>;
1205
1320
  /**
1206
1321
  *
1207
1322
  * @summary Get paginated transaction history.
@@ -1212,7 +1327,8 @@ export declare class V1Api extends BaseAPI {
1212
1327
  */
1213
1328
  getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxHistory, any>>;
1214
1329
  /**
1215
- * Get a specific validator
1330
+ *
1331
+ * @summary Get a specific validator.
1216
1332
  * @param {V1ApiGetValidatorRequest} requestParameters Request parameters.
1217
1333
  * @param {*} [options] Override http request option.
1218
1334
  * @throws {RequiredError}
@@ -1220,7 +1336,8 @@ export declare class V1Api extends BaseAPI {
1220
1336
  */
1221
1337
  getValidator(requestParameters: V1ApiGetValidatorRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Validator, any>>;
1222
1338
  /**
1223
- * Get the list of current validators
1339
+ *
1340
+ * @summary Get the list of current validators.
1224
1341
  * @param {*} [options] Override http request option.
1225
1342
  * @throws {RequiredError}
1226
1343
  * @memberof V1Api