@shapeshiftoss/unchained-client 6.10.0 → 6.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +3 -1
  2. package/dist/bitcoin/index.d.ts +0 -1
  3. package/dist/bitcoin/index.js +5 -2
  4. package/dist/bitcoin/parser/index.d.ts +0 -1
  5. package/dist/bitcoin/parser/index.js +43 -54
  6. package/dist/bitcoin/parser/utils.d.ts +0 -1
  7. package/dist/bitcoin/parser/utils.js +0 -1
  8. package/dist/bitcoin/types.d.ts +0 -1
  9. package/dist/bitcoin/types.js +0 -1
  10. package/dist/cosmos/index.d.ts +0 -1
  11. package/dist/cosmos/index.js +5 -2
  12. package/dist/cosmos/parser/index.d.ts +4 -5
  13. package/dist/cosmos/parser/index.js +55 -50
  14. package/dist/cosmos/parser/utils.d.ts +3 -4
  15. package/dist/cosmos/parser/utils.js +28 -25
  16. package/dist/cosmos/types.d.ts +4 -1
  17. package/dist/cosmos/types.js +0 -1
  18. package/dist/ethereum/index.d.ts +0 -1
  19. package/dist/ethereum/index.js +5 -2
  20. package/dist/ethereum/parser/abi/erc20.d.ts +0 -1
  21. package/dist/ethereum/parser/abi/erc20.js +69 -70
  22. package/dist/ethereum/parser/abi/foxyStaking.d.ts +0 -1
  23. package/dist/ethereum/parser/abi/foxyStaking.js +161 -162
  24. package/dist/ethereum/parser/abi/multiSig.d.ts +0 -1
  25. package/dist/ethereum/parser/abi/multiSig.js +79 -80
  26. package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts +0 -1
  27. package/dist/ethereum/parser/abi/shapeShiftRouter.js +119 -120
  28. package/dist/ethereum/parser/abi/thor.d.ts +0 -1
  29. package/dist/ethereum/parser/abi/thor.js +28 -29
  30. package/dist/ethereum/parser/abi/uniV2.d.ts +0 -1
  31. package/dist/ethereum/parser/abi/uniV2.js +55 -56
  32. package/dist/ethereum/parser/abi/weth.d.ts +0 -1
  33. package/dist/ethereum/parser/abi/weth.js +66 -67
  34. package/dist/ethereum/parser/abi/yearnVault.d.ts +0 -1
  35. package/dist/ethereum/parser/abi/yearnVault.js +95 -96
  36. package/dist/ethereum/parser/constants.d.ts +0 -1
  37. package/dist/ethereum/parser/constants.js +0 -1
  38. package/dist/ethereum/parser/foxy.d.ts +8 -9
  39. package/dist/ethereum/parser/foxy.js +27 -59
  40. package/dist/ethereum/parser/index.d.ts +0 -1
  41. package/dist/ethereum/parser/index.js +52 -59
  42. package/dist/ethereum/parser/thor.d.ts +6 -5
  43. package/dist/ethereum/parser/thor.js +33 -49
  44. package/dist/ethereum/parser/uniV2.d.ts +5 -5
  45. package/dist/ethereum/parser/uniV2.js +75 -82
  46. package/dist/ethereum/parser/utils.d.ts +0 -1
  47. package/dist/ethereum/parser/utils.js +2 -3
  48. package/dist/ethereum/parser/weth.d.ts +6 -5
  49. package/dist/ethereum/parser/weth.js +76 -99
  50. package/dist/ethereum/parser/yearn.d.ts +11 -12
  51. package/dist/ethereum/parser/yearn.js +51 -62
  52. package/dist/ethereum/parser/zrx.d.ts +1 -2
  53. package/dist/ethereum/parser/zrx.js +18 -30
  54. package/dist/ethereum/types.d.ts +0 -1
  55. package/dist/ethereum/types.js +0 -1
  56. package/dist/generated/bitcoin/api.d.ts +117 -121
  57. package/dist/generated/bitcoin/api.js +82 -111
  58. package/dist/generated/bitcoin/base.d.ts +3 -4
  59. package/dist/generated/bitcoin/base.js +2 -3
  60. package/dist/generated/bitcoin/common.d.ts +3 -4
  61. package/dist/generated/bitcoin/common.js +23 -39
  62. package/dist/generated/bitcoin/configuration.d.ts +1 -2
  63. package/dist/generated/bitcoin/configuration.js +1 -2
  64. package/dist/generated/bitcoin/index.d.ts +1 -2
  65. package/dist/generated/bitcoin/index.js +6 -3
  66. package/dist/generated/cosmos/api.d.ts +143 -144
  67. package/dist/generated/cosmos/api.js +89 -115
  68. package/dist/generated/cosmos/base.d.ts +2 -3
  69. package/dist/generated/cosmos/base.js +0 -1
  70. package/dist/generated/cosmos/common.d.ts +2 -3
  71. package/dist/generated/cosmos/common.js +22 -38
  72. package/dist/generated/cosmos/configuration.d.ts +0 -1
  73. package/dist/generated/cosmos/configuration.js +0 -1
  74. package/dist/generated/cosmos/index.d.ts +0 -1
  75. package/dist/generated/cosmos/index.js +5 -2
  76. package/dist/generated/ethereum/api.d.ts +74 -78
  77. package/dist/generated/ethereum/api.js +74 -101
  78. package/dist/generated/ethereum/base.d.ts +3 -4
  79. package/dist/generated/ethereum/base.js +2 -3
  80. package/dist/generated/ethereum/common.d.ts +3 -4
  81. package/dist/generated/ethereum/common.js +23 -39
  82. package/dist/generated/ethereum/configuration.d.ts +1 -2
  83. package/dist/generated/ethereum/configuration.js +1 -2
  84. package/dist/generated/ethereum/index.d.ts +1 -2
  85. package/dist/generated/ethereum/index.js +6 -3
  86. package/dist/index.d.ts +0 -1
  87. package/dist/index.js +5 -2
  88. package/dist/types.d.ts +12 -2
  89. package/dist/types.js +0 -1
  90. package/dist/utils.d.ts +2 -3
  91. package/dist/utils.js +23 -23
  92. package/dist/websocket.d.ts +1 -2
  93. package/dist/websocket.js +78 -80
  94. package/package.json +21 -13
  95. package/dist/bitcoin/index.d.ts.map +0 -1
  96. package/dist/bitcoin/index.js.map +0 -1
  97. package/dist/bitcoin/parser/index.d.ts.map +0 -1
  98. package/dist/bitcoin/parser/index.js.map +0 -1
  99. package/dist/bitcoin/parser/utils.d.ts.map +0 -1
  100. package/dist/bitcoin/parser/utils.js.map +0 -1
  101. package/dist/bitcoin/types.d.ts.map +0 -1
  102. package/dist/bitcoin/types.js.map +0 -1
  103. package/dist/cosmos/index.d.ts.map +0 -1
  104. package/dist/cosmos/index.js.map +0 -1
  105. package/dist/cosmos/parser/index.d.ts.map +0 -1
  106. package/dist/cosmos/parser/index.js.map +0 -1
  107. package/dist/cosmos/parser/utils.d.ts.map +0 -1
  108. package/dist/cosmos/parser/utils.js.map +0 -1
  109. package/dist/cosmos/types.d.ts.map +0 -1
  110. package/dist/cosmos/types.js.map +0 -1
  111. package/dist/ethereum/index.d.ts.map +0 -1
  112. package/dist/ethereum/index.js.map +0 -1
  113. package/dist/ethereum/parser/abi/erc20.d.ts.map +0 -1
  114. package/dist/ethereum/parser/abi/erc20.js.map +0 -1
  115. package/dist/ethereum/parser/abi/foxyStaking.d.ts.map +0 -1
  116. package/dist/ethereum/parser/abi/foxyStaking.js.map +0 -1
  117. package/dist/ethereum/parser/abi/multiSig.d.ts.map +0 -1
  118. package/dist/ethereum/parser/abi/multiSig.js.map +0 -1
  119. package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts.map +0 -1
  120. package/dist/ethereum/parser/abi/shapeShiftRouter.js.map +0 -1
  121. package/dist/ethereum/parser/abi/thor.d.ts.map +0 -1
  122. package/dist/ethereum/parser/abi/thor.js.map +0 -1
  123. package/dist/ethereum/parser/abi/uniV2.d.ts.map +0 -1
  124. package/dist/ethereum/parser/abi/uniV2.js.map +0 -1
  125. package/dist/ethereum/parser/abi/weth.d.ts.map +0 -1
  126. package/dist/ethereum/parser/abi/weth.js.map +0 -1
  127. package/dist/ethereum/parser/abi/yearnVault.d.ts.map +0 -1
  128. package/dist/ethereum/parser/abi/yearnVault.js.map +0 -1
  129. package/dist/ethereum/parser/constants.d.ts.map +0 -1
  130. package/dist/ethereum/parser/constants.js.map +0 -1
  131. package/dist/ethereum/parser/foxy.d.ts.map +0 -1
  132. package/dist/ethereum/parser/foxy.js.map +0 -1
  133. package/dist/ethereum/parser/index.d.ts.map +0 -1
  134. package/dist/ethereum/parser/index.js.map +0 -1
  135. package/dist/ethereum/parser/thor.d.ts.map +0 -1
  136. package/dist/ethereum/parser/thor.js.map +0 -1
  137. package/dist/ethereum/parser/uniV2.d.ts.map +0 -1
  138. package/dist/ethereum/parser/uniV2.js.map +0 -1
  139. package/dist/ethereum/parser/utils.d.ts.map +0 -1
  140. package/dist/ethereum/parser/utils.js.map +0 -1
  141. package/dist/ethereum/parser/weth.d.ts.map +0 -1
  142. package/dist/ethereum/parser/weth.js.map +0 -1
  143. package/dist/ethereum/parser/yearn.d.ts.map +0 -1
  144. package/dist/ethereum/parser/yearn.js.map +0 -1
  145. package/dist/ethereum/parser/zrx.d.ts.map +0 -1
  146. package/dist/ethereum/parser/zrx.js.map +0 -1
  147. package/dist/ethereum/types.d.ts.map +0 -1
  148. package/dist/ethereum/types.js.map +0 -1
  149. package/dist/generated/bitcoin/api.d.ts.map +0 -1
  150. package/dist/generated/bitcoin/api.js.map +0 -1
  151. package/dist/generated/bitcoin/base.d.ts.map +0 -1
  152. package/dist/generated/bitcoin/base.js.map +0 -1
  153. package/dist/generated/bitcoin/common.d.ts.map +0 -1
  154. package/dist/generated/bitcoin/common.js.map +0 -1
  155. package/dist/generated/bitcoin/configuration.d.ts.map +0 -1
  156. package/dist/generated/bitcoin/configuration.js.map +0 -1
  157. package/dist/generated/bitcoin/index.d.ts.map +0 -1
  158. package/dist/generated/bitcoin/index.js.map +0 -1
  159. package/dist/generated/cosmos/api.d.ts.map +0 -1
  160. package/dist/generated/cosmos/api.js.map +0 -1
  161. package/dist/generated/cosmos/base.d.ts.map +0 -1
  162. package/dist/generated/cosmos/base.js.map +0 -1
  163. package/dist/generated/cosmos/common.d.ts.map +0 -1
  164. package/dist/generated/cosmos/common.js.map +0 -1
  165. package/dist/generated/cosmos/configuration.d.ts.map +0 -1
  166. package/dist/generated/cosmos/configuration.js.map +0 -1
  167. package/dist/generated/cosmos/index.d.ts.map +0 -1
  168. package/dist/generated/cosmos/index.js.map +0 -1
  169. package/dist/generated/ethereum/api.d.ts.map +0 -1
  170. package/dist/generated/ethereum/api.js.map +0 -1
  171. package/dist/generated/ethereum/base.d.ts.map +0 -1
  172. package/dist/generated/ethereum/base.js.map +0 -1
  173. package/dist/generated/ethereum/common.d.ts.map +0 -1
  174. package/dist/generated/ethereum/common.js.map +0 -1
  175. package/dist/generated/ethereum/configuration.d.ts.map +0 -1
  176. package/dist/generated/ethereum/configuration.js.map +0 -1
  177. package/dist/generated/ethereum/index.d.ts.map +0 -1
  178. package/dist/generated/ethereum/index.js.map +0 -1
  179. package/dist/index.d.ts.map +0 -1
  180. package/dist/index.js.map +0 -1
  181. package/dist/tsconfig.tsbuildinfo +0 -4970
  182. package/dist/types.d.ts.map +0 -1
  183. package/dist/types.js.map +0 -1
  184. package/dist/utils.d.ts.map +0 -1
  185. package/dist/utils.js.map +0 -1
  186. package/dist/websocket.d.ts.map +0 -1
  187. package/dist/websocket.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  * @shapeshiftoss/bitcoin-api
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 6.10.0
5
+ * The version of the OpenAPI document: 6.11.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Configuration } from './configuration';
13
- import { AxiosPromise, AxiosInstance } from 'axios';
13
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from './base';
15
15
  /**
16
16
  * Information about BTC network fee at a specific confirmation speed
@@ -23,13 +23,13 @@ export interface BTCNetworkFee {
23
23
  * @type {number}
24
24
  * @memberof BTCNetworkFee
25
25
  */
