@shapeshiftoss/unchained-client 9.3.2 → 9.5.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.
- 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 +6 -6
- 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
|
@@ -0,0 +1,1010 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @shapeshiftoss/litecoin-api
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 8.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from './configuration';
|
|
13
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
|
+
import { RequestArgs, BaseAPI } from './base';
|
|
15
|
+
/**
|
|
16
|
+
* Contains info about an address or extended public key account
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Account
|
|
19
|
+
*/
|
|
20
|
+
export interface Account {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Account
|
|
25
|
+
*/
|
|
26
|
+
'balance': string;
|
|
27
|
+
/**
|
|
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)
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof Account
|
|
49
|
+
*/
|
|
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;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Contains info about an address associated with an extended public key
|
|
60
|
+
* @export
|
|
61
|
+
* @interface Address
|
|
62
|
+
*/
|
|
63
|
+
export interface Address {
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Address
|
|
68
|
+
*/
|
|
69
|
+
'balance': string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Address
|
|
74
|
+
*/
|
|
75
|
+
'pubkey': string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Contains info about a 400 Bad Request response
|
|
79
|
+
* @export
|
|
80
|
+
* @interface BadRequestError
|
|
81
|
+
*/
|
|
82
|
+
export interface BadRequestError {
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof BadRequestError
|
|
87
|
+
*/
|
|
88
|
+
'error': string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Contains base info about the running coinstack
|
|
92
|
+
* @export
|
|
93
|
+
* @interface BaseInfo
|
|
94
|
+
*/
|
|
95
|
+
export interface BaseInfo {
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof BaseInfo
|
|
100
|
+
*/
|
|
101
|
+
'network': string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Contains paginated base transaction history details
|
|
105
|
+
* @export
|
|
106
|
+
* @interface BaseTxHistoryTx
|
|
107
|
+
*/
|
|
108
|
+
export interface BaseTxHistoryTx {
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof BaseTxHistoryTx
|
|
113
|
+
*/
|
|
114
|
+
'cursor'?: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof BaseTxHistoryTx
|
|
119
|
+
*/
|
|
120
|
+
'pubkey': string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {Array<Tx>}
|
|
124
|
+
* @memberof BaseTxHistoryTx
|
|
125
|
+
*/
|
|
126
|
+
'txs': Array<Tx>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Contains info about a 500 Internal Server Error response
|
|
130
|
+
* @export
|
|
131
|
+
* @interface InternalServerError
|
|
132
|
+
*/
|
|
133
|
+
export interface InternalServerError {
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof InternalServerError
|
|
138
|
+
*/
|
|
139
|
+
'message': string;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Contains info about the network fee
|
|
143
|
+
* @export
|
|
144
|
+
* @interface NetworkFee
|
|
145
|
+
*/
|
|
146
|
+
export interface NetworkFee {
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @memberof NetworkFee
|
|
151
|
+
*/
|
|
152
|
+
'satsPerKiloByte': number;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {number}
|
|
156
|
+
* @memberof NetworkFee
|
|
157
|
+
*/
|
|
158
|
+
'blocksUntilConfirmation': number;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Contains info about current recommended network fees
|
|
162
|
+
* @export
|
|
163
|
+
* @interface NetworkFees
|
|
164
|
+
*/
|
|
165
|
+
export interface NetworkFees {
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {NetworkFee}
|
|
169
|
+
* @memberof NetworkFees
|
|
170
|
+
*/
|
|
171
|
+
'fast'?: NetworkFee;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {NetworkFee}
|
|
175
|
+
* @memberof NetworkFees
|
|
176
|
+
*/
|
|
177
|
+
'average'?: NetworkFee;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {NetworkFee}
|
|
181
|
+
* @memberof NetworkFees
|
|
182
|
+
*/
|
|
183
|
+
'slow'?: NetworkFee;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Contains info about a transaction as returned from the node
|
|
187
|
+
* @export
|
|
188
|
+
* @interface RawTx
|
|
189
|
+
*/
|
|
190
|
+
export interface RawTx {
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof RawTx
|
|
195
|
+
*/
|
|
196
|
+
'txid': string;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @type {string}
|
|
200
|
+
* @memberof RawTx
|
|
201
|
+
*/
|
|
202
|
+
'hash': string;
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @type {number}
|
|
206
|
+
* @memberof RawTx
|
|
207
|
+
*/
|
|
208
|
+
'version': number;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @type {number}
|
|
212
|
+
* @memberof RawTx
|
|
213
|
+
*/
|
|
214
|
+
'size': number;
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @type {number}
|
|
218
|
+
* @memberof RawTx
|
|
219
|
+
*/
|
|
220
|
+
'vsize': number;
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @type {number}
|
|
224
|
+
* @memberof RawTx
|
|
225
|
+
*/
|
|
226
|
+
'weight': number;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @type {number}
|
|
230
|
+
* @memberof RawTx
|
|
231
|
+
*/
|
|
232
|
+
'locktime': number;
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @type {Array<RawTxVin>}
|
|
236
|
+
* @memberof RawTx
|
|
237
|
+
*/
|
|
238
|
+
'vin': Array<RawTxVin>;
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @type {Array<RawTxVout>}
|
|
242
|
+
* @memberof RawTx
|
|
243
|
+
*/
|
|
244
|
+
'vout': Array<RawTxVout>;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof RawTx
|
|
249
|
+
*/
|
|
250
|
+
'hex': string;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @type {string}
|
|
254
|
+
* @memberof RawTx
|
|
255
|
+
*/
|
|
256
|
+
'blockhash': string;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @type {number}
|
|
260
|
+
* @memberof RawTx
|
|
261
|
+
*/
|
|
262
|
+
'confirmations': number;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {number}
|
|
266
|
+
* @memberof RawTx
|
|
267
|
+
*/
|
|
268
|
+
'time': number;
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {number}
|
|
272
|
+
* @memberof RawTx
|
|
273
|
+
*/
|
|
274
|
+
'blocktime': number;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @export
|
|
279
|
+
* @interface RawTxScriptPubKey
|
|
280
|
+
*/
|
|
281
|
+
export interface RawTxScriptPubKey {
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {Array<string>}
|
|
285
|
+
* @memberof RawTxScriptPubKey
|
|
286
|
+
*/
|
|
287
|
+
'addresses': Array<string>;
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof RawTxScriptPubKey
|
|
292
|
+
*/
|
|
293
|
+
'type': string;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {number}
|
|
297
|
+
* @memberof RawTxScriptPubKey
|
|
298
|
+
*/
|
|
299
|
+
'reqSigs': number;
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @type {string}
|
|
303
|
+
* @memberof RawTxScriptPubKey
|
|
304
|
+
*/
|
|
305
|
+
'hex': string;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof RawTxScriptPubKey
|
|
310
|
+
*/
|
|
311
|
+
'asm': string;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* @export
|
|
316
|
+
* @interface RawTxScriptSig
|
|
317
|
+
*/
|
|
318
|
+
export interface RawTxScriptSig {
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @type {string}
|
|
322
|
+
* @memberof RawTxScriptSig
|
|
323
|
+
*/
|
|
324
|
+
'hex': string;
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @type {string}
|
|
328
|
+
* @memberof RawTxScriptSig
|
|
329
|
+
*/
|
|
330
|
+
'asm': string;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @export
|
|
335
|
+
* @interface RawTxVin
|
|
336
|
+
*/
|
|
337
|
+
export interface RawTxVin {
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @type {string}
|
|
341
|
+
* @memberof RawTxVin
|
|
342
|
+
*/
|
|
343
|
+
'txinwitness'?: string;
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @type {RawTxScriptSig}
|
|
347
|
+
* @memberof RawTxVin
|
|
348
|
+
*/
|
|
349
|
+
'scriptSig'?: RawTxScriptSig;
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @type {string}
|
|
353
|
+
* @memberof RawTxVin
|
|
354
|
+
*/
|
|
355
|
+
'coinbase'?: string;
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @type {number}
|
|
359
|
+
* @memberof RawTxVin
|
|
360
|
+
*/
|
|
361
|
+
'sequence'?: number;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {number}
|
|
365
|
+
* @memberof RawTxVin
|
|
366
|
+
*/
|
|
367
|
+
'vout'?: number;
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @type {string}
|
|
371
|
+
* @memberof RawTxVin
|
|
372
|
+
*/
|
|
373
|
+
'txid'?: string;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @export
|
|
378
|
+
* @interface RawTxVout
|
|
379
|
+
*/
|
|
380
|
+
export interface RawTxVout {
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @type {RawTxScriptPubKey}
|
|
384
|
+
* @memberof RawTxVout
|
|
385
|
+
*/
|
|
386
|
+
'scriptPubKey'?: RawTxScriptPubKey;
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
* @type {number}
|
|
390
|
+
* @memberof RawTxVout
|
|
391
|
+
*/
|
|
392
|
+
'n'?: number;
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @type {string | number}
|
|
396
|
+
* @memberof RawTxVout
|
|
397
|
+
*/
|
|
398
|
+
'value'?: string | number;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Contains the serialized raw transaction hex
|
|
402
|
+
* @export
|
|
403
|
+
* @interface SendTxBody
|
|
404
|
+
*/
|
|
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 {
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @type {string}
|
|
422
|
+
* @memberof Tx
|
|
423
|
+
*/
|
|
424
|
+
'txid': string;
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @type {string}
|
|
428
|
+
* @memberof Tx
|
|
429
|
+
*/
|
|
430
|
+
'blockHash'?: string;
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @type {number}
|
|
434
|
+
* @memberof Tx
|
|
435
|
+
*/
|
|
436
|
+
'blockHeight': number;
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @type {number}
|
|
440
|
+
* @memberof Tx
|
|
441
|
+
*/
|
|
442
|
+
'timestamp': number;
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @type {Array<Vin>}
|
|
446
|
+
* @memberof Tx
|
|
447
|
+
*/
|
|
448
|
+
'vin': Array<Vin>;
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @type {Array<Vout>}
|
|
452
|
+
* @memberof Tx
|
|
453
|
+
*/
|
|
454
|
+
'vout': Array<Vout>;
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @type {number}
|
|
458
|
+
* @memberof Tx
|
|
459
|
+
*/
|
|
460
|
+
'confirmations': number;
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof Tx
|
|
465
|
+
*/
|
|
466
|
+
'value': string;
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof Tx
|
|
471
|
+
*/
|
|
472
|
+
'fee': string;
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof Tx
|
|
477
|
+
*/
|
|
478
|
+
'hex': string;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Contains info about an unspent transaction output
|
|
482
|
+
* @export
|
|
483
|
+
* @interface Utxo
|
|
484
|
+
*/
|
|
485
|
+
export interface Utxo {
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof Utxo
|
|
490
|
+
*/
|
|
491
|
+
'txid': string;
|
|
492
|
+
/**
|
|
493
|
+
*
|
|
494
|
+
* @type {number}
|
|
495
|
+
* @memberof Utxo
|
|
496
|
+
*/
|
|
497
|
+
'vout': number;
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @type {string}
|
|
501
|
+
* @memberof Utxo
|
|
502
|
+
*/
|
|
503
|
+
'value': string;
|
|
504
|
+
/**
|
|
505
|
+
*
|
|
506
|
+
* @type {number}
|
|
507
|
+
* @memberof Utxo
|
|
508
|
+
*/
|
|
509
|
+
'height'?: number;
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @type {number}
|
|
513
|
+
* @memberof Utxo
|
|
514
|
+
*/
|
|
515
|
+
'confirmations': number;
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @type {string}
|
|
519
|
+
* @memberof Utxo
|
|
520
|
+
*/
|
|
521
|
+
'address'?: string;
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @type {string}
|
|
525
|
+
* @memberof Utxo
|
|
526
|
+
*/
|
|
527
|
+
'path'?: string;
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @type {number}
|
|
531
|
+
* @memberof Utxo
|
|
532
|
+
*/
|
|
533
|
+
'locktime'?: number;
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @type {boolean}
|
|
537
|
+
* @memberof Utxo
|
|
538
|
+
*/
|
|
539
|
+
'coinbase'?: boolean;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Contains info about a 422 Validation Error response
|
|
543
|
+
* @export
|
|
544
|
+
* @interface ValidationError
|
|
545
|
+
*/
|
|
546
|
+
export interface ValidationError {
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof ValidationError
|
|
551
|
+
*/
|
|
552
|
+
'message': ValidationErrorMessageEnum;
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @type {{ [key: string]: any; }}
|
|
556
|
+
* @memberof ValidationError
|
|
557
|
+
*/
|
|
558
|
+
'details': {
|
|
559
|
+
[key: string]: any;
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
export declare const ValidationErrorMessageEnum: {
|
|
563
|
+
readonly ValidationFailed: "Validation failed";
|
|
564
|
+
};
|
|
565
|
+
export declare type ValidationErrorMessageEnum = typeof ValidationErrorMessageEnum[keyof typeof ValidationErrorMessageEnum];
|
|
566
|
+
/**
|
|
567
|
+
* Contains info about a transaction input
|
|
568
|
+
* @export
|
|
569
|
+
* @interface Vin
|
|
570
|
+
*/
|
|
571
|
+
export interface Vin {
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @type {string}
|
|
575
|
+
* @memberof Vin
|
|
576
|
+
*/
|
|
577
|
+
'txid'?: string;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {string}
|
|
581
|
+
* @memberof Vin
|
|
582
|
+
*/
|
|
583
|
+
'vout'?: string;
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @type {number}
|
|
587
|
+
* @memberof Vin
|
|
588
|
+
*/
|
|
589
|
+
'sequence'?: number;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type {string}
|
|
593
|
+
* @memberof Vin
|
|
594
|
+
*/
|
|
595
|
+
'coinbase'?: string;
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @type {VinScriptSig}
|
|
599
|
+
* @memberof Vin
|
|
600
|
+
*/
|
|
601
|
+
'scriptSig'?: VinScriptSig;
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @type {Array<string>}
|
|
605
|
+
* @memberof Vin
|
|
606
|
+
*/
|
|
607
|
+
'addresses'?: Array<string>;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof Vin
|
|
612
|
+
*/
|
|
613
|
+
'value'?: string;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* @export
|
|
618
|
+
* @interface VinScriptSig
|
|
619
|
+
*/
|
|
620
|
+
export interface VinScriptSig {
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @type {string}
|
|
624
|
+
* @memberof VinScriptSig
|
|
625
|
+
*/
|
|
626
|
+
'hex'?: string;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Contains info about a transaction output
|
|
630
|
+
* @export
|
|
631
|
+
* @interface Vout
|
|
632
|
+
*/
|
|
633
|
+
export interface Vout {
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @type {string}
|
|
637
|
+
* @memberof Vout
|
|
638
|
+
*/
|
|
639
|
+
'value': string;
|
|
640
|
+
/**
|
|
641
|
+
*
|
|
642
|
+
* @type {number}
|
|
643
|
+
* @memberof Vout
|
|
644
|
+
*/
|
|
645
|
+
'n': number;
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @type {string}
|
|
649
|
+
* @memberof Vout
|
|
650
|
+
*/
|
|
651
|
+
'opReturn'?: string;
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
* @type {VinScriptSig}
|
|
655
|
+
* @memberof Vout
|
|
656
|
+
*/
|
|
657
|
+
'scriptPubKey': VinScriptSig;
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @type {Array<string>}
|
|
661
|
+
* @memberof Vout
|
|
662
|
+
*/
|
|
663
|
+
'addresses'?: Array<string>;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* V1Api - axios parameter creator
|
|
667
|
+
* @export
|
|
668
|
+
*/
|
|
669
|
+
export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
|
|
670
|
+
/**
|
|
671
|
+
* Get account details by address or extended public key
|
|
672
|
+
* @param {string} pubkey account address or extended public key
|
|
673
|
+
* @param {*} [options] Override http request option.
|
|
674
|
+
* @throws {RequiredError}
|
|
675
|
+
*/
|
|
676
|
+
getAccount: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
677
|
+
/**
|
|
678
|
+
* Get information about the running coinstack
|
|
679
|
+
* @param {*} [options] Override http request option.
|
|
680
|
+
* @throws {RequiredError}
|
|
681
|
+
*/
|
|
682
|
+
getInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
683
|
+
/**
|
|
684
|
+
* Get current recommended network fees to use in a transaction
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
*/
|
|
688
|
+
getNetworkFees: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
689
|
+
/**
|
|
690
|
+
* Get raw transaction details directly from the node
|
|
691
|
+
* @param {string} txid transaction hash
|
|
692
|
+
* @param {*} [options] Override http request option.
|
|
693
|
+
* @throws {RequiredError}
|
|
694
|
+
*/
|
|
695
|
+
getRawTransaction: (txid: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
696
|
+
/**
|
|
697
|
+
* Get transaction details
|
|
698
|
+
* @param {string} txid transaction hash
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
*/
|
|
702
|
+
getTransaction: (txid: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
703
|
+
/**
|
|
704
|
+
* Get transaction history by address or extended public key
|
|
705
|
+
* @param {string} pubkey account address or extended public key
|
|
706
|
+
* @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \'page\' property)
|
|
707
|
+
* @param {number} [pageSize] page size (10 by default)
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
712
|
+
/**
|
|
713
|
+
* Get all unspent transaction outputs for an address or extended public key
|
|
714
|
+
* @param {string} pubkey account address or extended public key
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
*/
|
|
718
|
+
getUtxos: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
719
|
+
/**
|
|
720
|
+
* Sends raw transaction to be broadcast to the node.
|
|
721
|
+
* @param {SendTxBody} sendTxBody serialized raw transaction hex
|
|
722
|
+
* @param {*} [options] Override http request option.
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
*/
|
|
725
|
+
sendTx: (sendTxBody: SendTxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* V1Api - functional programming interface
|
|
729
|
+
* @export
|
|
730
|
+
*/
|
|
731
|
+
export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
|
|
732
|
+
/**
|
|
733
|
+
* Get account details by address or extended public key
|
|
734
|
+
* @param {string} pubkey account address or extended public key
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
*/
|
|
738
|
+
getAccount(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Account>>;
|
|
739
|
+
/**
|
|
740
|
+
* Get information about the running coinstack
|
|
741
|
+
* @param {*} [options] Override http request option.
|
|
742
|
+
* @throws {RequiredError}
|
|
743
|
+
*/
|
|
744
|
+
getInfo(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BaseInfo>>;
|
|
745
|
+
/**
|
|
746
|
+
* Get current recommended network fees to use in a transaction
|
|
747
|
+
* @param {*} [options] Override http request option.
|
|
748
|
+
* @throws {RequiredError}
|
|
749
|
+
*/
|
|
750
|
+
getNetworkFees(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<NetworkFees>>;
|
|
751
|
+
/**
|
|
752
|
+
* Get raw transaction details directly from the node
|
|
753
|
+
* @param {string} txid transaction hash
|
|
754
|
+
* @param {*} [options] Override http request option.
|
|
755
|
+
* @throws {RequiredError}
|
|
756
|
+
*/
|
|
757
|
+
getRawTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<RawTx>>;
|
|
758
|
+
/**
|
|
759
|
+
* Get transaction details
|
|
760
|
+
* @param {string} txid transaction hash
|
|
761
|
+
* @param {*} [options] Override http request option.
|
|
762
|
+
* @throws {RequiredError}
|
|
763
|
+
*/
|
|
764
|
+
getTransaction(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Tx>>;
|
|
765
|
+
/**
|
|
766
|
+
* Get transaction history by address or extended public key
|
|
767
|
+
* @param {string} pubkey account address or extended public key
|
|
768
|
+
* @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \'page\' property)
|
|
769
|
+
* @param {number} [pageSize] page size (10 by default)
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
*/
|
|
773
|
+
getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<BaseTxHistoryTx>>;
|
|
774
|
+
/**
|
|
775
|
+
* Get all unspent transaction outputs for an address or extended public key
|
|
776
|
+
* @param {string} pubkey account address or extended public key
|
|
777
|
+
* @param {*} [options] Override http request option.
|
|
778
|
+
* @throws {RequiredError}
|
|
779
|
+
*/
|
|
780
|
+
getUtxos(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Array<Utxo>>>;
|
|
781
|
+
/**
|
|
782
|
+
* Sends raw transaction to be broadcast to the node.
|
|
783
|
+
* @param {SendTxBody} sendTxBody serialized raw transaction hex
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
*/
|
|
787
|
+
sendTx(sendTxBody: SendTxBody, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
|
|
788
|
+
};
|
|
789
|
+
/**
|
|
790
|
+
* V1Api - factory interface
|
|
791
|
+
* @export
|
|
792
|
+
*/
|
|
793
|
+
export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
|
|
794
|
+
/**
|
|
795
|
+
* Get account details by address or extended public key
|
|
796
|
+
* @param {string} pubkey account address or extended public key
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
*/
|
|
800
|
+
getAccount(pubkey: string, options?: any): AxiosPromise<Account>;
|
|
801
|
+
/**
|
|
802
|
+
* Get information about the running coinstack
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
getInfo(options?: any): AxiosPromise<BaseInfo>;
|
|
807
|
+
/**
|
|
808
|
+
* Get current recommended network fees to use in a transaction
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
getNetworkFees(options?: any): AxiosPromise<NetworkFees>;
|
|
813
|
+
/**
|
|
814
|
+
* Get raw transaction details directly from the node
|
|
815
|
+
* @param {string} txid transaction hash
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
*/
|
|
819
|
+
getRawTransaction(txid: string, options?: any): AxiosPromise<RawTx>;
|
|
820
|
+
/**
|
|
821
|
+
* Get transaction details
|
|
822
|
+
* @param {string} txid transaction hash
|
|
823
|
+
* @param {*} [options] Override http request option.
|
|
824
|
+
* @throws {RequiredError}
|
|
825
|
+
*/
|
|
826
|
+
getTransaction(txid: string, options?: any): AxiosPromise<Tx>;
|
|
827
|
+
/**
|
|
828
|
+
* Get transaction history by address or extended public key
|
|
829
|
+
* @param {string} pubkey account address or extended public key
|
|
830
|
+
* @param {string} [cursor] the cursor returned in previous query (base64 encoded json object with a \'page\' property)
|
|
831
|
+
* @param {number} [pageSize] page size (10 by default)
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<BaseTxHistoryTx>;
|
|
836
|
+
/**
|
|
837
|
+
* Get all unspent transaction outputs for an address or extended public key
|
|
838
|
+
* @param {string} pubkey account address or extended public key
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
getUtxos(pubkey: string, options?: any): AxiosPromise<Array<Utxo>>;
|
|
843
|
+
/**
|
|
844
|
+
* Sends raw transaction to be broadcast to the node.
|
|
845
|
+
* @param {SendTxBody} sendTxBody serialized raw transaction hex
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
sendTx(sendTxBody: SendTxBody, options?: any): AxiosPromise<string>;
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* Request parameters for getAccount operation in V1Api.
|
|
853
|
+
* @export
|
|
854
|
+
* @interface V1ApiGetAccountRequest
|
|
855
|
+
*/
|
|
856
|
+
export interface V1ApiGetAccountRequest {
|
|
857
|
+
/**
|
|
858
|
+
* account address or extended public key
|
|
859
|
+
* @type {string}
|
|
860
|
+
* @memberof V1ApiGetAccount
|
|
861
|
+
*/
|
|
862
|
+
readonly pubkey: string;
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Request parameters for getRawTransaction operation in V1Api.
|
|
866
|
+
* @export
|
|
867
|
+
* @interface V1ApiGetRawTransactionRequest
|
|
868
|
+
*/
|
|
869
|
+
export interface V1ApiGetRawTransactionRequest {
|
|
870
|
+
/**
|
|
871
|
+
* transaction hash
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof V1ApiGetRawTransaction
|
|
874
|
+
*/
|
|
875
|
+
readonly txid: string;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Request parameters for getTransaction operation in V1Api.
|
|
879
|
+
* @export
|
|
880
|
+
* @interface V1ApiGetTransactionRequest
|
|
881
|
+
*/
|
|
882
|
+
export interface V1ApiGetTransactionRequest {
|
|
883
|
+
/**
|
|
884
|
+
* transaction hash
|
|
885
|
+
* @type {string}
|
|
886
|
+
* @memberof V1ApiGetTransaction
|
|
887
|
+
*/
|
|
888
|
+
readonly txid: string;
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Request parameters for getTxHistory operation in V1Api.
|
|
892
|
+
* @export
|
|
893
|
+
* @interface V1ApiGetTxHistoryRequest
|
|
894
|
+
*/
|
|
895
|
+
export interface V1ApiGetTxHistoryRequest {
|
|
896
|
+
/**
|
|
897
|
+
* account address or extended public key
|
|
898
|
+
* @type {string}
|
|
899
|
+
* @memberof V1ApiGetTxHistory
|
|
900
|
+
*/
|
|
901
|
+
readonly pubkey: string;
|
|
902
|
+
/**
|
|
903
|
+
* the cursor returned in previous query (base64 encoded json object with a \'page\' property)
|
|
904
|
+
* @type {string}
|
|
905
|
+
* @memberof V1ApiGetTxHistory
|
|
906
|
+
*/
|
|
907
|
+
readonly cursor?: string;
|
|
908
|
+
/**
|
|
909
|
+
* page size (10 by default)
|
|
910
|
+
* @type {number}
|
|
911
|
+
* @memberof V1ApiGetTxHistory
|
|
912
|
+
*/
|
|
913
|
+
readonly pageSize?: number;
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Request parameters for getUtxos operation in V1Api.
|
|
917
|
+
* @export
|
|
918
|
+
* @interface V1ApiGetUtxosRequest
|
|
919
|
+
*/
|
|
920
|
+
export interface V1ApiGetUtxosRequest {
|
|
921
|
+
/**
|
|
922
|
+
* account address or extended public key
|
|
923
|
+
* @type {string}
|
|
924
|
+
* @memberof V1ApiGetUtxos
|
|
925
|
+
*/
|
|
926
|
+
readonly pubkey: string;
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Request parameters for sendTx operation in V1Api.
|
|
930
|
+
* @export
|
|
931
|
+
* @interface V1ApiSendTxRequest
|
|
932
|
+
*/
|
|
933
|
+
export interface V1ApiSendTxRequest {
|
|
934
|
+
/**
|
|
935
|
+
* serialized raw transaction hex
|
|
936
|
+
* @type {SendTxBody}
|
|
937
|
+
* @memberof V1ApiSendTx
|
|
938
|
+
*/
|
|
939
|
+
readonly sendTxBody: SendTxBody;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* V1Api - object-oriented interface
|
|
943
|
+
* @export
|
|
944
|
+
* @class V1Api
|
|
945
|
+
* @extends {BaseAPI}
|
|
946
|
+
*/
|
|
947
|
+
export declare class V1Api extends BaseAPI {
|
|
948
|
+
/**
|
|
949
|
+
* Get account details by address or extended public key
|
|
950
|
+
* @param {V1ApiGetAccountRequest} requestParameters Request parameters.
|
|
951
|
+
* @param {*} [options] Override http request option.
|
|
952
|
+
* @throws {RequiredError}
|
|
953
|
+
* @memberof V1Api
|
|
954
|
+
*/
|
|
955
|
+
getAccount(requestParameters: V1ApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
|
|
956
|
+
/**
|
|
957
|
+
* Get information about the running coinstack
|
|
958
|
+
* @param {*} [options] Override http request option.
|
|
959
|
+
* @throws {RequiredError}
|
|
960
|
+
* @memberof V1Api
|
|
961
|
+
*/
|
|
962
|
+
getInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseInfo, any>>;
|
|
963
|
+
/**
|
|
964
|
+
* Get current recommended network fees to use in a transaction
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
* @memberof V1Api
|
|
968
|
+
*/
|
|
969
|
+
getNetworkFees(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<NetworkFees, any>>;
|
|
970
|
+
/**
|
|
971
|
+
* Get raw transaction details directly from the node
|
|
972
|
+
* @param {V1ApiGetRawTransactionRequest} requestParameters Request parameters.
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @throws {RequiredError}
|
|
975
|
+
* @memberof V1Api
|
|
976
|
+
*/
|
|
977
|
+
getRawTransaction(requestParameters: V1ApiGetRawTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RawTx, any>>;
|
|
978
|
+
/**
|
|
979
|
+
* Get transaction details
|
|
980
|
+
* @param {V1ApiGetTransactionRequest} requestParameters Request parameters.
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
* @memberof V1Api
|
|
984
|
+
*/
|
|
985
|
+
getTransaction(requestParameters: V1ApiGetTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tx, any>>;
|
|
986
|
+
/**
|
|
987
|
+
* Get transaction history by address or extended public key
|
|
988
|
+
* @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
|
|
989
|
+
* @param {*} [options] Override http request option.
|
|
990
|
+
* @throws {RequiredError}
|
|
991
|
+
* @memberof V1Api
|
|
992
|
+
*/
|
|
993
|
+
getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseTxHistoryTx, any>>;
|
|
994
|
+
/**
|
|
995
|
+
* Get all unspent transaction outputs for an address or extended public key
|
|
996
|
+
* @param {V1ApiGetUtxosRequest} requestParameters Request parameters.
|
|
997
|
+
* @param {*} [options] Override http request option.
|
|
998
|
+
* @throws {RequiredError}
|
|
999
|
+
* @memberof V1Api
|
|
1000
|
+
*/
|
|
1001
|
+
getUtxos(requestParameters: V1ApiGetUtxosRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Utxo[], any>>;
|
|
1002
|
+
/**
|
|
1003
|
+
* Sends raw transaction to be broadcast to the node.
|
|
1004
|
+
* @param {V1ApiSendTxRequest} requestParameters Request parameters.
|
|
1005
|
+
* @param {*} [options] Override http request option.
|
|
1006
|
+
* @throws {RequiredError}
|
|
1007
|
+
* @memberof V1Api
|
|
1008
|
+
*/
|
|
1009
|
+
sendTx(requestParameters: V1ApiSendTxRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
1010
|
+
}
|