@shapeshiftoss/unchained-client 9.1.1 → 9.3.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/bitcoin/parser/index.d.ts +1 -0
- package/dist/bitcoin/parser/index.js +2 -1
- package/dist/dogecoin/index.d.ts +3 -0
- package/dist/dogecoin/index.js +19 -0
- package/dist/evm/avalanche/parser/index.d.ts +2 -2
- package/dist/evm/ethereum/parser/foxy.d.ts +3 -3
- package/dist/evm/ethereum/parser/index.d.ts +2 -2
- package/dist/evm/ethereum/parser/thor.d.ts +3 -3
- package/dist/evm/ethereum/parser/uniV2.d.ts +5 -5
- package/dist/evm/ethereum/parser/weth.d.ts +3 -3
- package/dist/evm/ethereum/parser/yearn.d.ts +3 -3
- package/dist/evm/ethereum/parser/zrx.d.ts +3 -3
- package/dist/evm/index.d.ts +2 -0
- package/dist/evm/index.js +3 -1
- package/dist/evm/parser/types.d.ts +2 -3
- package/dist/generated/avalanche/api.d.ts +121 -152
- package/dist/generated/avalanche/api.js +5 -5
- 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 +45 -76
- package/dist/generated/bitcoin/api.js +1 -1
- 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 +1010 -0
- package/dist/generated/dogecoin/api.js +521 -0
- package/dist/generated/dogecoin/base.d.ts +55 -0
- package/dist/generated/dogecoin/base.js +64 -0
- package/dist/generated/dogecoin/common.d.ts +65 -0
- package/dist/generated/dogecoin/common.js +137 -0
- package/dist/generated/dogecoin/configuration.d.ts +83 -0
- package/dist/generated/dogecoin/configuration.js +42 -0
- package/dist/generated/dogecoin/index.d.ts +13 -0
- package/dist/generated/dogecoin/index.js +31 -0
- package/dist/generated/ethereum/api.d.ts +117 -148
- 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/index.d.ts +4 -1
- package/dist/index.js +5 -2
- package/dist/websocket.d.ts +11 -3
- package/dist/websocket.js +124 -97
- package/package.json +2 -2
|
@@ -0,0 +1,1010 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @shapeshiftoss/dogecoin-api
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 7.2.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
|
+
* Information about BTC network fee at a specific confirmation speed
|
|
17
|
+
* @export
|
|
18
|
+
* @interface BTCNetworkFee
|
|
19
|
+
*/
|
|
20
|
+
export interface BTCNetworkFee {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof BTCNetworkFee
|
|
25
|
+
*/
|
|
26
|
+
'satsPerKiloByte': number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof BTCNetworkFee
|
|
31
|
+
*/
|
|
32
|
+
'blocksUntilConfirmation': number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
|
|
36
|
+
* @export
|
|
37
|
+
* @interface BTCNetworkFees
|
|
38
|
+
*/
|
|
39
|
+
export interface BTCNetworkFees {
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {BTCNetworkFee}
|
|
43
|
+
* @memberof BTCNetworkFees
|
|
44
|
+
*/
|
|
45
|
+
'fast'?: BTCNetworkFee;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {BTCNetworkFee}
|
|
49
|
+
* @memberof BTCNetworkFees
|
|
50
|
+
*/
|
|
51
|
+
'average'?: BTCNetworkFee;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {BTCNetworkFee}
|
|
55
|
+
* @memberof BTCNetworkFees
|
|
56
|
+
*/
|
|
57
|
+
'slow'?: BTCNetworkFee;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Contains info about a 400 Bad Request response
|
|
61
|
+
* @export
|
|
62
|
+
* @interface BadRequestError
|
|
63
|
+
*/
|
|
64
|
+
export interface BadRequestError {
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof BadRequestError
|
|
69
|
+
*/
|
|
70
|
+
'error': string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Contains base info about the running coinstack
|
|
74
|
+
* @export
|
|
75
|
+
* @interface BaseInfo
|
|
76
|
+
*/
|
|
77
|
+
export interface BaseInfo {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof BaseInfo
|
|
82
|
+
*/
|
|
83
|
+
'network': string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Contains paginated base transaction history details
|
|
87
|
+
* @export
|
|
88
|
+
* @interface BaseTxHistoryBitcoinTx
|
|
89
|
+
*/
|
|
90
|
+
export interface BaseTxHistoryBitcoinTx {
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof BaseTxHistoryBitcoinTx
|
|
95
|
+
*/
|
|
96
|
+
'cursor'?: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof BaseTxHistoryBitcoinTx
|
|
101
|
+
*/
|
|
102
|
+
'pubkey': string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<BitcoinTx>}
|
|
106
|
+
* @memberof BaseTxHistoryBitcoinTx
|
|
107
|
+
*/
|
|
108
|
+
'txs': Array<BitcoinTx>;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Contains additional Bitcoin specific account info
|
|
112
|
+
* @export
|
|
113
|
+
* @interface BitcoinAccount
|
|
114
|
+
*/
|
|
115
|
+
export interface BitcoinAccount {
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof BitcoinAccount
|
|
120
|
+
*/
|
|
121
|
+
'balance': string;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof BitcoinAccount
|
|
126
|
+
*/
|
|
127
|
+
'unconfirmedBalance': string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
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
|
+
* @type {number}
|
|
143
|
+
* @memberof BitcoinAccount
|
|
144
|
+
*/
|
|
145
|
+
'nextReceiveAddressIndex'?: number;
|
|
146
|
+
/**
|
|
147
|
+
* The next unused change address index for an xpub (change index 1)
|
|
148
|
+
* @type {number}
|
|
149
|
+
* @memberof BitcoinAccount
|
|
150
|
+
*/
|
|
151
|
+
'nextChangeAddressIndex'?: number;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @export
|
|
156
|
+
* @interface BitcoinAddress
|
|
157
|
+
*/
|
|
158
|
+
export interface BitcoinAddress {
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof BitcoinAddress
|
|
163
|
+
*/
|
|
164
|
+
'balance': string;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @memberof BitcoinAddress
|
|
169
|
+
*/
|
|
170
|
+
'pubkey': string;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Contains Bitcoin specific transaction info as returned from the node
|
|
174
|
+
* @export
|
|
175
|
+
* @interface BitcoinRawTx
|
|
176
|
+
*/
|
|
177
|
+
export interface BitcoinRawTx {
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof BitcoinRawTx
|
|
182
|
+
*/
|
|
183
|
+
'txid': string;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof BitcoinRawTx
|
|
188
|
+
*/
|
|
189
|
+
'hash': string;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {number}
|
|
193
|
+
* @memberof BitcoinRawTx
|
|
194
|
+
*/
|
|
195
|
+
'version': number;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {number}
|
|
199
|
+
* @memberof BitcoinRawTx
|
|
200
|
+
*/
|
|
201
|
+
'size': number;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {number}
|
|
205
|
+
* @memberof BitcoinRawTx
|
|
206
|
+
*/
|
|
207
|
+
'vsize': number;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {number}
|
|
211
|
+
* @memberof BitcoinRawTx
|
|
212
|
+
*/
|
|
213
|
+
'weight': number;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {number}
|
|
217
|
+
* @memberof BitcoinRawTx
|
|
218
|
+
*/
|
|
219
|
+
'locktime': number;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {Array<BitcoinRawTxVin>}
|
|
223
|
+
* @memberof BitcoinRawTx
|
|
224
|
+
*/
|
|
225
|
+
'vin': Array<BitcoinRawTxVin>;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {Array<BitcoinRawTxVout>}
|
|
229
|
+
* @memberof BitcoinRawTx
|
|
230
|
+
*/
|
|
231
|
+
'vout': Array<BitcoinRawTxVout>;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof BitcoinRawTx
|
|
236
|
+
*/
|
|
237
|
+
'hex': string;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof BitcoinRawTx
|
|
242
|
+
*/
|
|
243
|
+
'blockhash': string;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @type {number}
|
|
247
|
+
* @memberof BitcoinRawTx
|
|
248
|
+
*/
|
|
249
|
+
'confirmations': number;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @type {number}
|
|
253
|
+
* @memberof BitcoinRawTx
|
|
254
|
+
*/
|
|
255
|
+
'time': number;
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @type {number}
|
|
259
|
+
* @memberof BitcoinRawTx
|
|
260
|
+
*/
|
|
261
|
+
'blocktime': number;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @export
|
|
266
|
+
* @interface BitcoinRawTxScriptPubKey
|
|
267
|
+
*/
|
|
268
|
+
export interface BitcoinRawTxScriptPubKey {
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {Array<string>}
|
|
272
|
+
* @memberof BitcoinRawTxScriptPubKey
|
|
273
|
+
*/
|
|
274
|
+
'addresses': Array<string>;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof BitcoinRawTxScriptPubKey
|
|
279
|
+
*/
|
|
280
|
+
'type': string;
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @type {number}
|
|
284
|
+
* @memberof BitcoinRawTxScriptPubKey
|
|
285
|
+
*/
|
|
286
|
+
'reqSigs': number;
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @type {string}
|
|
290
|
+
* @memberof BitcoinRawTxScriptPubKey
|
|
291
|
+
*/
|
|
292
|
+
'hex': string;
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @type {string}
|
|
296
|
+
* @memberof BitcoinRawTxScriptPubKey
|
|
297
|
+
*/
|
|
298
|
+
'asm': string;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @export
|
|
303
|
+
* @interface BitcoinRawTxScriptSig
|
|
304
|
+
*/
|
|
305
|
+
export interface BitcoinRawTxScriptSig {
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof BitcoinRawTxScriptSig
|
|
310
|
+
*/
|
|
311
|
+
'hex': string;
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof BitcoinRawTxScriptSig
|
|
316
|
+
*/
|
|
317
|
+
'asm': string;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @export
|
|
322
|
+
* @interface BitcoinRawTxVin
|
|
323
|
+
*/
|
|
324
|
+
export interface BitcoinRawTxVin {
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @type {string}
|
|
328
|
+
* @memberof BitcoinRawTxVin
|
|
329
|
+
*/
|
|
330
|
+
'txinwitness'?: string;
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @type {BitcoinRawTxScriptSig}
|
|
334
|
+
* @memberof BitcoinRawTxVin
|
|
335
|
+
*/
|
|
336
|
+
'scriptSig'?: BitcoinRawTxScriptSig;
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @type {string}
|
|
340
|
+
* @memberof BitcoinRawTxVin
|
|
341
|
+
*/
|
|
342
|
+
'coinbase'?: string;
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @type {number}
|
|
346
|
+
* @memberof BitcoinRawTxVin
|
|
347
|
+
*/
|
|
348
|
+
'sequence'?: number;
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* @type {number}
|
|
352
|
+
* @memberof BitcoinRawTxVin
|
|
353
|
+
*/
|
|
354
|
+
'vout'?: number;
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @type {string}
|
|
358
|
+
* @memberof BitcoinRawTxVin
|
|
359
|
+
*/
|
|
360
|
+
'txid'?: string;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @export
|
|
365
|
+
* @interface BitcoinRawTxVout
|
|
366
|
+
*/
|
|
367
|
+
export interface BitcoinRawTxVout {
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @type {BitcoinRawTxScriptPubKey}
|
|
371
|
+
* @memberof BitcoinRawTxVout
|
|
372
|
+
*/
|
|
373
|
+
'scriptPubKey'?: BitcoinRawTxScriptPubKey;
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* @type {number}
|
|
377
|
+
* @memberof BitcoinRawTxVout
|
|
378
|
+
*/
|
|
379
|
+
'n'?: number;
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @type {string | number}
|
|
383
|
+
* @memberof BitcoinRawTxVout
|
|
384
|
+
*/
|
|
385
|
+
'value'?: string | number;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Contains info about a Bitcoin transaction
|
|
389
|
+
* @export
|
|
390
|
+
* @interface BitcoinTx
|
|
391
|
+
*/
|
|
392
|
+
export interface BitcoinTx {
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @type {string}
|
|
396
|
+
* @memberof BitcoinTx
|
|
397
|
+
*/
|
|
398
|
+
'txid': string;
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @type {string}
|
|
402
|
+
* @memberof BitcoinTx
|
|
403
|
+
*/
|
|
404
|
+
'blockHash'?: string;
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
* @type {number}
|
|
408
|
+
* @memberof BitcoinTx
|
|
409
|
+
*/
|
|
410
|
+
'blockHeight': number;
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @type {number}
|
|
414
|
+
* @memberof BitcoinTx
|
|
415
|
+
*/
|
|
416
|
+
'timestamp': number;
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @type {Array<Vin>}
|
|
420
|
+
* @memberof BitcoinTx
|
|
421
|
+
*/
|
|
422
|
+
'vin': Array<Vin>;
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @type {Array<Vout>}
|
|
426
|
+
* @memberof BitcoinTx
|
|
427
|
+
*/
|
|
428
|
+
'vout': Array<Vout>;
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @type {number}
|
|
432
|
+
* @memberof BitcoinTx
|
|
433
|
+
*/
|
|
434
|
+
'confirmations': number;
|
|
435
|
+
/**
|
|
436
|
+
*
|
|
437
|
+
* @type {string}
|
|
438
|
+
* @memberof BitcoinTx
|
|
439
|
+
*/
|
|
440
|
+
'value': string;
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* @type {string}
|
|
444
|
+
* @memberof BitcoinTx
|
|
445
|
+
*/
|
|
446
|
+
'fee': string;
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @type {string}
|
|
450
|
+
* @memberof BitcoinTx
|
|
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
|
|
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 Bitcoin 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 Bitcoin 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 xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
|
|
672
|
+
* @param {string} pubkey account address or xpub
|
|
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
|
+
* Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
|
|
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 xpub
|
|
705
|
+
* @param {string} pubkey account address or xpub
|
|
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 xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
|
|
714
|
+
* @param {string} pubkey account address or xpub
|
|
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 xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
|
|
734
|
+
* @param {string} pubkey account address or xpub
|
|
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<BitcoinAccount>>;
|
|
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
|
+
* Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
|
|
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<BTCNetworkFees>>;
|
|
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<BitcoinRawTx>>;
|
|
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<BitcoinTx>>;
|
|
765
|
+
/**
|
|
766
|
+
* Get transaction history by address or xpub
|
|
767
|
+
* @param {string} pubkey account address or xpub
|
|
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<BaseTxHistoryBitcoinTx>>;
|
|
774
|
+
/**
|
|
775
|
+
* Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
|
|
776
|
+
* @param {string} pubkey account address or xpub
|
|
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 xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
|
|
796
|
+
* @param {string} pubkey account address or xpub
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
*/
|
|
800
|
+
getAccount(pubkey: string, options?: any): AxiosPromise<BitcoinAccount>;
|
|
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
|
+
* Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
getNetworkFees(options?: any): AxiosPromise<BTCNetworkFees>;
|
|
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<BitcoinRawTx>;
|
|
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<BitcoinTx>;
|
|
827
|
+
/**
|
|
828
|
+
* Get transaction history by address or xpub
|
|
829
|
+
* @param {string} pubkey account address or xpub
|
|
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<BaseTxHistoryBitcoinTx>;
|
|
836
|
+
/**
|
|
837
|
+
* Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
|
|
838
|
+
* @param {string} pubkey account address or xpub
|
|
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 xpub
|
|
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 xpub
|
|
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 xpub
|
|
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 xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
|
|
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<BitcoinAccount, 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
|
+
* Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
* @memberof V1Api
|
|
968
|
+
*/
|
|
969
|
+
getNetworkFees(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BTCNetworkFees, 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<BitcoinRawTx, 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<BitcoinTx, any>>;
|
|
986
|
+
/**
|
|
987
|
+
* Get transaction history by address or xpub
|
|
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<BaseTxHistoryBitcoinTx, any>>;
|
|
994
|
+
/**
|
|
995
|
+
* Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
|
|
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
|
+
}
|