26
- satsPerKiloByte: number;
26
+ 'satsPerKiloByte': number;
27
27
  /**
28
28
  *
29
29
  * @type {number}
30
30
  * @memberof BTCNetworkFee
31
31
  */
32
- blocksUntilConfirmation: number;
32
+ 'blocksUntilConfirmation': number;
33
33
  }
34
34
  /**
35
35
  * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
@@ -42,19 +42,19 @@ export interface BTCNetworkFees {
42
42
  * @type {BTCNetworkFee}
43
43
  * @memberof BTCNetworkFees
44
44
  */
45
- fast?: BTCNetworkFee;
45
+ 'fast'?: BTCNetworkFee;
46
46
  /**
47
47
  *
48
48
  * @type {BTCNetworkFee}
49
49
  * @memberof BTCNetworkFees
50
50
  */
51
- average?: BTCNetworkFee;
51
+ 'average'?: BTCNetworkFee;
52
52
  /**
53
53
  *
54
54
  * @type {BTCNetworkFee}
55
55
  * @memberof BTCNetworkFees
56
56
  */
57
- slow?: BTCNetworkFee;
57
+ 'slow'?: BTCNetworkFee;
58
58
  }
59
59
  /**
60
60
  * Contains info about a 400 Bad Request response
@@ -67,7 +67,7 @@ export interface BadRequestError {
67
67
  * @type {string}
68
68
  * @memberof BadRequestError
69
69
  */
