@shapeshiftoss/unchained-client 9.3.1 → 9.5.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.
- package/dist/cosmos/parser/index.js +1 -1
- package/dist/evm/avalanche/parser/index.js +1 -5
- package/dist/evm/ethereum/parser/constants.d.ts +1 -0
- package/dist/evm/ethereum/parser/constants.js +2 -1
- package/dist/evm/ethereum/parser/cowswap.d.ts +5 -0
- package/dist/evm/ethereum/parser/cowswap.js +27 -0
- package/dist/evm/ethereum/parser/index.js +4 -6
- package/dist/evm/parser/index.js +4 -4
- package/dist/generated/avalanche/api.d.ts +1 -1
- package/dist/generated/avalanche/api.js +1 -1
- package/dist/generated/avalanche/base.d.ts +1 -1
- package/dist/generated/avalanche/base.js +1 -1
- package/dist/generated/avalanche/common.d.ts +1 -1
- package/dist/generated/avalanche/common.js +1 -1
- package/dist/generated/avalanche/configuration.d.ts +1 -1
- package/dist/generated/avalanche/configuration.js +1 -1
- package/dist/generated/avalanche/index.d.ts +1 -1
- package/dist/generated/avalanche/index.js +1 -1
- package/dist/generated/bitcoin/api.d.ts +201 -201
- package/dist/generated/bitcoin/api.js +26 -26
- package/dist/generated/bitcoin/base.d.ts +1 -1
- package/dist/generated/bitcoin/base.js +1 -1
- package/dist/generated/bitcoin/common.d.ts +1 -1
- package/dist/generated/bitcoin/common.js +1 -1
- package/dist/generated/bitcoin/configuration.d.ts +1 -1
- package/dist/generated/bitcoin/configuration.js +1 -1
- package/dist/generated/bitcoin/index.d.ts +1 -1
- package/dist/generated/bitcoin/index.js +1 -1
- package/dist/generated/dogecoin/api.d.ts +201 -201
- package/dist/generated/dogecoin/api.js +26 -26
- package/dist/generated/dogecoin/base.d.ts +1 -1
- package/dist/generated/dogecoin/base.js +1 -1
- package/dist/generated/dogecoin/common.d.ts +1 -1
- package/dist/generated/dogecoin/common.js +1 -1
- package/dist/generated/dogecoin/configuration.d.ts +1 -1
- package/dist/generated/dogecoin/configuration.js +1 -1
- package/dist/generated/dogecoin/index.d.ts +1 -1
- package/dist/generated/dogecoin/index.js +1 -1
- package/dist/generated/ethereum/api.d.ts +1 -1
- package/dist/generated/ethereum/api.js +1 -1
- package/dist/generated/ethereum/base.d.ts +1 -1
- package/dist/generated/ethereum/base.js +1 -1
- package/dist/generated/ethereum/common.d.ts +1 -1
- package/dist/generated/ethereum/common.js +1 -1
- package/dist/generated/ethereum/configuration.d.ts +1 -1
- package/dist/generated/ethereum/configuration.js +1 -1
- package/dist/generated/ethereum/index.d.ts +1 -1
- package/dist/generated/ethereum/index.js +1 -1
- package/dist/generated/litecoin/api.d.ts +1010 -0
- package/dist/generated/litecoin/api.js +521 -0
- package/dist/generated/litecoin/base.d.ts +55 -0
- package/dist/generated/litecoin/base.js +64 -0
- package/dist/generated/litecoin/common.d.ts +65 -0
- package/dist/generated/litecoin/common.js +137 -0
- package/dist/generated/litecoin/configuration.d.ts +83 -0
- package/dist/generated/litecoin/configuration.js +42 -0
- package/dist/generated/litecoin/index.d.ts +13 -0
- package/dist/generated/litecoin/index.js +31 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -3
- package/dist/types.d.ts +17 -14
- package/dist/types.js +21 -14
- package/dist/utxo/bitcoin/index.d.ts +2 -0
- package/dist/{bitcoin → utxo/bitcoin}/index.js +1 -2
- package/dist/utxo/bitcoin/parser/index.d.ts +6 -0
- package/dist/utxo/bitcoin/parser/index.js +12 -0
- package/dist/utxo/dogecoin/index.d.ts +2 -0
- package/dist/{dogecoin → utxo/dogecoin}/index.js +2 -3
- package/dist/utxo/dogecoin/parser/index.d.ts +6 -0
- package/dist/utxo/dogecoin/parser/index.js +12 -0
- package/dist/utxo/index.d.ts +5 -0
- package/dist/utxo/index.js +31 -0
- package/dist/utxo/litecoin/index.d.ts +2 -0
- package/dist/utxo/litecoin/index.js +18 -0
- package/dist/utxo/litecoin/parser/index.d.ts +6 -0
- package/dist/utxo/litecoin/parser/index.js +12 -0
- package/dist/utxo/parser/index.d.ts +12 -0
- package/dist/{bitcoin → utxo}/parser/index.js +4 -11
- package/package.json +4 -4
- package/dist/bitcoin/index.d.ts +0 -3
- package/dist/bitcoin/parser/index.d.ts +0 -13
- package/dist/bitcoin/types.d.ts +0 -1
- package/dist/bitcoin/types.js +0 -2
- package/dist/dogecoin/index.d.ts +0 -3
|
@@ -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:
|
|
5
|
+
* The version of the OpenAPI document: 8.0.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,48 +13,66 @@ import { Configuration } from './configuration';
|
|
|
13
13
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
14
|
import { RequestArgs, BaseAPI } from './base';
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Contains info about an address or extended public key account
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface Account
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface Account {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @type {
|
|
24
|
-
* @memberof
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Account
|
|
25
25
|
*/
|
|
26
|
-
'
|
|
26
|
+
'balance': string;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Account
|
|
31
|
+
*/
|
|
32
|
+
'unconfirmedBalance': string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof Account
|
|
37
|
+
*/
|
|
38
|
+
'pubkey': string;
|
|
39
|
+
/**
|
|
40
|
+
* List of associated addresses for an extended public key
|
|
41
|
+
* @type {Array<Address>}
|
|
42
|
+
* @memberof Account
|
|
43
|
+
*/
|
|
44
|
+
'addresses'?: Array<Address>;
|
|
45
|
+
/**
|
|
46
|
+
* The next unused receive address index for an extended public key (change index 0)
|
|
29
47
|
* @type {number}
|
|
30
|
-
* @memberof
|
|
48
|
+
* @memberof Account
|
|
31
49
|
*/
|
|
32
|
-
'
|
|
50
|
+
'nextReceiveAddressIndex'?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The next unused change address index for an extended public key (change index 1)
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof Account
|
|
55
|
+
*/
|
|
56
|
+
'nextChangeAddressIndex'?: number;
|
|
33
57
|
}
|
|
34
58
|
/**
|
|
35
|
-
*
|
|
59
|
+
* Contains info about an address associated with an extended public key
|
|
36
60
|
* @export
|
|
37
|
-
* @interface
|
|
61
|
+
* @interface Address
|
|
38
62
|
*/
|
|
39
|
-
export interface
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {BTCNetworkFee}
|
|
43
|
-
* @memberof BTCNetworkFees
|
|
44
|
-
*/
|
|
45
|
-
'fast'?: BTCNetworkFee;
|
|
63
|
+
export interface Address {
|
|
46
64
|
/**
|
|
47
65
|
*
|
|
48
|
-
* @type {
|
|
49
|
-
* @memberof
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Address
|
|
50
68
|
*/
|
|
51
|
-
'
|
|
69
|
+
'balance': string;
|
|
52
70
|
/**
|
|
53
71
|
*
|
|
54
|
-
* @type {
|
|
55
|
-
* @memberof
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Address
|
|
56
74
|
*/
|
|
57
|
-
'
|
|
75
|
+
'pubkey': string;
|
|
58
76
|
}
|
|
59
77
|
/**
|
|
60
78
|
* Contains info about a 400 Bad Request response
|
|
@@ -85,395 +103,377 @@ export interface BaseInfo {
|
|
|
85
103
|
/**
|
|
86
104
|
* Contains paginated base transaction history details
|
|
87
105
|
* @export
|
|
88
|
-
* @interface
|
|
106
|
+
* @interface BaseTxHistoryTx
|
|
89
107
|
*/
|
|
90
|
-
export interface
|
|
108
|
+
export interface BaseTxHistoryTx {
|
|
91
109
|
/**
|
|
92
110
|
*
|
|
93
111
|
* @type {string}
|
|
94
|
-
* @memberof
|
|
112
|
+
* @memberof BaseTxHistoryTx
|
|
95
113
|
*/
|
|
96
114
|
'cursor'?: string;
|
|
97
115
|
/**
|
|
98
116
|
*
|
|
99
117
|
* @type {string}
|
|
100
|
-
* @memberof
|
|
118
|
+
* @memberof BaseTxHistoryTx
|
|
101
119
|
*/
|
|
102
120
|
'pubkey': string;
|
|
103
121
|
/**
|
|
104
122
|
*
|
|
105
|
-
* @type {Array<
|
|
106
|
-
* @memberof
|
|
123
|
+
* @type {Array<Tx>}
|
|
124
|
+
* @memberof BaseTxHistoryTx
|
|
107
125
|
*/
|
|
108
|
-
'txs': Array<
|
|
126
|
+
'txs': Array<Tx>;
|
|
109
127
|
}
|
|
110
128
|
/**
|
|
111
|
-
* Contains
|
|
129
|
+
* Contains info about a 500 Internal Server Error response
|
|
112
130
|
* @export
|
|
113
|
-
* @interface
|
|
131
|
+
* @interface InternalServerError
|
|
114
132
|
*/
|
|
115
|
-
export interface
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof BitcoinAccount
|
|
120
|
-
*/
|
|
121
|
-
'balance': string;
|
|
133
|
+
export interface InternalServerError {
|
|
122
134
|
/**
|
|
123
135
|
*
|
|
124
136
|
* @type {string}
|
|
125
|
-
* @memberof
|
|
137
|
+
* @memberof InternalServerError
|
|
126
138
|
*/
|
|
127
|
-
'
|
|
139
|
+
'message': string;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Contains info about the network fee
|
|
143
|
+
* @export
|
|
144
|
+
* @interface NetworkFee
|
|
145
|
+
*/
|
|
146
|
+
export interface NetworkFee {
|
|
128
147
|
/**
|
|
129
148
|
*
|
|
130
|
-
* @type {string}
|
|
131
|
-
* @memberof BitcoinAccount
|
|
132
|
-
*/
|
|
133
|
-
'pubkey': string;
|
|
134
|
-
/**
|
|
135
|
-
* List of associated addresses for an xpub
|
|
136
|
-
* @type {Array<BitcoinAddress>}
|
|
137
|
-
* @memberof BitcoinAccount
|
|
138
|
-
*/
|
|
139
|
-
'addresses'?: Array<BitcoinAddress>;
|
|
140
|
-
/**
|
|
141
|
-
* The next unused receive address index for an xpub (change index 0)
|
|
142
149
|
* @type {number}
|
|
143
|
-
* @memberof
|
|
150
|
+
* @memberof NetworkFee
|
|
144
151
|
*/
|
|
145
|
-
'
|
|
152
|
+
'satsPerKiloByte': number;
|
|
146
153
|
/**
|
|
147
|
-
*
|
|
154
|
+
*
|
|
148
155
|
* @type {number}
|
|
149
|
-
* @memberof
|
|
156
|
+
* @memberof NetworkFee
|
|
150
157
|
*/
|
|
151
|
-
'
|
|
158
|
+
'blocksUntilConfirmation': number;
|
|
152
159
|
}
|
|
153
160
|
/**
|
|
154
|
-
*
|
|
161
|
+
* Contains info about current recommended network fees
|
|
155
162
|
* @export
|
|
156
|
-
* @interface
|
|
163
|
+
* @interface NetworkFees
|
|
157
164
|
*/
|
|
158
|
-
export interface
|
|
165
|
+
export interface NetworkFees {
|
|
159
166
|
/**
|
|
160
167
|
*
|
|
161
|
-
* @type {
|
|
162
|
-
* @memberof
|
|
168
|
+
* @type {NetworkFee}
|
|
169
|
+
* @memberof NetworkFees
|
|
163
170
|
*/
|
|
164
|
-
'
|
|
171
|
+
'fast'?: NetworkFee;
|
|
165
172
|
/**
|
|
166
173
|
*
|
|
167
|
-
* @type {
|
|
168
|
-
* @memberof
|
|
174
|
+
* @type {NetworkFee}
|
|
175
|
+
* @memberof NetworkFees
|
|
169
176
|
*/
|
|
170
|
-
'
|
|
177
|
+
'average'?: NetworkFee;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {NetworkFee}
|
|
181
|
+
* @memberof NetworkFees
|
|
182
|
+
*/
|
|
183
|
+
'slow'?: NetworkFee;
|
|
171
184
|
}
|
|
172
185
|
/**
|
|
173
|
-
* Contains
|
|
186
|
+
* Contains info about a transaction as returned from the node
|
|
174
187
|
* @export
|
|
175
|
-
* @interface
|
|
188
|
+
* @interface RawTx
|
|
176
189
|
*/
|
|
177
|
-
export interface
|
|
190
|
+
export interface RawTx {
|
|
178
191
|
/**
|
|
179
192
|
*
|
|
180
193
|
* @type {string}
|
|
181
|
-
* @memberof
|
|
194
|
+
* @memberof RawTx
|
|
182
195
|
*/
|
|
183
196
|
'txid': string;
|
|
184
197
|
/**
|
|
185
198
|
*
|
|
186
199
|
* @type {string}
|
|
187
|
-
* @memberof
|
|
200
|
+
* @memberof RawTx
|
|
188
201
|
*/
|
|
189
202
|
'hash': string;
|
|
190
203
|
/**
|
|
191
204
|
*
|
|
192
205
|
* @type {number}
|
|
193
|
-
* @memberof
|
|
206
|
+
* @memberof RawTx
|
|
194
207
|
*/
|
|
195
208
|
'version': number;
|
|
196
209
|
/**
|
|
197
210
|
*
|
|
198
211
|
* @type {number}
|
|
199
|
-
* @memberof
|
|
212
|
+
* @memberof RawTx
|
|
200
213
|
*/
|
|
201
214
|
'size': number;
|
|
202
215
|
/**
|
|
203
216
|
*
|
|
204
217
|
* @type {number}
|
|
205
|
-
* @memberof
|
|
218
|
+
* @memberof RawTx
|
|
206
219
|
*/
|
|
207
220
|
'vsize': number;
|
|
208
221
|
/**
|
|
209
222
|
*
|
|
210
223
|
* @type {number}
|
|
211
|
-
* @memberof
|
|
224
|
+
* @memberof RawTx
|
|
212
225
|
*/
|
|
213
226
|
'weight': number;
|
|
214
227
|
/**
|
|
215
228
|
*
|
|
216
229
|
* @type {number}
|
|
217
|
-
* @memberof
|
|
230
|
+
* @memberof RawTx
|
|
218
231
|
*/
|
|
219
232
|
'locktime': number;
|
|
220
233
|
/**
|
|
221
234
|
*
|
|
222
|
-
* @type {Array<
|
|
223
|
-
* @memberof
|
|
235
|
+
* @type {Array<RawTxVin>}
|
|
236
|
+
* @memberof RawTx
|
|
224
237
|
*/
|
|
225
|
-
'vin': Array<
|
|
238
|
+
'vin': Array<RawTxVin>;
|
|
226
239
|
/**
|
|
227
240
|
*
|
|
228
|
-
* @type {Array<
|
|
229
|
-
* @memberof
|
|
241
|
+
* @type {Array<RawTxVout>}
|
|
242
|
+
* @memberof RawTx
|
|
230
243
|
*/
|
|
231
|
-
'vout': Array<
|
|
244
|
+
'vout': Array<RawTxVout>;
|
|
232
245
|
/**
|
|
233
246
|
*
|
|
234
247
|
* @type {string}
|
|
235
|
-
* @memberof
|
|
248
|
+
* @memberof RawTx
|
|
236
249
|
*/
|
|
237
250
|
'hex': string;
|
|
238
251
|
/**
|
|
239
252
|
*
|
|
240
253
|
* @type {string}
|
|
241
|
-
* @memberof
|
|
254
|
+
* @memberof RawTx
|
|
242
255
|
*/
|
|
243
256
|
'blockhash': string;
|
|
244
257
|
/**
|
|
245
258
|
*
|
|
246
259
|
* @type {number}
|
|
247
|
-
* @memberof
|
|
260
|
+
* @memberof RawTx
|
|
248
261
|
*/
|
|
249
262
|
'confirmations': number;
|
|
250
263
|
/**
|
|
251
264
|
*
|
|
252
265
|
* @type {number}
|
|
253
|
-
* @memberof
|
|
266
|
+
* @memberof RawTx
|
|
254
267
|
*/
|
|
255
268
|
'time': number;
|
|
256
269
|
/**
|
|
257
270
|
*
|
|
258
271
|
* @type {number}
|
|
259
|
-
* @memberof
|
|
272
|
+
* @memberof RawTx
|
|
260
273
|
*/
|
|
261
274
|
'blocktime': number;
|
|
262
275
|
}
|
|
263
276
|
/**
|
|
264
277
|
*
|
|
265
278
|
* @export
|
|
266
|
-
* @interface
|
|
279
|
+
* @interface RawTxScriptPubKey
|
|
267
280
|
*/
|
|
268
|
-
export interface
|
|
281
|
+
export interface RawTxScriptPubKey {
|
|
269
282
|
/**
|
|
270
283
|
*
|
|
271
284
|
* @type {Array<string>}
|
|
272
|
-
* @memberof
|
|
285
|
+
* @memberof RawTxScriptPubKey
|
|
273
286
|
*/
|
|
274
287
|
'addresses': Array<string>;
|
|
275
288
|
/**
|
|
276
289
|
*
|
|
277
290
|
* @type {string}
|
|
278
|
-
* @memberof
|
|
291
|
+
* @memberof RawTxScriptPubKey
|
|
279
292
|
*/
|
|
280
293
|
'type': string;
|
|
281
294
|
/**
|
|
282
295
|
*
|
|
283
296
|
* @type {number}
|
|
284
|
-
* @memberof
|
|
297
|
+
* @memberof RawTxScriptPubKey
|
|
285
298
|
*/
|
|
286
299
|
'reqSigs': number;
|
|
287
300
|
/**
|
|
288
301
|
*
|
|
289
302
|
* @type {string}
|
|
290
|
-
* @memberof
|
|
303
|
+
* @memberof RawTxScriptPubKey
|
|
291
304
|
*/
|
|
292
305
|
'hex': string;
|
|
293
306
|
/**
|
|
294
307
|
*
|
|
295
308
|
* @type {string}
|
|
296
|
-
* @memberof
|
|
309
|
+
* @memberof RawTxScriptPubKey
|
|
297
310
|
*/
|
|
298
311
|
'asm': string;
|
|
299
312
|
}
|
|
300
313
|
/**
|
|
301
314
|
*
|
|
302
315
|
* @export
|
|
303
|
-
* @interface
|
|
316
|
+
* @interface RawTxScriptSig
|
|
304
317
|
*/
|
|
305
|
-
export interface
|
|
318
|
+
export interface RawTxScriptSig {
|
|
306
319
|
/**
|
|
307
320
|
*
|
|
308
321
|
* @type {string}
|
|
309
|
-
* @memberof
|
|
322
|
+
* @memberof RawTxScriptSig
|
|
310
323
|
*/
|
|
311
324
|
'hex': string;
|
|
312
325
|
/**
|
|
313
326
|
*
|
|
314
327
|
* @type {string}
|
|
315
|
-
* @memberof
|
|
328
|
+
* @memberof RawTxScriptSig
|
|
316
329
|
*/
|
|
317
330
|
'asm': string;
|
|
318
331
|
}
|
|
319
332
|
/**
|
|
320
333
|
*
|
|
321
334
|
* @export
|
|
322
|
-
* @interface
|
|
335
|
+
* @interface RawTxVin
|
|
323
336
|
*/
|
|
324
|
-
export interface
|
|
337
|
+
export interface RawTxVin {
|
|
325
338
|
/**
|
|
326
339
|
*
|
|
327
340
|
* @type {string}
|
|
328
|
-
* @memberof
|
|
341
|
+
* @memberof RawTxVin
|
|
329
342
|
*/
|
|
330
343
|
'txinwitness'?: string;
|
|
331
344
|
/**
|
|
332
345
|
*
|
|
333
|
-
* @type {
|
|
334
|
-
* @memberof
|
|
346
|
+
* @type {RawTxScriptSig}
|
|
347
|
+
* @memberof RawTxVin
|
|
335
348
|
*/
|
|
336
|
-
'scriptSig'?:
|
|
349
|
+
'scriptSig'?: RawTxScriptSig;
|
|
337
350
|
/**
|
|
338
351
|
*
|
|
339
352
|
* @type {string}
|
|
340
|
-
* @memberof
|
|
353
|
+
* @memberof RawTxVin
|
|
341
354
|
*/
|
|
342
355
|
'coinbase'?: string;
|
|
343
356
|
/**
|
|
344
357
|
*
|
|
345
358
|
* @type {number}
|
|
346
|
-
* @memberof
|
|
359
|
+
* @memberof RawTxVin
|
|
347
360
|
*/
|
|
348
361
|
'sequence'?: number;
|
|
349
362
|
/**
|
|
350
363
|
*
|
|
351
364
|
* @type {number}
|
|
352
|
-
* @memberof
|
|
365
|
+
* @memberof RawTxVin
|
|
353
366
|
*/
|
|
354
367
|
'vout'?: number;
|
|
355
368
|
/**
|
|
356
369
|
*
|
|
357
370
|
* @type {string}
|
|
358
|
-
* @memberof
|
|
371
|
+
* @memberof RawTxVin
|
|
359
372
|
*/
|
|
360
373
|
'txid'?: string;
|
|
361
374
|
}
|
|
362
375
|
/**
|
|
363
376
|
*
|
|
364
377
|
* @export
|
|
365
|
-
* @interface
|
|
378
|
+
* @interface RawTxVout
|
|
366
379
|
*/
|
|
367
|
-
export interface
|
|
380
|
+
export interface RawTxVout {
|
|
368
381
|
/**
|
|
369
382
|
*
|
|
370
|
-
* @type {
|
|
371
|
-
* @memberof
|
|
383
|
+
* @type {RawTxScriptPubKey}
|
|
384
|
+
* @memberof RawTxVout
|
|
372
385
|
*/
|
|
373
|
-
'scriptPubKey'?:
|
|
386
|
+
'scriptPubKey'?: RawTxScriptPubKey;
|
|
374
387
|
/**
|
|
375
388
|
*
|
|
376
389
|
* @type {number}
|
|
377
|
-
* @memberof
|
|
390
|
+
* @memberof RawTxVout
|
|
378
391
|
*/
|
|
379
392
|
'n'?: number;
|
|
380
393
|
/**
|
|
381
394
|
*
|
|
382
395
|
* @type {string | number}
|
|
383
|
-
* @memberof
|
|
396
|
+
* @memberof RawTxVout
|
|
384
397
|
*/
|
|
385
398
|
'value'?: string | number;
|
|
386
399
|
}
|
|
387
400
|
/**
|
|
388
|
-
* Contains
|
|
401
|
+
* Contains the serialized raw transaction hex
|
|
389
402
|
* @export
|
|
390
|
-
* @interface
|
|
403
|
+
* @interface SendTxBody
|
|
391
404
|
*/
|
|
392
|
-
export interface
|
|
405
|
+
export interface SendTxBody {
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @type {string}
|
|
409
|
+
* @memberof SendTxBody
|
|
410
|
+
*/
|
|
411
|
+
'hex': string;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Contains info about a transaction
|
|
415
|
+
* @export
|
|
416
|
+
* @interface Tx
|
|
417
|
+
*/
|
|
418
|
+
export interface Tx {
|
|
393
419
|
/**
|
|
394
420
|
*
|
|
395
421
|
* @type {string}
|
|
396
|
-
* @memberof
|
|
422
|
+
* @memberof Tx
|
|
397
423
|
*/
|
|
398
424
|
'txid': string;
|
|
399
425
|
/**
|
|
400
426
|
*
|
|
401
427
|
* @type {string}
|
|
402
|
-
* @memberof
|
|
428
|
+
* @memberof Tx
|
|
403
429
|
*/
|
|
404
430
|
'blockHash'?: string;
|
|
405
431
|
/**
|
|
406
432
|
*
|
|
407
433
|
* @type {number}
|
|
408
|
-
* @memberof
|
|
434
|
+
* @memberof Tx
|
|
409
435
|
*/
|
|
410
436
|
'blockHeight': number;
|
|
411
437
|
/**
|
|
412
438
|
*
|
|
413
439
|
* @type {number}
|
|
414
|
-
* @memberof
|
|
440
|
+
* @memberof Tx
|
|
415
441
|
*/
|
|
416
442
|
'timestamp': number;
|
|
417
443
|
/**
|
|
418
444
|
*
|
|
419
445
|
* @type {Array<Vin>}
|
|
420
|
-
* @memberof
|
|
446
|
+
* @memberof Tx
|
|
421
447
|
*/
|
|
422
448
|
'vin': Array<Vin>;
|
|
423
449
|
/**
|
|
424
450
|
*
|
|
425
451
|
* @type {Array<Vout>}
|
|
426
|
-
* @memberof
|
|
452
|
+
* @memberof Tx
|
|
427
453
|
*/
|
|
428
454
|
'vout': Array<Vout>;
|
|
429
455
|
/**
|
|
430
456
|
*
|
|
431
457
|
* @type {number}
|
|
432
|
-
* @memberof
|
|
458
|
+
* @memberof Tx
|
|
433
459
|
*/
|
|
434
460
|
'confirmations': number;
|
|
435
461
|
/**
|
|
436
462
|
*
|
|
437
463
|
* @type {string}
|
|
438
|
-
* @memberof
|
|
464
|
+
* @memberof Tx
|
|
439
465
|
*/
|
|
440
466
|
'value': string;
|
|
441
467
|
/**
|
|
442
468
|
*
|
|
443
469
|
* @type {string}
|
|
444
|
-
* @memberof
|
|
470
|
+
* @memberof Tx
|
|
445
471
|
*/
|
|
446
472
|
'fee': string;
|
|
447
473
|
/**
|
|
448
474
|
*
|
|
449
475
|
* @type {string}
|
|
450
|
-
* @memberof
|
|
451
|
-
*/
|
|
452
|
-
'hex': string;
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* Contains info about a 500 Internal Server Error response
|
|
456
|
-
* @export
|
|
457
|
-
* @interface InternalServerError
|
|
458
|
-
*/
|
|
459
|
-
export interface InternalServerError {
|
|
460
|
-
/**
|
|
461
|
-
*
|
|
462
|
-
* @type {string}
|
|
463
|
-
* @memberof InternalServerError
|
|
464
|
-
*/
|
|
465
|
-
'message': string;
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* Contains the serialized raw transaction hex
|
|
469
|
-
* @export
|
|
470
|
-
* @interface SendTxBody
|
|
471
|
-
*/
|
|
472
|
-
export interface SendTxBody {
|
|
473
|
-
/**
|
|
474
|
-
*
|
|
475
|
-
* @type {string}
|
|
476
|
-
* @memberof SendTxBody
|
|
476
|
+
* @memberof Tx
|
|
477
477
|
*/
|
|
478
478
|
'hex': string;
|
|
479
479
|
}
|
|
@@ -564,7 +564,7 @@ export declare const ValidationErrorMessageEnum: {
|
|
|
564
564
|
};
|
|
565
565
|
export declare type ValidationErrorMessageEnum = typeof ValidationErrorMessageEnum[keyof typeof ValidationErrorMessageEnum];
|
|
566
566
|
/**
|
|
567
|
-
* Contains info about a
|
|
567
|
+
* Contains info about a transaction input
|
|
568
568
|
* @export
|
|
569
569
|
* @interface Vin
|
|
570
570
|
*/
|
|
@@ -626,7 +626,7 @@ export interface VinScriptSig {
|
|
|
626
626
|
'hex'?: string;
|
|
627
627
|
}
|
|
628
628
|
/**
|
|
629
|
-
* Contains info about a
|
|
629
|
+
* Contains info about a transaction output
|
|
630
630
|
* @export
|
|
631
631
|
* @interface Vout
|
|
632
632
|
*/
|
|
@@ -668,8 +668,8 @@ export interface Vout {
|
|
|
668
668
|
*/
|
|
669
669
|
export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
|
|
670
670
|
/**
|
|
671
|
-
* Get account details by address or
|
|
672
|
-
* @param {string} pubkey account address or
|
|
671
|
+
* Get account details by address or extended public key
|
|
672
|
+
* @param {string} pubkey account address or extended public key
|
|
673
673
|
* @param {*} [options] Override http request option.
|
|
674
674
|
* @throws {RequiredError}
|
|
675
675
|
*/
|
|
@@ -681,7 +681,7 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
|
|
|
681
681
|
*/
|
|
682
682
|
getInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
683
683
|
/**
|
|
684
|
-
*
|
|
684
|
+
* Get current recommended network fees to use in a transaction
|
|
685
685
|
* @param {*} [options] Override http request option.
|
|
686
686
|
* @throws {RequiredError}
|
|
687
687
|
*/
|
|
@@ -701,8 +701,8 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
|
|
|
701
701
|
*/
|
|
702
702
|
getTransaction: (txid: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
703
703
|
/**
|
|
704
|
-
* Get transaction history by address or
|
|
705
|
-
* @param {string} pubkey account address or
|
|
704
|
+
* Get transaction history by address or extended public key
|
|
705
|
+
* @param {string} pubkey account address or extended public key
|
|
706
706
|
* @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \'page\' property)
|
|
707
707
|
* @param {number} [pageSize] page size (10 by default)
|
|
708
708
|
* @param {*} [options] Override http request option.
|
|
@@ -710,8 +710,8 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
|
|
|
710
710
|
*/
|
|
711
711
|
getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
712
712
|
/**
|
|
713
|
-
* Get all unspent transaction outputs for an address or
|
|
714
|
-
* @param {string} pubkey account address or
|
|
713
|
+
* Get all unspent transaction outputs for an address or extended public key
|
|
714
|
+
* @param {string} pubkey account address or extended public key
|
|
715
715
|
* @param {*} [options] Override http request option.
|
|
716
716
|
* @throws {RequiredError}
|
|
717
717
|
*/
|
|
@@ -730,12 +730,12 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
|
|
|
730
730
|
*/
|
|
731
731
|
export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
|
|
732
732
|
/**
|
|
733
|
-
* Get account details by address or
|
|
734
|
-
* @param {string} pubkey account address or
|
|
733
|
+
* Get account details by address or extended public key
|
|
734
|
+
* @param {string} pubkey account address or extended public key
|
|
735
735
|
* @param {*} [options] Override http request option.
|
|
736
736
|
* @throws {RequiredError}
|
|
737
737
|
*/
|
|
738
|
-
getAccount(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
738
|
+
getAccount(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Account>>;
|
|
739
739
|
/**
|
|
740
740
|
* Get information about the running coinstack
|
|
741
741
|
* @param {*} [options] Override http request option.
|
|
@@ -743,37 +743,37 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
|
|
|
743
743
|
*/
|
|
744
744
|
getInfo(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BaseInfo>>;
|
|
745
745
|
/**
|
|
746
|
-
*
|
|
746
|
+
* Get current recommended network fees to use in a transaction
|
|
747
747
|
* @param {*} [options] Override http request option.
|
|
748
748
|
* @throws {RequiredError}
|
|
749
749
|
*/
|
|
750
|
-
getNetworkFees(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
750
|
+
getNetworkFees(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<NetworkFees>>;
|
|
751
751
|
/**
|
|
752
752
|
* Get raw transaction details directly from the node
|
|
753
753
|
* @param {string} txid transaction hash
|
|
754
754
|
* @param {*} [options] Override http request option.
|
|
755
755
|
* @throws {RequiredError}
|
|
756
756
|
*/
|
|
757
|
-
getRawTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
757
|
+
getRawTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<RawTx>>;
|
|
758
758
|
/**
|
|
759
759
|
* Get transaction details
|
|
760
760
|
* @param {string} txid transaction hash
|
|
761
761
|
* @param {*} [options] Override http request option.
|
|
762
762
|
* @throws {RequiredError}
|
|
763
763
|
*/
|
|
764
|
-
getTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
764
|
+
getTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Tx>>;
|
|
765
765
|
/**
|
|
766
|
-
* Get transaction history by address or
|
|
767
|
-
* @param {string} pubkey account address or
|
|
766
|
+
* Get transaction history by address or extended public key
|
|
767
|
+
* @param {string} pubkey account address or extended public key
|
|
768
768
|
* @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \'page\' property)
|
|
769
769
|
* @param {number} [pageSize] page size (10 by default)
|
|
770
770
|
* @param {*} [options] Override http request option.
|
|
771
771
|
* @throws {RequiredError}
|
|
772
772
|
*/
|
|
773
|
-
getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<
|
|
773
|
+
getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BaseTxHistoryTx>>;
|
|
774
774
|
/**
|
|
775
|
-
* Get all unspent transaction outputs for an address or
|
|
776
|
-
* @param {string} pubkey account address or
|
|
775
|
+
* Get all unspent transaction outputs for an address or extended public key
|
|
776
|
+
* @param {string} pubkey account address or extended public key
|
|
777
777
|
* @param {*} [options] Override http request option.
|
|
778
778
|
* @throws {RequiredError}
|
|
779
779
|
*/
|
|
@@ -792,12 +792,12 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
|
|
|
792
792
|
*/
|
|
793
793
|
export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
|
|
794
794
|
/**
|
|
795
|
-
* Get account details by address or
|
|
796
|
-
* @param {string} pubkey account address or
|
|
795
|
+
* Get account details by address or extended public key
|
|
796
|
+
* @param {string} pubkey account address or extended public key
|
|
797
797
|
* @param {*} [options] Override http request option.
|
|
798
798
|
* @throws {RequiredError}
|
|
799
799
|
*/
|
|
800
|
-
getAccount(pubkey: string, options?: any): AxiosPromise<
|
|
800
|
+
getAccount(pubkey: string, options?: any): AxiosPromise<Account>;
|
|
801
801
|
/**
|
|
802
802
|
* Get information about the running coinstack
|
|
803
803
|
* @param {*} [options] Override http request option.
|
|
@@ -805,37 +805,37 @@ export declare const V1ApiFactory: (configuration?: Configuration | undefined, b
|
|
|
805
805
|
*/
|
|
806
806
|
getInfo(options?: any): AxiosPromise<BaseInfo>;
|
|
807
807
|
/**
|
|
808
|
-
*
|
|
808
|
+
* Get current recommended network fees to use in a transaction
|
|
809
809
|
* @param {*} [options] Override http request option.
|
|
810
810
|
* @throws {RequiredError}
|
|
811
811
|
*/
|
|
812
|
-
getNetworkFees(options?: any): AxiosPromise<
|
|
812
|
+
getNetworkFees(options?: any): AxiosPromise<NetworkFees>;
|
|
813
813
|
/**
|
|
814
814
|
* Get raw transaction details directly from the node
|
|
815
815
|
* @param {string} txid transaction hash
|
|
816
816
|
* @param {*} [options] Override http request option.
|
|
817
817
|
* @throws {RequiredError}
|
|
818
818
|
*/
|
|
819
|
-
getRawTransaction(txid: string, options?: any): AxiosPromise<
|
|
819
|
+
getRawTransaction(txid: string, options?: any): AxiosPromise<RawTx>;
|
|
820
820
|
/**
|
|
821
821
|
* Get transaction details
|
|
822
822
|
* @param {string} txid transaction hash
|
|
823
823
|
* @param {*} [options] Override http request option.
|
|
824
824
|
* @throws {RequiredError}
|
|
825
825
|
*/
|
|
826
|
-
getTransaction(txid: string, options?: any): AxiosPromise<
|
|
826
|
+
getTransaction(txid: string, options?: any): AxiosPromise<Tx>;
|
|
827
827
|
/**
|
|
828
|
-
* Get transaction history by address or
|
|
829
|
-
* @param {string} pubkey account address or
|
|
828
|
+
* Get transaction history by address or extended public key
|
|
829
|
+
* @param {string} pubkey account address or extended public key
|
|
830
830
|
* @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \'page\' property)
|
|
831
831
|
* @param {number} [pageSize] page size (10 by default)
|
|
832
832
|
* @param {*} [options] Override http request option.
|
|
833
833
|
* @throws {RequiredError}
|
|
834
834
|
*/
|
|
835
|
-
getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<
|
|
835
|
+
getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<BaseTxHistoryTx>;
|
|
836
836
|
/**
|
|
837
|
-
* Get all unspent transaction outputs for an address or
|
|
838
|
-
* @param {string} pubkey account address or
|
|
837
|
+
* Get all unspent transaction outputs for an address or extended public key
|
|
838
|
+
* @param {string} pubkey account address or extended public key
|
|
839
839
|
* @param {*} [options] Override http request option.
|
|
840
840
|
* @throws {RequiredError}
|
|
841
841
|
*/
|
|
@@ -855,7 +855,7 @@ export declare const V1ApiFactory: (configuration?: Configuration | undefined, b
|
|
|
855
855
|
*/
|
|
856
856
|
export interface V1ApiGetAccountRequest {
|
|
857
857
|
/**
|
|
858
|
-
* account address or
|
|
858
|
+
* account address or extended public key
|
|
859
859
|
* @type {string}
|
|
860
860
|
* @memberof V1ApiGetAccount
|
|
861
861
|
*/
|
|
@@ -894,7 +894,7 @@ export interface V1ApiGetTransactionRequest {
|
|
|
894
894
|
*/
|
|
895
895
|
export interface V1ApiGetTxHistoryRequest {
|
|
896
896
|
/**
|
|
897
|
-
* account address or
|
|
897
|
+
* account address or extended public key
|
|
898
898
|
* @type {string}
|
|
899
899
|
* @memberof V1ApiGetTxHistory
|
|
900
900
|
*/
|
|
@@ -919,7 +919,7 @@ export interface V1ApiGetTxHistoryRequest {
|
|
|
919
919
|
*/
|
|
920
920
|
export interface V1ApiGetUtxosRequest {
|
|
921
921
|
/**
|
|
922
|
-
* account address or
|
|
922
|
+
* account address or extended public key
|
|
923
923
|
* @type {string}
|
|
924
924
|
* @memberof V1ApiGetUtxos
|
|
925
925
|
*/
|
|
@@ -946,13 +946,13 @@ export interface V1ApiSendTxRequest {
|
|
|
946
946
|
*/
|
|
947
947
|
export declare class V1Api extends BaseAPI {
|
|
948
948
|
/**
|
|
949
|
-
* Get account details by address or
|
|
949
|
+
* Get account details by address or extended public key
|
|
950
950
|
* @param {V1ApiGetAccountRequest} requestParameters Request parameters.
|
|
951
951
|
* @param {*} [options] Override http request option.
|
|
952
952
|
* @throws {RequiredError}
|
|
953
953
|
* @memberof V1Api
|
|
954
954
|
*/
|
|
955
|
-
getAccount(requestParameters: V1ApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
955
|
+
getAccount(requestParameters: V1ApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
|
|
956
956
|
/**
|
|
957
957
|
* Get information about the running coinstack
|
|
958
958
|
* @param {*} [options] Override http request option.
|
|
@@ -961,12 +961,12 @@ export declare class V1Api extends BaseAPI {
|
|
|
961
961
|
*/
|
|
962
962
|
getInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseInfo, any>>;
|
|
963
963
|
/**
|
|
964
|
-
*
|
|
964
|
+
* Get current recommended network fees to use in a transaction
|
|
965
965
|
* @param {*} [options] Override http request option.
|
|
966
966
|
* @throws {RequiredError}
|
|
967
967
|
* @memberof V1Api
|
|
968
968
|
*/
|
|
969
|
-
getNetworkFees(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
969
|
+
getNetworkFees(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<NetworkFees, any>>;
|
|
970
970
|
/**
|
|
971
971
|
* Get raw transaction details directly from the node
|
|
972
972
|
* @param {V1ApiGetRawTransactionRequest} requestParameters Request parameters.
|
|
@@ -974,7 +974,7 @@ export declare class V1Api extends BaseAPI {
|
|
|
974
974
|
* @throws {RequiredError}
|
|
975
975
|
* @memberof V1Api
|
|
976
976
|
*/
|
|
977
|
-
getRawTransaction(requestParameters: V1ApiGetRawTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
977
|
+
getRawTransaction(requestParameters: V1ApiGetRawTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RawTx, any>>;
|
|
978
978
|
/**
|
|
979
979
|
* Get transaction details
|
|
980
980
|
* @param {V1ApiGetTransactionRequest} requestParameters Request parameters.
|
|
@@ -982,17 +982,17 @@ export declare class V1Api extends BaseAPI {
|
|
|
982
982
|
* @throws {RequiredError}
|
|
983
983
|
* @memberof V1Api
|
|
984
984
|
*/
|
|
985
|
-
getTransaction(requestParameters: V1ApiGetTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
985
|
+
getTransaction(requestParameters: V1ApiGetTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tx, any>>;
|
|
986
986
|
/**
|
|
987
|
-
* Get transaction history by address or
|
|
987
|
+
* Get transaction history by address or extended public key
|
|
988
988
|
* @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
|
|
989
989
|
* @param {*} [options] Override http request option.
|
|
990
990
|
* @throws {RequiredError}
|
|
991
991
|
* @memberof V1Api
|
|
992
992
|
*/
|
|
993
|
-
getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
993
|
+
getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseTxHistoryTx, any>>;
|
|
994
994
|
/**
|
|
995
|
-
* Get all unspent transaction outputs for an address or
|
|
995
|
+
* Get all unspent transaction outputs for an address or extended public key
|
|
996
996
|
* @param {V1ApiGetUtxosRequest} requestParameters Request parameters.
|
|
997
997
|
* @param {*} [options] Override http request option.
|
|
998
998
|
* @throws {RequiredError}
|