70
- error: string;
70
+ 'error': string;
71
71
  }
72
72
  /**
73
73
  * Contains additional Bitcoin specific account info
@@ -80,37 +80,37 @@ export interface BitcoinAccount {
80
80
  * @type {string}
81
81
  * @memberof BitcoinAccount
82
82
  */
83
- balance: string;
83
+ 'balance': string;
84
84
  /**
85
85
  *
86
86
  * @type {string}
87
87
  * @memberof BitcoinAccount
88
88
  */
89
- unconfirmedBalance: string;
89
+ 'unconfirmedBalance': string;
90
90
  /**
91
91
  *
92
92
  * @type {string}
93
93
  * @memberof BitcoinAccount
94
94
  */
95
- pubkey: string;
95
+ 'pubkey': string;
96
96
  /**
97
97
  * List of associated addresses for an xpub
98
98
  * @type {Array<BitcoinAddress>}
99
99
  * @memberof BitcoinAccount
100
100
  */
101
- addresses?: Array<BitcoinAddress>;
101
+ 'addresses'?: Array<BitcoinAddress>;
102
102
  /**
103
103
  * The next unused receive address index for an xpub (change index 0)
104
104
  * @type {number}
105
105
  * @memberof BitcoinAccount
106
106
  */
107
- nextReceiveAddressIndex?: number;
107
+ 'nextReceiveAddressIndex'?: number;
108
108
  /**
109
109
  * The next unused change address index for an xpub (change index 1)
110
110
  * @type {number}
111
111
  * @memberof BitcoinAccount
112
112
  */
113
- nextChangeAddressIndex?: number;
113
+ 'nextChangeAddressIndex'?: number;
114
114
  }
115
115
  /**
116
116
  *
@@ -123,13 +123,13 @@ export interface BitcoinAddress {
123
123
  * @type {string}
124
124
  * @memberof BitcoinAddress
125
125
  */
126
- balance: string;
126
+ 'balance': string;
127
127
  /**
128
128
  *
129
129
  * @type {string}
130
130
  * @memberof BitcoinAddress
131
131
  */
132
- pubkey: string;
132
+ 'pubkey': string;
133
133
  }
134
134
  /**
135
135
  * Contains info about a Bitcoin transaction
@@ -142,61 +142,61 @@ export interface BitcoinTx {
142
142
  * @type {string}
143
143
  * @memberof BitcoinTx
144
144
  */
145
- txid: string;
145
+ 'txid': string;
146
146
  /**
147
147
  *
148
148
  * @type {string}
149
149
  * @memberof BitcoinTx
150
150
  */
151
- blockHash?: string;
151
+ 'blockHash'?: string;
152
152
  /**
153
153
  *
154
154
  * @type {number}
155
155
  * @memberof BitcoinTx
156
156
  */
157
- blockHeight?: number;
157
+ 'blockHeight'?: number;
158
158
  /**
159
159
  *
160
160
  * @type {number}
161
161
  * @memberof BitcoinTx
162
162
  */
163
- timestamp?: number;
163
+ 'timestamp'?: number;
164
164
  /**
165
165
  *
166
166
  * @type {Array<Vin>}
167
167
  * @memberof BitcoinTx
168
168
  */
169
- vin: Array<Vin>;
169
+ 'vin': Array<Vin>;
170
170
  /**
171
171
  *
172
172
  * @type {Array<Vout>}
173
173
  * @memberof BitcoinTx
174
174
  */
175
- vout: Array<Vout>;
175
+ 'vout': Array<Vout>;
176
176
  /**
177
177
  *
178
178
  * @type {number}
179
179
  * @memberof BitcoinTx
180
180
  */
181
- confirmations: number;
181
+ 'confirmations': number;
182
182
  /**
183
183
  *
184
184
  * @type {string}
185
185
  * @memberof BitcoinTx
186
186
  */
187
- value: string;
187
+ 'value': string;
188
188
  /**
189
189
  *
190
190
  * @type {string}
191
191
  * @memberof BitcoinTx
192
192
  */
193
- fee: string;
193
+ 'fee': string;
194
194
  /**
195
195
  *
196
196
  * @type {string}
197
197
  * @memberof BitcoinTx
198
198
  */
199
- hex: string;
199
+ 'hex': string;
200
200
  }
201
201
  /**
202
202
  * Contains info about Bitcoin transaction history
@@ -209,19 +209,19 @@ export interface BitcoinTxHistory {
209
209
  * @type {string}
210
210
  * @memberof BitcoinTxHistory
211
211
  */
212
- cursor?: string;
212
+ 'cursor'?: string;
213
213
  /**
214
214
  *
215
215
  * @type {string}
216
216
  * @memberof BitcoinTxHistory
217
217
  */
218
- pubkey: string;
218
+ 'pubkey': string;
219
219
  /**
220
220
  *
221
221
  * @type {Array<BitcoinTx>}
222
222
  * @memberof BitcoinTxHistory
223
223
  */
224
- txs: Array<BitcoinTx>;
224
+ 'txs': Array<BitcoinTx>;
225
225
  }
226
226
  /**
227
227
  * Contains Bitcoin specific transaction info as returned from the node
@@ -234,85 +234,85 @@ export interface BitcoinTxSpecific {
234
234
  * @type {string}
235
235
  * @memberof BitcoinTxSpecific
236
236
  */
237
- txid: string;
237
+ 'txid': string;
238
238
  /**
239
239
  *
240
240
  * @type {string}
241
241
  * @memberof BitcoinTxSpecific
242
242
  */
243
- hash: string;
243
+ 'hash': string;
244
244
  /**
245
245
  *
246
246
  * @type {number}
247
247
  * @memberof BitcoinTxSpecific
248
248
  */
249
- version: number;
249
+ 'version': number;
250
250
  /**
251
251
  *
252
252
  * @type {number}
253
253
  * @memberof BitcoinTxSpecific
254
254
  */
255
- size: number;
255
+ 'size': number;
256
256
  /**
257
257
  *
258
258
  * @type {number}
259
259
  * @memberof BitcoinTxSpecific
260
260
  */
261
- vsize: number;
261
+ 'vsize': number;
262
262
  /**
263
263
  *
264
264
  * @type {number}
265
265
  * @memberof BitcoinTxSpecific
266
266
  */
267
- weight: number;
267
+ 'weight': number;
268
268
  /**
269
269
  *
270
270
  * @type {number}
271
271
  * @memberof BitcoinTxSpecific
272
272
  */
273
- locktime: number;
273
+ 'locktime': number;
274
274
  /**
275
275
  *
276
276
  * @type {Array<BitcoinTxSpecificVin>}
277
277
  * @memberof BitcoinTxSpecific
278
278
  */
279
- vin: Array<BitcoinTxSpecificVin>;
279
+ 'vin': Array<BitcoinTxSpecificVin>;
280
280
  /**
281
281
  *
282
282
  * @type {Array<BitcoinTxSpecificVout>}
283
283
  * @memberof BitcoinTxSpecific
284
284
  */
285
- vout: Array<BitcoinTxSpecificVout>;
285
+ 'vout': Array<BitcoinTxSpecificVout>;
286
286
  /**
287
287
  *
288
288
  * @type {string}
289
289
  * @memberof BitcoinTxSpecific
290
290
  */
291
- hex: string;
291
+ 'hex': string;
292
292
  /**
293
293
  *
294
294
  * @type {string}
295
295
  * @memberof BitcoinTxSpecific
296
296
  */
297
- blockhash: string;
297
+ 'blockhash': string;
298
298
  /**
299
299
  *
300
300
  * @type {number}
301
301
  * @memberof BitcoinTxSpecific
302
302
  */
303
- confirmations: number;
303
+ 'confirmations': number;
304
304
  /**
305
305
  *
306
306
  * @type {number}
307
307
  * @memberof BitcoinTxSpecific
308
308
  */
309
- time: number;
309
+ 'time': number;
310
310
  /**
311
311
  *
312
312
  * @type {number}
313
313
  * @memberof BitcoinTxSpecific
314
314
  */
315
- blocktime: number;
315
+ 'blocktime': number;
316
316
  }
317
317
  /**
318
318
  *
@@ -325,31 +325,31 @@ export interface BitcoinTxSpecificScriptPubKey {
325
325
  * @type {Array<string>}
326
326
  * @memberof BitcoinTxSpecificScriptPubKey
327
327
  */
328
- addresses: Array<string>;
328
+ 'addresses': Array<string>;
329
329
  /**
330
330
  *
331
331
  * @type {string}
332
332
  * @memberof BitcoinTxSpecificScriptPubKey
333
333
  */
334
- type: string;
334
+ 'type': string;
335
335
  /**
336
336
  *
337
337
  * @type {number}
338
338
  * @memberof BitcoinTxSpecificScriptPubKey
339
339
  */
340
- reqSigs: number;
340
+ 'reqSigs': number;
341
341
  /**
342
342
  *
343
343
  * @type {string}
344
344
  * @memberof BitcoinTxSpecificScriptPubKey
345
345
  */
346
- hex: string;
346
+ 'hex': string;
347
347
  /**
348
348
  *
349
349
  * @type {string}
350
350
  * @memberof BitcoinTxSpecificScriptPubKey
351
351
  */
352
- asm: string;
352
+ 'asm': string;
353
353
  }
354
354
  /**
355
355
  *
@@ -362,13 +362,13 @@ export interface BitcoinTxSpecificScriptSig {
362
362
  * @type {string}
363
363
  * @memberof BitcoinTxSpecificScriptSig
364
364
  */
365
- hex: string;
365
+ 'hex': string;
366
366
  /**
367
367
  *
368
368
  * @type {string}
369
369
  * @memberof BitcoinTxSpecificScriptSig
370
370
  */
371
- asm: string;
371
+ 'asm': string;
372
372
  }
373
373
  /**
374
374
  *
@@ -381,37 +381,37 @@ export interface BitcoinTxSpecificVin {
381
381
  * @type {string}
382
382
  * @memberof BitcoinTxSpecificVin
383
383
  */
384
- txinwitness?: string;
384
+ 'txinwitness'?: string;
385
385
  /**
386
386
  *
387
387
  * @type {BitcoinTxSpecificScriptSig}
388
388
  * @memberof BitcoinTxSpecificVin
389
389
  */
390
- scriptSig?: BitcoinTxSpecificScriptSig;
390
+ 'scriptSig'?: BitcoinTxSpecificScriptSig;
391
391
  /**
392
392
  *
393
393
  * @type {string}
394
394
  * @memberof BitcoinTxSpecificVin
395
395
  */
396
- coinbase?: string;
396
+ 'coinbase'?: string;
397
397
  /**
398
398
  *
399
399
  * @type {number}
400
400
  * @memberof BitcoinTxSpecificVin
401
401
  */
402
- sequence?: number;
402
+ 'sequence'?: number;
403
403
  /**
404
404
  *
405
405
  * @type {number}
406
406
  * @memberof BitcoinTxSpecificVin
407
407
  */
408
- vout?: number;
408
+ 'vout'?: number;
409
409
  /**
410
410
  *
411
411
  * @type {string}
412
412
  * @memberof BitcoinTxSpecificVin
413
413
  */
414
- txid?: string;
414
+ 'txid'?: string;
415
415
  }
416
416
  /**
417
417
  *
@@ -424,19 +424,19 @@ export interface BitcoinTxSpecificVout {
424
424
  * @type {BitcoinTxSpecificScriptPubKey}
425
425
  * @memberof BitcoinTxSpecificVout
426
426
  */
427
- scriptPubKey?: BitcoinTxSpecificScriptPubKey;
427
+ 'scriptPubKey'?: BitcoinTxSpecificScriptPubKey;
428
428
  /**
429
429
  *
430
430
  * @type {number}
431
431
  * @memberof BitcoinTxSpecificVout
432
432
  */
433
- n?: number;
433
+ 'n'?: number;
434
434
  /**
435
435
  *
436
436
  * @type {string | number}
437
437
  * @memberof BitcoinTxSpecificVout
438
438
  */
439
- value?: string | number;
439
+ 'value'?: string | number;
440
440
  }
441
441
  /**
442
442
  * Contains info about the running coinstack
@@ -449,7 +449,7 @@ export interface Info {
449
449
  * @type {string}
450
450
  * @memberof Info
451
451
  */
452
- network: string;
452
+ 'network': string;
453
453
  }
454
454
  /**
455
455
  * Contains info about a 500 Internal Server Error response
@@ -462,7 +462,7 @@ export interface InternalServerError {
462
462
  * @type {string}
463
463
  * @memberof InternalServerError
464
464
  */
465
- message: string;
465
+ 'message': string;
466
466
  }
467
467
  /**
468
468
  * Contains the serialized raw transaction hex
@@ -475,7 +475,7 @@ export interface SendTxBody {
475
475
  * @type {string}
476
476
  * @memberof SendTxBody
477
477
  */
478
- hex: string;
478
+ 'hex': string;
479
479
  }
480
480
  /**
481
481
  * Contains info about a transaction
@@ -488,25 +488,25 @@ export interface Tx {
488
488
  * @type {string}
489
489
  * @memberof Tx
490
490
  */
491
- txid: string;
491
+ 'txid': string;
492
492
  /**
493
493
  *
494
494
  * @type {string}
495
495
  * @memberof Tx
496
496
  */
497
- blockHash?: string;
497
+ 'blockHash'?: string;
498
498
  /**
499
499
  *
500
500
  * @type {number}
501
501
  * @memberof Tx
502
502
  */
503
- blockHeight?: number;
503
+ 'blockHeight'?: number;
504
504
  /**
505
505
  *
506
506
  * @type {number}
507
507
  * @memberof Tx
508
508
  */
509
- timestamp?: number;
509
+ 'timestamp'?: number;
510
510
  }
511
511
  /**
512
512
  * Contains info about an unspent transaction output
@@ -519,55 +519,55 @@ export interface Utxo {
519
519
  * @type {string}
520
520
  * @memberof Utxo
521
521
  */
522
- txid: string;
522
+ 'txid': string;
523
523
  /**
524
524
  *
525
525
  * @type {number}
526
526
  * @memberof Utxo
527
527
  */
528
- vout: number;
528
+ 'vout': number;
529
529
  /**
530
530
  *
531
531
  * @type {string}
532
532
  * @memberof Utxo
533
533
  */
534
- value: string;
534
+ 'value': string;
535
535
  /**
536
536
  *
537
537
  * @type {number}
538
538
  * @memberof Utxo
539
539
  */
540
- height?: number;
540
+ 'height'?: number;
541
541
  /**
542
542
  *
543
543
  * @type {number}
544
544
  * @memberof Utxo
545
545
  */
546
- confirmations: number;
546
+ 'confirmations': number;
547
547
  /**
548
548
  *
549
549
  * @type {string}
550
550
  * @memberof Utxo
551
551
  */
552
- address?: string;
552
+ 'address'?: string;
553
553
  /**
554
554
  *
555
555
  * @type {string}
556
556
  * @memberof Utxo
557
557
  */
558
- path?: string;
558
+ 'path'?: string;
559
559
  /**
560
560
  *
561
561
  * @type {number}
562
562
  * @memberof Utxo
563
563
  */
564
- locktime?: number;
564
+ 'locktime'?: number;
565
565
  /**
566
566
  *
567
567
  * @type {boolean}
568
568
  * @memberof Utxo
569
569
  */
570
- coinbase?: boolean;
570
+ 'coinbase'?: boolean;
571
571
  }
572
572
  /**
573
573
  * Contains info about a 422 Validation Error response
@@ -580,23 +580,20 @@ export interface ValidationError {
580
580
  * @type {string}
581
581
  * @memberof ValidationError
582
582
  */
583
- message: ValidationErrorMessageEnum;
583
+ 'message': ValidationErrorMessageEnum;
584
584
  /**
585
585
  *
586
586
  * @type {{ [key: string]: any; }}
587
587
  * @memberof ValidationError
588
588
  */
589
- details: {
589
+ 'details': {
590
590
  [key: string]: any;
591
591
  };
592
592
  }
593
- /**
594
- * @export
595
- * @enum {string}
596
- */
597
- export declare enum ValidationErrorMessageEnum {
598
- ValidationFailed = "Validation failed"
599
- }
593
+ export declare const ValidationErrorMessageEnum: {
594
+ readonly ValidationFailed: "Validation failed";
595
+ };
596
+ export declare type ValidationErrorMessageEnum = typeof ValidationErrorMessageEnum[keyof typeof ValidationErrorMessageEnum];
600
597
  /**
601
598
  * Contains info about a Bitcoin transaction input
602
599
  * @export
@@ -608,37 +605,37 @@ export interface Vin {
608
605
  * @type {string}
609
606
  * @memberof Vin
610
607
  */
611
- txid: string;
608
+ 'txid': string;
612
609
  /**
613
610
  *
614
611
  * @type {string}
615
612
  * @memberof Vin
616
613
  */
617
- vout: string;
614
+ 'vout': string;
618
615
  /**
619
616
  *
620
617
  * @type {number}
621
618
  * @memberof Vin
622
619
  */
623
- sequence?: number;
620
+ 'sequence'?: number;
624
621
  /**
625
622
  *
626
623
  * @type {string}
627
624
  * @memberof Vin
628
625
  */
629
- coinbase?: string;
626
+ 'coinbase'?: string;
630
627
  /**
631
628
  *
632
629
  * @type {VinScriptSig}
633
630
  * @memberof Vin
634
631
  */
635
- scriptSig: VinScriptSig;
632
+ 'scriptSig': VinScriptSig;
636
633
  /**
637
634
  *
638
635
  * @type {Array<string>}
639
636
  * @memberof Vin
640
637
  */
641
- addresses: Array<string>;
638
+ 'addresses': Array<string>;
642
639
  }
643
640
  /**
644
641
  *
@@ -651,13 +648,13 @@ export interface VinScriptSig {
651
648
  * @type {string}
652
649
  * @memberof VinScriptSig
653
650
  */
654
- hex?: string;
651
+ 'hex'?: string;
655
652
  /**
656
653
  *
657
654
  * @type {string}
658
655
  * @memberof VinScriptSig
659
656
  */
660
- asm?: string;
657
+ 'asm'?: string;
661
658
  }
662
659
  /**
663
660
  * Contains info about a Bitcoin transaction output
@@ -670,19 +667,19 @@ export interface Vout {
670
667
  * @type {string | number}
671
668
  * @memberof Vout
672
669
  */
673
- value: string | number;
670
+ 'value': string | number;
674
671
  /**
675
672
  *
676
673
  * @type {number}
677
674
  * @memberof Vout
678
675
  */
679
- n: number;
676
+ 'n': number;
680
677
  /**
681
678
  *
682
679
  * @type {VoutScriptPubKey}
683
680
  * @memberof Vout
684
681
  */
685
- scriptPubKey: VoutScriptPubKey;
682
+ 'scriptPubKey': VoutScriptPubKey;
686
683
  }
687
684
  /**
688
685
  *
@@ -695,25 +692,25 @@ export interface VoutScriptPubKey {
695
692
  * @type {Array<string>}
696
693
  * @memberof VoutScriptPubKey
697
694
  */
698
- addresses: Array<string>;
695
+ 'addresses': Array<string>;
699
696
  /**
700
697
  *
701
698
  * @type {string}
702
699
  * @memberof VoutScriptPubKey
703
700
  */
704
- type?: string;
701
+ 'type'?: string;
705
702
  /**
706
703
  *
707
704
  * @type {string}
708
705
  * @memberof VoutScriptPubKey
709
706
  */
710
- hex?: string;
707
+ 'hex'?: string;
711
708
  /**
712
709
  *
713
710
  * @type {string}
714
711
  * @memberof VoutScriptPubKey
715
712
  */
716
- asm?: string;
713
+ 'asm'?: string;
717
714
  }
718
715
  /**
719
716
  * V1Api - axios parameter creator
@@ -726,26 +723,26 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
726
723
  * @param {*} [options] Override http request option.
727
724
  * @throws {RequiredError}
728
725
  */
729
- getAccount: (pubkey: string, options?: any) => Promise<RequestArgs>;
726
+ getAccount: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
730
727
  /**
731
728
  * Get information about the running coinstack
732
729
  * @param {*} [options] Override http request option.
733
730
  * @throws {RequiredError}
734
731
  */
735
- getInfo: (options?: any) => Promise<RequestArgs>;
732
+ getInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
736
733
  /**
737
734
  * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
738
735
  * @param {*} [options] Override http request option.
739
736
  * @throws {RequiredError}
740
737
  */
741
- getNetworkFees: (options?: any) => Promise<RequestArgs>;
738
+ getNetworkFees: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
742
739
  /**
743
740
  * Get transaction specific data directly from the node
744
741
  * @param {string} txid transaction hash
745
742
  * @param {*} [options] Override http request option.
746
743
  * @throws {RequiredError}
747
744
  */
748
- getTransaction: (txid: string, options?: any) => Promise<RequestArgs>;
745
+ getTransaction: (txid: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
749
746
  /**
750
747
  * Get transaction history by address or xpub
751
748
  * @param {string} pubkey account address or xpub
@@ -754,21 +751,21 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
754
751
  * @param {*} [options] Override http request option.
755
752
  * @throws {RequiredError}
756
753
  */
757
- getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any) => Promise<RequestArgs>;
754
+ getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
758
755
  /**
759
756
  * Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
760
757
  * @param {string} pubkey account address or xpub
761
758
  * @param {*} [options] Override http request option.
762
759
  * @throws {RequiredError}
763
760
  */
764
- getUtxos: (pubkey: string, options?: any) => Promise<RequestArgs>;
761
+ getUtxos: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
765
762
  /**
766
763
  * Sends raw transaction to be broadcast to the node.
767
764
  * @param {SendTxBody} sendTxBody serialized raw transaction hex
768
765
  * @param {*} [options] Override http request option.
769
766
  * @throws {RequiredError}
770
767
  */
771
- sendTx: (sendTxBody: SendTxBody, options?: any) => Promise<RequestArgs>;
768
+ sendTx: (sendTxBody: SendTxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
772
769
  };
773
770
  /**
774
771
  * V1Api - functional programming interface
@@ -781,26 +778,26 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
781
778
  * @param {*} [options] Override http request option.
782
779
  * @throws {RequiredError}
783
780
  */
784
- getAccount(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinAccount>>;
781
+ getAccount(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinAccount>>;
785
782
  /**
786
783
  * Get information about the running coinstack
787
784
  * @param {*} [options] Override http request option.
788
785
  * @throws {RequiredError}
789
786
  */
790
- getInfo(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
787
+ getInfo(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
791
788
  /**
792
789
  * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
793
790
  * @param {*} [options] Override http request option.
794
791
  * @throws {RequiredError}
795
792
  */
796
- getNetworkFees(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BTCNetworkFees>>;
793
+ getNetworkFees(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BTCNetworkFees>>;
797
794
  /**
798
795
  * Get transaction specific data directly from the node
799
796
  * @param {string} txid transaction hash
800
797
  * @param {*} [options] Override http request option.
801
798
  * @throws {RequiredError}
802
799
  */
803
- getTransaction(txid: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinTxSpecific>>;
800
+ getTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinTxSpecific>>;
804
801
  /**
805
802
  * Get transaction history by address or xpub
806
803
  * @param {string} pubkey account address or xpub
@@ -809,21 +806,21 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
809
806
  * @param {*} [options] Override http request option.
810
807
  * @throws {RequiredError}
811
808
  */
812
- getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinTxHistory>>;
809
+ getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BitcoinTxHistory>>;
813
810
  /**
814
811
  * Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
815
812
  * @param {string} pubkey account address or xpub
816
813
  * @param {*} [options] Override http request option.
817
814
  * @throws {RequiredError}
818
815
  */
819
- getUtxos(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Array<Utxo>>>;
816
+ getUtxos(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Array<Utxo>>>;
820
817
  /**
821
818
  * Sends raw transaction to be broadcast to the node.
822
819
  * @param {SendTxBody} sendTxBody serialized raw transaction hex
823
820
  * @param {*} [options] Override http request option.
824
821
  * @throws {RequiredError}
825
822
  */
826
- sendTx(sendTxBody: SendTxBody, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
823
+ sendTx(sendTxBody: SendTxBody, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
827
824
  };
828
825
  /**
829
826
  * V1Api - factory interface
@@ -971,21 +968,21 @@ export declare class V1Api extends BaseAPI {
971
968
  * @throws {RequiredError}
972
969
  * @memberof V1Api
973
970
  */
974
- getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<BitcoinAccount, any>>;
971
+ getAccount(requestParameters: V1ApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BitcoinAccount, any>>;
975
972
  /**
976
973
  * Get information about the running coinstack
977
974
  * @param {*} [options] Override http request option.
978
975
  * @throws {RequiredError}
979
976
  * @memberof V1Api
980
977
  */
981
- getInfo(options?: any): Promise<import("axios").AxiosResponse<Info, any>>;
978
+ getInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Info, any>>;
982
979
  /**
983
980
  * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
984
981
  * @param {*} [options] Override http request option.
985
982
  * @throws {RequiredError}
986
983
  * @memberof V1Api
987
984
  */
988
- getNetworkFees(options?: any): Promise<import("axios").AxiosResponse<BTCNetworkFees, any>>;
985
+ getNetworkFees(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BTCNetworkFees, any>>;
989
986
  /**
990
987
  * Get transaction specific data directly from the node
991
988
  * @param {V1ApiGetTransactionRequest} requestParameters Request parameters.
@@ -993,7 +990,7 @@ export declare class V1Api extends BaseAPI {
993
990
  * @throws {RequiredError}
994
991
  * @memberof V1Api
995
992
  */
996
- getTransaction(requestParameters: V1ApiGetTransactionRequest, options?: any): Promise<import("axios").AxiosResponse<BitcoinTxSpecific, any>>;
993
+ getTransaction(requestParameters: V1ApiGetTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BitcoinTxSpecific, any>>;
997
994
  /**
998
995
  * Get transaction history by address or xpub
999
996
  * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
@@ -1001,7 +998,7 @@ export declare class V1Api extends BaseAPI {
1001
998
  * @throws {RequiredError}
1002
999
  * @memberof V1Api
1003
1000
  */
1004
- getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<BitcoinTxHistory, any>>;
1001
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BitcoinTxHistory, any>>;
1005
1002
  /**
1006
1003
  * Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
1007
1004
  * @param {V1ApiGetUtxosRequest} requestParameters Request parameters.
@@ -1009,7 +1006,7 @@ export declare class V1Api extends BaseAPI {
1009
1006
  * @throws {RequiredError}
1010
1007
  * @memberof V1Api
1011
1008
  */
1012
- getUtxos(requestParameters: V1ApiGetUtxosRequest, options?: any): Promise<import("axios").AxiosResponse<Utxo[], any>>;
1009
+ getUtxos(requestParameters: V1ApiGetUtxosRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Utxo[], any>>;
1013
1010
  /**
1014
1011
  * Sends raw transaction to be broadcast to the node.
1015
1012
  * @param {V1ApiSendTxRequest} requestParameters Request parameters.
@@ -1017,6 +1014,5 @@ export declare class V1Api extends BaseAPI {
1017
1014
  * @throws {RequiredError}
1018
1015
  * @memberof V1Api
1019
1016
  */
1020
- sendTx(requestParameters: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string, any>>;
1017
+ sendTx(requestParameters: V1ApiSendTxRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1021
1018
  }
1022
- //# sourceMappingURL=api.d.ts.map