@alephium/web3 0.0.3
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/.gitattributes +1 -0
- package/LICENSE +165 -0
- package/README.md +136 -0
- package/contracts/add.ral +12 -0
- package/contracts/greeter-main.ral +8 -0
- package/contracts/greeter.ral +5 -0
- package/contracts/main.ral +8 -0
- package/contracts/sub.ral +9 -0
- package/dev/user.conf +24 -0
- package/dist/alephium-web3.min.js +3 -0
- package/dist/alephium-web3.min.js.LICENSE.txt +27 -0
- package/dist/alephium-web3.min.js.map +1 -0
- package/dist/api/api-alephium.d.ts +1292 -0
- package/dist/api/api-alephium.js +761 -0
- package/dist/api/api-explorer.d.ts +350 -0
- package/dist/api/api-explorer.js +297 -0
- package/dist/cli/create-project.d.ts +2 -0
- package/dist/cli/create-project.js +87 -0
- package/dist/lib/address.d.ts +1 -0
- package/dist/lib/address.js +42 -0
- package/dist/lib/bs58.d.ts +4 -0
- package/dist/lib/bs58.js +26 -0
- package/dist/lib/clique.d.ts +23 -0
- package/dist/lib/clique.js +149 -0
- package/dist/lib/constants.d.ts +2 -0
- package/dist/lib/constants.js +22 -0
- package/dist/lib/contract.d.ts +152 -0
- package/dist/lib/contract.js +711 -0
- package/dist/lib/djb2.d.ts +1 -0
- package/dist/lib/djb2.js +27 -0
- package/dist/lib/explorer.d.ts +8 -0
- package/dist/lib/explorer.js +46 -0
- package/dist/lib/index.d.ts +12 -0
- package/dist/lib/index.js +60 -0
- package/dist/lib/node.d.ts +10 -0
- package/dist/lib/node.js +64 -0
- package/dist/lib/numbers.d.ts +7 -0
- package/dist/lib/numbers.js +128 -0
- package/dist/lib/password-crypto.d.ts +2 -0
- package/dist/lib/password-crypto.js +68 -0
- package/dist/lib/signer.d.ts +17 -0
- package/dist/lib/signer.js +70 -0
- package/dist/lib/storage-browser.d.ts +9 -0
- package/dist/lib/storage-browser.js +52 -0
- package/dist/lib/storage-node.d.ts +9 -0
- package/dist/lib/storage-node.js +65 -0
- package/dist/lib/utils.d.ts +11 -0
- package/dist/lib/utils.js +135 -0
- package/dist/lib/wallet.d.ts +30 -0
- package/dist/lib/wallet.js +142 -0
- package/gitignore +9 -0
- package/package.json +113 -0
- package/scripts/check-versions.js +45 -0
- package/scripts/rename-gitignore.js +24 -0
- package/scripts/start-devnet.js +141 -0
- package/scripts/stop-devnet.js +32 -0
- package/templates/README.md +34 -0
- package/templates/package.json +29 -0
- package/webpack.config.js +57 -0
|
@@ -0,0 +1,1292 @@
|
|
|
1
|
+
export interface AddressBalance {
|
|
2
|
+
address: string;
|
|
3
|
+
/** @format uint256 */
|
|
4
|
+
balance: string;
|
|
5
|
+
/** @format x.x ALPH */
|
|
6
|
+
balanceHint: string;
|
|
7
|
+
/** @format uint256 */
|
|
8
|
+
lockedBalance: string;
|
|
9
|
+
/** @format x.x ALPH */
|
|
10
|
+
lockedBalanceHint: string;
|
|
11
|
+
warning?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AddressInfo {
|
|
14
|
+
address: string;
|
|
15
|
+
publicKey: string;
|
|
16
|
+
group: number;
|
|
17
|
+
path: string;
|
|
18
|
+
}
|
|
19
|
+
export interface Addresses {
|
|
20
|
+
activeAddress: string;
|
|
21
|
+
addresses: AddressInfo[];
|
|
22
|
+
}
|
|
23
|
+
export interface AssetInput {
|
|
24
|
+
outputRef: OutputRef;
|
|
25
|
+
unlockScript: string;
|
|
26
|
+
}
|
|
27
|
+
export interface AssetOutput {
|
|
28
|
+
hint: number;
|
|
29
|
+
key: string;
|
|
30
|
+
/** @format uint256 */
|
|
31
|
+
alphAmount: string;
|
|
32
|
+
address: string;
|
|
33
|
+
tokens: Token[];
|
|
34
|
+
/** @format int64 */
|
|
35
|
+
lockTime: number;
|
|
36
|
+
additionalData: string;
|
|
37
|
+
type: string;
|
|
38
|
+
}
|
|
39
|
+
export interface AssetState {
|
|
40
|
+
/** @format uint256 */
|
|
41
|
+
alphAmount: string;
|
|
42
|
+
tokens: Token[];
|
|
43
|
+
}
|
|
44
|
+
export interface BadRequest {
|
|
45
|
+
detail: string;
|
|
46
|
+
}
|
|
47
|
+
export interface Balance {
|
|
48
|
+
/** @format uint256 */
|
|
49
|
+
balance: string;
|
|
50
|
+
/** @format x.x ALPH */
|
|
51
|
+
balanceHint: string;
|
|
52
|
+
/** @format uint256 */
|
|
53
|
+
lockedBalance: string;
|
|
54
|
+
/** @format x.x ALPH */
|
|
55
|
+
lockedBalanceHint: string;
|
|
56
|
+
utxoNum: number;
|
|
57
|
+
warning?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface Balances {
|
|
60
|
+
/** @format uint256 */
|
|
61
|
+
totalBalance: string;
|
|
62
|
+
/** @format x.x ALPH */
|
|
63
|
+
totalBalanceHint: string;
|
|
64
|
+
balances: AddressBalance[];
|
|
65
|
+
}
|
|
66
|
+
export interface Ban {
|
|
67
|
+
peers: string[];
|
|
68
|
+
type: string;
|
|
69
|
+
}
|
|
70
|
+
export interface Banned {
|
|
71
|
+
/** @format int64 */
|
|
72
|
+
until: number;
|
|
73
|
+
type: string;
|
|
74
|
+
}
|
|
75
|
+
export interface BlockEntry {
|
|
76
|
+
hash: string;
|
|
77
|
+
/** @format int64 */
|
|
78
|
+
timestamp: number;
|
|
79
|
+
chainFrom: number;
|
|
80
|
+
chainTo: number;
|
|
81
|
+
height: number;
|
|
82
|
+
deps: string[];
|
|
83
|
+
transactions: Transaction[];
|
|
84
|
+
nonce: string;
|
|
85
|
+
version: number;
|
|
86
|
+
depStateHash: string;
|
|
87
|
+
txsHash: string;
|
|
88
|
+
target: string;
|
|
89
|
+
}
|
|
90
|
+
export interface BlockHeaderEntry {
|
|
91
|
+
hash: string;
|
|
92
|
+
/** @format int64 */
|
|
93
|
+
timestamp: number;
|
|
94
|
+
chainFrom: number;
|
|
95
|
+
chainTo: number;
|
|
96
|
+
height: number;
|
|
97
|
+
deps: string[];
|
|
98
|
+
}
|
|
99
|
+
export interface BrokerInfo {
|
|
100
|
+
cliqueId: string;
|
|
101
|
+
brokerId: number;
|
|
102
|
+
brokerNum: number;
|
|
103
|
+
address: string;
|
|
104
|
+
}
|
|
105
|
+
export interface BuildContractDeployScriptTx {
|
|
106
|
+
fromPublicKey: string;
|
|
107
|
+
bytecode: string;
|
|
108
|
+
initialFields: Val[];
|
|
109
|
+
/** @format uint256 */
|
|
110
|
+
alphAmount?: string;
|
|
111
|
+
/** @format uint256 */
|
|
112
|
+
issueTokenAmount?: string;
|
|
113
|
+
gas?: number;
|
|
114
|
+
/** @format uint256 */
|
|
115
|
+
gasPrice?: string;
|
|
116
|
+
utxosLimit?: number;
|
|
117
|
+
}
|
|
118
|
+
export interface BuildContractDeployScriptTxResult {
|
|
119
|
+
group: number;
|
|
120
|
+
unsignedTx: string;
|
|
121
|
+
txId: string;
|
|
122
|
+
contractAddress: string;
|
|
123
|
+
}
|
|
124
|
+
export interface BuildInfo {
|
|
125
|
+
releaseVersion: string;
|
|
126
|
+
commit: string;
|
|
127
|
+
}
|
|
128
|
+
export interface BuildMultisig {
|
|
129
|
+
fromAddress: string;
|
|
130
|
+
fromPublicKeys: string[];
|
|
131
|
+
destinations: Destination[];
|
|
132
|
+
gas?: number;
|
|
133
|
+
/** @format uint256 */
|
|
134
|
+
gasPrice?: string;
|
|
135
|
+
utxosLimit?: number;
|
|
136
|
+
}
|
|
137
|
+
export interface BuildMultisigAddress {
|
|
138
|
+
keys: string[];
|
|
139
|
+
mrequired: number;
|
|
140
|
+
}
|
|
141
|
+
export interface BuildMultisigAddressResult {
|
|
142
|
+
address: string;
|
|
143
|
+
}
|
|
144
|
+
export interface BuildScriptTx {
|
|
145
|
+
fromPublicKey: string;
|
|
146
|
+
bytecode: string;
|
|
147
|
+
/** @format uint256 */
|
|
148
|
+
alphAmount?: string;
|
|
149
|
+
tokens?: Token[];
|
|
150
|
+
gas?: number;
|
|
151
|
+
/** @format uint256 */
|
|
152
|
+
gasPrice?: string;
|
|
153
|
+
utxosLimit?: number;
|
|
154
|
+
}
|
|
155
|
+
export interface BuildScriptTxResult {
|
|
156
|
+
unsignedTx: string;
|
|
157
|
+
txId: string;
|
|
158
|
+
group: number;
|
|
159
|
+
}
|
|
160
|
+
export interface BuildSweepAddressTransactions {
|
|
161
|
+
fromPublicKey: string;
|
|
162
|
+
toAddress: string;
|
|
163
|
+
/** @format int64 */
|
|
164
|
+
lockTime?: number;
|
|
165
|
+
gas?: number;
|
|
166
|
+
/** @format uint256 */
|
|
167
|
+
gasPrice?: string;
|
|
168
|
+
utxosLimit?: number;
|
|
169
|
+
}
|
|
170
|
+
export interface BuildSweepAddressTransactionsResult {
|
|
171
|
+
unsignedTxs: SweepAddressTransaction[];
|
|
172
|
+
fromGroup: number;
|
|
173
|
+
toGroup: number;
|
|
174
|
+
}
|
|
175
|
+
export interface BuildTransaction {
|
|
176
|
+
fromPublicKey: string;
|
|
177
|
+
destinations: Destination[];
|
|
178
|
+
utxos?: OutputRef[];
|
|
179
|
+
gas?: number;
|
|
180
|
+
/** @format uint256 */
|
|
181
|
+
gasPrice?: string;
|
|
182
|
+
utxosLimit?: number;
|
|
183
|
+
}
|
|
184
|
+
export interface BuildTransactionResult {
|
|
185
|
+
unsignedTx: string;
|
|
186
|
+
gasAmount: number;
|
|
187
|
+
/** @format uint256 */
|
|
188
|
+
gasPrice: string;
|
|
189
|
+
txId: string;
|
|
190
|
+
fromGroup: number;
|
|
191
|
+
toGroup: number;
|
|
192
|
+
}
|
|
193
|
+
export interface ChainInfo {
|
|
194
|
+
currentHeight: number;
|
|
195
|
+
}
|
|
196
|
+
export interface ChainParams {
|
|
197
|
+
networkId: number;
|
|
198
|
+
numZerosAtLeastInHash: number;
|
|
199
|
+
groupNumPerBroker: number;
|
|
200
|
+
groups: number;
|
|
201
|
+
}
|
|
202
|
+
export interface ChangeActiveAddress {
|
|
203
|
+
address: string;
|
|
204
|
+
}
|
|
205
|
+
export interface CompileResult {
|
|
206
|
+
bytecode: string;
|
|
207
|
+
codeHash: string;
|
|
208
|
+
fields: FieldsSig;
|
|
209
|
+
functions: FunctionSig[];
|
|
210
|
+
events: EventSig[];
|
|
211
|
+
}
|
|
212
|
+
export interface Confirmed {
|
|
213
|
+
blockHash: string;
|
|
214
|
+
txIndex: number;
|
|
215
|
+
chainConfirmations: number;
|
|
216
|
+
fromGroupConfirmations: number;
|
|
217
|
+
toGroupConfirmations: number;
|
|
218
|
+
type: string;
|
|
219
|
+
}
|
|
220
|
+
export interface Contract {
|
|
221
|
+
code: string;
|
|
222
|
+
}
|
|
223
|
+
export interface ContractEvent {
|
|
224
|
+
blockHash: string;
|
|
225
|
+
contractAddress: string;
|
|
226
|
+
txId: string;
|
|
227
|
+
eventIndex: number;
|
|
228
|
+
fields: Val[];
|
|
229
|
+
type: string;
|
|
230
|
+
}
|
|
231
|
+
export interface ContractOutput {
|
|
232
|
+
hint: number;
|
|
233
|
+
key: string;
|
|
234
|
+
/** @format uint256 */
|
|
235
|
+
alphAmount: string;
|
|
236
|
+
address: string;
|
|
237
|
+
tokens: Token[];
|
|
238
|
+
type: string;
|
|
239
|
+
}
|
|
240
|
+
export interface ContractState {
|
|
241
|
+
address: string;
|
|
242
|
+
bytecode: string;
|
|
243
|
+
codeHash: string;
|
|
244
|
+
fields: Val[];
|
|
245
|
+
asset: AssetState;
|
|
246
|
+
}
|
|
247
|
+
export interface DecodeTransaction {
|
|
248
|
+
unsignedTx: string;
|
|
249
|
+
}
|
|
250
|
+
export interface Destination {
|
|
251
|
+
address: string;
|
|
252
|
+
/** @format uint256 */
|
|
253
|
+
alphAmount: string;
|
|
254
|
+
tokens?: Token[];
|
|
255
|
+
/** @format int64 */
|
|
256
|
+
lockTime?: number;
|
|
257
|
+
}
|
|
258
|
+
export declare type DiscoveryAction = Reachable | Unreachable;
|
|
259
|
+
export declare type Event = ContractEvent | TxScriptEvent;
|
|
260
|
+
export interface EventSig {
|
|
261
|
+
name: string;
|
|
262
|
+
signature: string;
|
|
263
|
+
fieldTypes: string[];
|
|
264
|
+
}
|
|
265
|
+
export interface Events {
|
|
266
|
+
chainFrom: number;
|
|
267
|
+
chainTo: number;
|
|
268
|
+
events: Event[];
|
|
269
|
+
}
|
|
270
|
+
export interface FetchResponse {
|
|
271
|
+
blocks: BlockEntry[][];
|
|
272
|
+
}
|
|
273
|
+
export interface FieldsSig {
|
|
274
|
+
signature: string;
|
|
275
|
+
types: string[];
|
|
276
|
+
}
|
|
277
|
+
export interface FixedAssetOutput {
|
|
278
|
+
hint: number;
|
|
279
|
+
key: string;
|
|
280
|
+
/** @format uint256 */
|
|
281
|
+
alphAmount: string;
|
|
282
|
+
address: string;
|
|
283
|
+
tokens: Token[];
|
|
284
|
+
/** @format int64 */
|
|
285
|
+
lockTime: number;
|
|
286
|
+
additionalData: string;
|
|
287
|
+
}
|
|
288
|
+
export interface FunctionSig {
|
|
289
|
+
name: string;
|
|
290
|
+
signature: string;
|
|
291
|
+
argTypes: string[];
|
|
292
|
+
returnTypes: string[];
|
|
293
|
+
}
|
|
294
|
+
export interface Group {
|
|
295
|
+
group: number;
|
|
296
|
+
}
|
|
297
|
+
export interface HashesAtHeight {
|
|
298
|
+
headers: string[];
|
|
299
|
+
}
|
|
300
|
+
export interface InputAsset {
|
|
301
|
+
address: string;
|
|
302
|
+
asset: AssetState;
|
|
303
|
+
}
|
|
304
|
+
export interface InterCliquePeerInfo {
|
|
305
|
+
cliqueId: string;
|
|
306
|
+
brokerId: number;
|
|
307
|
+
groupNumPerBroker: number;
|
|
308
|
+
address: string;
|
|
309
|
+
isSynced: boolean;
|
|
310
|
+
clientVersion: string;
|
|
311
|
+
}
|
|
312
|
+
export interface InternalServerError {
|
|
313
|
+
detail: string;
|
|
314
|
+
}
|
|
315
|
+
export interface MemPooled {
|
|
316
|
+
type: string;
|
|
317
|
+
}
|
|
318
|
+
export interface MinerAddresses {
|
|
319
|
+
addresses: string[];
|
|
320
|
+
}
|
|
321
|
+
export interface MinerAddressesInfo {
|
|
322
|
+
addresses: AddressInfo[];
|
|
323
|
+
}
|
|
324
|
+
export declare type MisbehaviorAction = Ban | Unban;
|
|
325
|
+
export interface NodeInfo {
|
|
326
|
+
buildInfo: BuildInfo;
|
|
327
|
+
upnp: boolean;
|
|
328
|
+
externalAddress?: string;
|
|
329
|
+
}
|
|
330
|
+
export interface NodeVersion {
|
|
331
|
+
version: ReleaseVersion;
|
|
332
|
+
}
|
|
333
|
+
export interface NotFound {
|
|
334
|
+
detail: string;
|
|
335
|
+
resource: string;
|
|
336
|
+
}
|
|
337
|
+
export declare type Output = AssetOutput | ContractOutput;
|
|
338
|
+
export interface OutputRef {
|
|
339
|
+
hint: number;
|
|
340
|
+
key: string;
|
|
341
|
+
}
|
|
342
|
+
export interface PeerAddress {
|
|
343
|
+
address: string;
|
|
344
|
+
restPort: number;
|
|
345
|
+
wsPort: number;
|
|
346
|
+
minerApiPort: number;
|
|
347
|
+
}
|
|
348
|
+
export interface PeerMisbehavior {
|
|
349
|
+
peer: string;
|
|
350
|
+
status: PeerStatus;
|
|
351
|
+
}
|
|
352
|
+
export declare type PeerStatus = Banned | Penalty;
|
|
353
|
+
export interface Penalty {
|
|
354
|
+
value: number;
|
|
355
|
+
type: string;
|
|
356
|
+
}
|
|
357
|
+
export interface Reachable {
|
|
358
|
+
peers: string[];
|
|
359
|
+
type: string;
|
|
360
|
+
}
|
|
361
|
+
export interface ReleaseVersion {
|
|
362
|
+
major: number;
|
|
363
|
+
minor: number;
|
|
364
|
+
patch: number;
|
|
365
|
+
}
|
|
366
|
+
export interface RevealMnemonic {
|
|
367
|
+
password: string;
|
|
368
|
+
}
|
|
369
|
+
export interface RevealMnemonicResult {
|
|
370
|
+
mnemonic: string;
|
|
371
|
+
}
|
|
372
|
+
export interface Script {
|
|
373
|
+
code: string;
|
|
374
|
+
}
|
|
375
|
+
export interface SelfClique {
|
|
376
|
+
cliqueId: string;
|
|
377
|
+
nodes: PeerAddress[];
|
|
378
|
+
selfReady: boolean;
|
|
379
|
+
synced: boolean;
|
|
380
|
+
}
|
|
381
|
+
export interface ServiceUnavailable {
|
|
382
|
+
detail: string;
|
|
383
|
+
}
|
|
384
|
+
export interface Sign {
|
|
385
|
+
data: string;
|
|
386
|
+
}
|
|
387
|
+
export interface SignResult {
|
|
388
|
+
signature: string;
|
|
389
|
+
}
|
|
390
|
+
export interface SubmitMultisig {
|
|
391
|
+
unsignedTx: string;
|
|
392
|
+
signatures: string[];
|
|
393
|
+
}
|
|
394
|
+
export interface SubmitTransaction {
|
|
395
|
+
unsignedTx: string;
|
|
396
|
+
signature: string;
|
|
397
|
+
}
|
|
398
|
+
export interface Sweep {
|
|
399
|
+
toAddress: string;
|
|
400
|
+
/** @format int64 */
|
|
401
|
+
lockTime?: number;
|
|
402
|
+
gas?: number;
|
|
403
|
+
/** @format uint256 */
|
|
404
|
+
gasPrice?: string;
|
|
405
|
+
utxosLimit?: number;
|
|
406
|
+
}
|
|
407
|
+
export interface SweepAddressTransaction {
|
|
408
|
+
txId: string;
|
|
409
|
+
unsignedTx: string;
|
|
410
|
+
gasAmount: number;
|
|
411
|
+
/** @format uint256 */
|
|
412
|
+
gasPrice: string;
|
|
413
|
+
}
|
|
414
|
+
export interface TestContract {
|
|
415
|
+
group?: number;
|
|
416
|
+
address?: string;
|
|
417
|
+
bytecode: string;
|
|
418
|
+
initialFields: Val[];
|
|
419
|
+
initialAsset?: AssetState;
|
|
420
|
+
testMethodIndex?: number;
|
|
421
|
+
testArgs: Val[];
|
|
422
|
+
existingContracts?: ContractState[];
|
|
423
|
+
inputAssets?: InputAsset[];
|
|
424
|
+
}
|
|
425
|
+
export interface TestContractResult {
|
|
426
|
+
returns: Val[];
|
|
427
|
+
gasUsed: number;
|
|
428
|
+
contracts: ContractState[];
|
|
429
|
+
txOutputs: Output[];
|
|
430
|
+
events: Event[];
|
|
431
|
+
}
|
|
432
|
+
export interface Token {
|
|
433
|
+
id: string;
|
|
434
|
+
/** @format uint256 */
|
|
435
|
+
amount: string;
|
|
436
|
+
}
|
|
437
|
+
export interface Transaction {
|
|
438
|
+
unsigned: UnsignedTx;
|
|
439
|
+
scriptExecutionOk: boolean;
|
|
440
|
+
contractInputs: OutputRef[];
|
|
441
|
+
generatedOutputs: Output[];
|
|
442
|
+
inputSignatures: string[];
|
|
443
|
+
scriptSignatures: string[];
|
|
444
|
+
}
|
|
445
|
+
export interface TransactionTemplate {
|
|
446
|
+
unsigned: UnsignedTx;
|
|
447
|
+
inputSignatures: string[];
|
|
448
|
+
scriptSignatures: string[];
|
|
449
|
+
}
|
|
450
|
+
export interface Transfer {
|
|
451
|
+
destinations: Destination[];
|
|
452
|
+
gas?: number;
|
|
453
|
+
/** @format uint256 */
|
|
454
|
+
gasPrice?: string;
|
|
455
|
+
utxosLimit?: number;
|
|
456
|
+
}
|
|
457
|
+
export interface TransferResult {
|
|
458
|
+
txId: string;
|
|
459
|
+
fromGroup: number;
|
|
460
|
+
toGroup: number;
|
|
461
|
+
}
|
|
462
|
+
export interface TransferResults {
|
|
463
|
+
results: TransferResult[];
|
|
464
|
+
}
|
|
465
|
+
export interface TxNotFound {
|
|
466
|
+
type: string;
|
|
467
|
+
}
|
|
468
|
+
export interface TxResult {
|
|
469
|
+
txId: string;
|
|
470
|
+
fromGroup: number;
|
|
471
|
+
toGroup: number;
|
|
472
|
+
}
|
|
473
|
+
export interface TxScriptEvent {
|
|
474
|
+
blockHash: string;
|
|
475
|
+
txId: string;
|
|
476
|
+
eventIndex: number;
|
|
477
|
+
fields: Val[];
|
|
478
|
+
type: string;
|
|
479
|
+
}
|
|
480
|
+
export declare type TxStatus = Confirmed | MemPooled | TxNotFound;
|
|
481
|
+
export interface UTXO {
|
|
482
|
+
ref: OutputRef;
|
|
483
|
+
/** @format uint256 */
|
|
484
|
+
amount: string;
|
|
485
|
+
tokens: Token[];
|
|
486
|
+
/** @format int64 */
|
|
487
|
+
lockTime: number;
|
|
488
|
+
additionalData: string;
|
|
489
|
+
}
|
|
490
|
+
export interface UTXOs {
|
|
491
|
+
utxos: UTXO[];
|
|
492
|
+
warning?: string;
|
|
493
|
+
}
|
|
494
|
+
export interface Unauthorized {
|
|
495
|
+
detail: string;
|
|
496
|
+
}
|
|
497
|
+
export interface Unban {
|
|
498
|
+
peers: string[];
|
|
499
|
+
type: string;
|
|
500
|
+
}
|
|
501
|
+
export interface UnconfirmedTransactions {
|
|
502
|
+
fromGroup: number;
|
|
503
|
+
toGroup: number;
|
|
504
|
+
unconfirmedTransactions: TransactionTemplate[];
|
|
505
|
+
}
|
|
506
|
+
export interface Unreachable {
|
|
507
|
+
peers: string[];
|
|
508
|
+
type: string;
|
|
509
|
+
}
|
|
510
|
+
export interface UnsignedTx {
|
|
511
|
+
txId: string;
|
|
512
|
+
version: number;
|
|
513
|
+
networkId: number;
|
|
514
|
+
scriptOpt?: string;
|
|
515
|
+
gasAmount: number;
|
|
516
|
+
/** @format uint256 */
|
|
517
|
+
gasPrice: string;
|
|
518
|
+
inputs: AssetInput[];
|
|
519
|
+
fixedOutputs: FixedAssetOutput[];
|
|
520
|
+
}
|
|
521
|
+
export declare type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256;
|
|
522
|
+
export interface ValAddress {
|
|
523
|
+
value: string;
|
|
524
|
+
type: string;
|
|
525
|
+
}
|
|
526
|
+
export interface ValArray {
|
|
527
|
+
value: Val[];
|
|
528
|
+
type: string;
|
|
529
|
+
}
|
|
530
|
+
export interface ValBool {
|
|
531
|
+
value: boolean;
|
|
532
|
+
type: string;
|
|
533
|
+
}
|
|
534
|
+
export interface ValByteVec {
|
|
535
|
+
value: string;
|
|
536
|
+
type: string;
|
|
537
|
+
}
|
|
538
|
+
export interface ValI256 {
|
|
539
|
+
value: string;
|
|
540
|
+
type: string;
|
|
541
|
+
}
|
|
542
|
+
export interface ValU256 {
|
|
543
|
+
/** @format uint256 */
|
|
544
|
+
value: string;
|
|
545
|
+
type: string;
|
|
546
|
+
}
|
|
547
|
+
export interface VerifySignature {
|
|
548
|
+
data: string;
|
|
549
|
+
signature: string;
|
|
550
|
+
publicKey: string;
|
|
551
|
+
}
|
|
552
|
+
export interface WalletCreation {
|
|
553
|
+
password: string;
|
|
554
|
+
walletName: string;
|
|
555
|
+
isMiner?: boolean;
|
|
556
|
+
mnemonicPassphrase?: string;
|
|
557
|
+
mnemonicSize?: number;
|
|
558
|
+
}
|
|
559
|
+
export interface WalletCreationResult {
|
|
560
|
+
walletName: string;
|
|
561
|
+
mnemonic: string;
|
|
562
|
+
}
|
|
563
|
+
export interface WalletDeletion {
|
|
564
|
+
password: string;
|
|
565
|
+
}
|
|
566
|
+
export interface WalletRestore {
|
|
567
|
+
password: string;
|
|
568
|
+
mnemonic: string;
|
|
569
|
+
walletName: string;
|
|
570
|
+
isMiner?: boolean;
|
|
571
|
+
mnemonicPassphrase?: string;
|
|
572
|
+
}
|
|
573
|
+
export interface WalletRestoreResult {
|
|
574
|
+
walletName: string;
|
|
575
|
+
}
|
|
576
|
+
export interface WalletStatus {
|
|
577
|
+
walletName: string;
|
|
578
|
+
locked: boolean;
|
|
579
|
+
}
|
|
580
|
+
export interface WalletUnlock {
|
|
581
|
+
password: string;
|
|
582
|
+
mnemonicPassphrase?: string;
|
|
583
|
+
}
|
|
584
|
+
import 'cross-fetch/polyfill';
|
|
585
|
+
export declare type QueryParamsType = Record<string | number, any>;
|
|
586
|
+
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
587
|
+
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
588
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
589
|
+
secure?: boolean;
|
|
590
|
+
/** request path */
|
|
591
|
+
path: string;
|
|
592
|
+
/** content type of request body */
|
|
593
|
+
type?: ContentType;
|
|
594
|
+
/** query params */
|
|
595
|
+
query?: QueryParamsType;
|
|
596
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
597
|
+
format?: ResponseFormat;
|
|
598
|
+
/** request body */
|
|
599
|
+
body?: unknown;
|
|
600
|
+
/** base url */
|
|
601
|
+
baseUrl?: string;
|
|
602
|
+
/** request cancellation token */
|
|
603
|
+
cancelToken?: CancelToken;
|
|
604
|
+
}
|
|
605
|
+
export declare type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
606
|
+
export interface ApiConfig<SecurityDataType = unknown> {
|
|
607
|
+
baseUrl?: string;
|
|
608
|
+
baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
|
|
609
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
|
|
610
|
+
customFetch?: typeof fetch;
|
|
611
|
+
}
|
|
612
|
+
export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
|
|
613
|
+
data: D;
|
|
614
|
+
error: E;
|
|
615
|
+
}
|
|
616
|
+
declare type CancelToken = Symbol | string | number;
|
|
617
|
+
export declare enum ContentType {
|
|
618
|
+
Json = "application/json",
|
|
619
|
+
FormData = "multipart/form-data",
|
|
620
|
+
UrlEncoded = "application/x-www-form-urlencoded"
|
|
621
|
+
}
|
|
622
|
+
export declare class HttpClient<SecurityDataType = unknown> {
|
|
623
|
+
baseUrl: string;
|
|
624
|
+
private securityData;
|
|
625
|
+
private securityWorker?;
|
|
626
|
+
private abortControllers;
|
|
627
|
+
private customFetch;
|
|
628
|
+
private baseApiParams;
|
|
629
|
+
constructor(apiConfig?: ApiConfig<SecurityDataType>);
|
|
630
|
+
setSecurityData: (data: SecurityDataType | null) => void;
|
|
631
|
+
private encodeQueryParam;
|
|
632
|
+
private addQueryParam;
|
|
633
|
+
private addArrayQueryParam;
|
|
634
|
+
protected toQueryString(rawQuery?: QueryParamsType): string;
|
|
635
|
+
protected addQueryParams(rawQuery?: QueryParamsType): string;
|
|
636
|
+
private contentFormatters;
|
|
637
|
+
private mergeRequestParams;
|
|
638
|
+
private createAbortSignal;
|
|
639
|
+
abortRequest: (cancelToken: CancelToken) => void;
|
|
640
|
+
request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* @title Alephium API
|
|
644
|
+
* @version 1.3.0
|
|
645
|
+
* @baseUrl {protocol}://{host}:{port}
|
|
646
|
+
*/
|
|
647
|
+
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
648
|
+
wallets: {
|
|
649
|
+
/**
|
|
650
|
+
* No description
|
|
651
|
+
*
|
|
652
|
+
* @tags Wallets
|
|
653
|
+
* @name GetWallets
|
|
654
|
+
* @summary List available wallets
|
|
655
|
+
* @request GET:/wallets
|
|
656
|
+
*/
|
|
657
|
+
getWallets: (params?: RequestParams) => Promise<HttpResponse<WalletStatus[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
658
|
+
/**
|
|
659
|
+
* No description
|
|
660
|
+
*
|
|
661
|
+
* @tags Wallets
|
|
662
|
+
* @name PutWallets
|
|
663
|
+
* @summary Restore a wallet from your mnemonic
|
|
664
|
+
* @request PUT:/wallets
|
|
665
|
+
*/
|
|
666
|
+
putWallets: (data: WalletRestore, params?: RequestParams) => Promise<HttpResponse<WalletRestoreResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
667
|
+
/**
|
|
668
|
+
* @description A new wallet will be created and respond with a mnemonic. Make sure to keep that mnemonic safely as it will allows you to recover your wallet. Default mnemonic size is 24, (options: 12, 15, 18, 21, 24).
|
|
669
|
+
*
|
|
670
|
+
* @tags Wallets
|
|
671
|
+
* @name PostWallets
|
|
672
|
+
* @summary Create a new wallet
|
|
673
|
+
* @request POST:/wallets
|
|
674
|
+
*/
|
|
675
|
+
postWallets: (data: WalletCreation, params?: RequestParams) => Promise<HttpResponse<WalletCreationResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
676
|
+
/**
|
|
677
|
+
* No description
|
|
678
|
+
*
|
|
679
|
+
* @tags Wallets
|
|
680
|
+
* @name GetWalletsWalletName
|
|
681
|
+
* @summary Get wallet's status
|
|
682
|
+
* @request GET:/wallets/{wallet_name}
|
|
683
|
+
*/
|
|
684
|
+
getWalletsWalletName: (walletName: string, params?: RequestParams) => Promise<HttpResponse<WalletStatus, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
685
|
+
/**
|
|
686
|
+
* No description
|
|
687
|
+
*
|
|
688
|
+
* @tags Wallets
|
|
689
|
+
* @name DeleteWalletsWalletName
|
|
690
|
+
* @summary Delete your wallet file (can be recovered with your mnemonic)
|
|
691
|
+
* @request DELETE:/wallets/{wallet_name}
|
|
692
|
+
*/
|
|
693
|
+
deleteWalletsWalletName: (walletName: string, data: WalletDeletion, params?: RequestParams) => Promise<HttpResponse<void, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
694
|
+
/**
|
|
695
|
+
* No description
|
|
696
|
+
*
|
|
697
|
+
* @tags Wallets
|
|
698
|
+
* @name PostWalletsWalletNameLock
|
|
699
|
+
* @summary Lock your wallet
|
|
700
|
+
* @request POST:/wallets/{wallet_name}/lock
|
|
701
|
+
*/
|
|
702
|
+
postWalletsWalletNameLock: (walletName: string, params?: RequestParams) => Promise<HttpResponse<void, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
703
|
+
/**
|
|
704
|
+
* No description
|
|
705
|
+
*
|
|
706
|
+
* @tags Wallets
|
|
707
|
+
* @name PostWalletsWalletNameUnlock
|
|
708
|
+
* @summary Unlock your wallet
|
|
709
|
+
* @request POST:/wallets/{wallet_name}/unlock
|
|
710
|
+
*/
|
|
711
|
+
postWalletsWalletNameUnlock: (walletName: string, data: WalletUnlock, params?: RequestParams) => Promise<HttpResponse<void, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
712
|
+
/**
|
|
713
|
+
* No description
|
|
714
|
+
*
|
|
715
|
+
* @tags Wallets
|
|
716
|
+
* @name GetWalletsWalletNameBalances
|
|
717
|
+
* @summary Get your total balance
|
|
718
|
+
* @request GET:/wallets/{wallet_name}/balances
|
|
719
|
+
*/
|
|
720
|
+
getWalletsWalletNameBalances: (walletName: string, query?: {
|
|
721
|
+
utxosLimit?: number | undefined;
|
|
722
|
+
} | undefined, params?: RequestParams) => Promise<HttpResponse<Balances, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
723
|
+
/**
|
|
724
|
+
* No description
|
|
725
|
+
*
|
|
726
|
+
* @tags Wallets
|
|
727
|
+
* @name PostWalletsWalletNameRevealMnemonic
|
|
728
|
+
* @summary Reveal your mnemonic. !!! use it with caution !!!
|
|
729
|
+
* @request POST:/wallets/{wallet_name}/reveal-mnemonic
|
|
730
|
+
*/
|
|
731
|
+
postWalletsWalletNameRevealMnemonic: (walletName: string, data: RevealMnemonic, params?: RequestParams) => Promise<HttpResponse<RevealMnemonicResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
732
|
+
/**
|
|
733
|
+
* No description
|
|
734
|
+
*
|
|
735
|
+
* @tags Wallets
|
|
736
|
+
* @name PostWalletsWalletNameTransfer
|
|
737
|
+
* @summary Transfer ALPH from the active address
|
|
738
|
+
* @request POST:/wallets/{wallet_name}/transfer
|
|
739
|
+
*/
|
|
740
|
+
postWalletsWalletNameTransfer: (walletName: string, data: Transfer, params?: RequestParams) => Promise<HttpResponse<TransferResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
741
|
+
/**
|
|
742
|
+
* No description
|
|
743
|
+
*
|
|
744
|
+
* @tags Wallets
|
|
745
|
+
* @name PostWalletsWalletNameSweepActiveAddress
|
|
746
|
+
* @summary Transfer all unlocked ALPH from the active address to another address
|
|
747
|
+
* @request POST:/wallets/{wallet_name}/sweep-active-address
|
|
748
|
+
*/
|
|
749
|
+
postWalletsWalletNameSweepActiveAddress: (walletName: string, data: Sweep, params?: RequestParams) => Promise<HttpResponse<TransferResults, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
750
|
+
/**
|
|
751
|
+
* No description
|
|
752
|
+
*
|
|
753
|
+
* @tags Wallets
|
|
754
|
+
* @name PostWalletsWalletNameSweepAllAddresses
|
|
755
|
+
* @summary Transfer unlocked ALPH from all addresses (including all mining addresses if applicable) to another address
|
|
756
|
+
* @request POST:/wallets/{wallet_name}/sweep-all-addresses
|
|
757
|
+
*/
|
|
758
|
+
postWalletsWalletNameSweepAllAddresses: (walletName: string, data: Sweep, params?: RequestParams) => Promise<HttpResponse<TransferResults, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
759
|
+
/**
|
|
760
|
+
* No description
|
|
761
|
+
*
|
|
762
|
+
* @tags Wallets
|
|
763
|
+
* @name PostWalletsWalletNameSign
|
|
764
|
+
* @summary Sign the given data and return back the signature
|
|
765
|
+
* @request POST:/wallets/{wallet_name}/sign
|
|
766
|
+
*/
|
|
767
|
+
postWalletsWalletNameSign: (walletName: string, data: Sign, params?: RequestParams) => Promise<HttpResponse<SignResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
768
|
+
/**
|
|
769
|
+
* No description
|
|
770
|
+
*
|
|
771
|
+
* @tags Wallets
|
|
772
|
+
* @name GetWalletsWalletNameAddresses
|
|
773
|
+
* @summary List all your wallet's addresses
|
|
774
|
+
* @request GET:/wallets/{wallet_name}/addresses
|
|
775
|
+
*/
|
|
776
|
+
getWalletsWalletNameAddresses: (walletName: string, params?: RequestParams) => Promise<HttpResponse<Addresses, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
777
|
+
/**
|
|
778
|
+
* No description
|
|
779
|
+
*
|
|
780
|
+
* @tags Wallets
|
|
781
|
+
* @name GetWalletsWalletNameAddressesAddress
|
|
782
|
+
* @summary Get address' info
|
|
783
|
+
* @request GET:/wallets/{wallet_name}/addresses/{address}
|
|
784
|
+
*/
|
|
785
|
+
getWalletsWalletNameAddressesAddress: (walletName: string, address: string, params?: RequestParams) => Promise<HttpResponse<AddressInfo, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
786
|
+
/**
|
|
787
|
+
* @description This endpoint can only be called if the wallet was created with the `isMiner = true` flag
|
|
788
|
+
*
|
|
789
|
+
* @tags Miners
|
|
790
|
+
* @name GetWalletsWalletNameMinerAddresses
|
|
791
|
+
* @summary List all miner addresses per group
|
|
792
|
+
* @request GET:/wallets/{wallet_name}/miner-addresses
|
|
793
|
+
*/
|
|
794
|
+
getWalletsWalletNameMinerAddresses: (walletName: string, params?: RequestParams) => Promise<HttpResponse<MinerAddressesInfo[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
795
|
+
/**
|
|
796
|
+
* @description Cannot be called from a miner wallet
|
|
797
|
+
*
|
|
798
|
+
* @tags Wallets
|
|
799
|
+
* @name PostWalletsWalletNameDeriveNextAddress
|
|
800
|
+
* @summary Derive your next address
|
|
801
|
+
* @request POST:/wallets/{wallet_name}/derive-next-address
|
|
802
|
+
*/
|
|
803
|
+
postWalletsWalletNameDeriveNextAddress: (walletName: string, query?: {
|
|
804
|
+
group?: number | undefined;
|
|
805
|
+
} | undefined, params?: RequestParams) => Promise<HttpResponse<AddressInfo, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
806
|
+
/**
|
|
807
|
+
* @description Your wallet need to have been created with the miner flag set to true
|
|
808
|
+
*
|
|
809
|
+
* @tags Miners
|
|
810
|
+
* @name PostWalletsWalletNameDeriveNextMinerAddresses
|
|
811
|
+
* @summary Derive your next miner addresses for each group
|
|
812
|
+
* @request POST:/wallets/{wallet_name}/derive-next-miner-addresses
|
|
813
|
+
*/
|
|
814
|
+
postWalletsWalletNameDeriveNextMinerAddresses: (walletName: string, params?: RequestParams) => Promise<HttpResponse<AddressInfo[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
815
|
+
/**
|
|
816
|
+
* No description
|
|
817
|
+
*
|
|
818
|
+
* @tags Wallets
|
|
819
|
+
* @name PostWalletsWalletNameChangeActiveAddress
|
|
820
|
+
* @summary Choose the active address
|
|
821
|
+
* @request POST:/wallets/{wallet_name}/change-active-address
|
|
822
|
+
*/
|
|
823
|
+
postWalletsWalletNameChangeActiveAddress: (walletName: string, data: ChangeActiveAddress, params?: RequestParams) => Promise<HttpResponse<void, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
824
|
+
};
|
|
825
|
+
infos: {
|
|
826
|
+
/**
|
|
827
|
+
* No description
|
|
828
|
+
*
|
|
829
|
+
* @tags Infos
|
|
830
|
+
* @name GetInfosNode
|
|
831
|
+
* @summary Get info about that node
|
|
832
|
+
* @request GET:/infos/node
|
|
833
|
+
*/
|
|
834
|
+
getInfosNode: (params?: RequestParams) => Promise<HttpResponse<NodeInfo, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
835
|
+
/**
|
|
836
|
+
* No description
|
|
837
|
+
*
|
|
838
|
+
* @tags Infos
|
|
839
|
+
* @name GetInfosVersion
|
|
840
|
+
* @summary Get version about that node
|
|
841
|
+
* @request GET:/infos/version
|
|
842
|
+
*/
|
|
843
|
+
getInfosVersion: (params?: RequestParams) => Promise<HttpResponse<NodeVersion, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
844
|
+
/**
|
|
845
|
+
* No description
|
|
846
|
+
*
|
|
847
|
+
* @tags Infos
|
|
848
|
+
* @name GetInfosChainParams
|
|
849
|
+
* @summary Get key params about your blockchain
|
|
850
|
+
* @request GET:/infos/chain-params
|
|
851
|
+
*/
|
|
852
|
+
getInfosChainParams: (params?: RequestParams) => Promise<HttpResponse<ChainParams, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
853
|
+
/**
|
|
854
|
+
* No description
|
|
855
|
+
*
|
|
856
|
+
* @tags Infos
|
|
857
|
+
* @name GetInfosSelfClique
|
|
858
|
+
* @summary Get info about your own clique
|
|
859
|
+
* @request GET:/infos/self-clique
|
|
860
|
+
*/
|
|
861
|
+
getInfosSelfClique: (params?: RequestParams) => Promise<HttpResponse<SelfClique, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
862
|
+
/**
|
|
863
|
+
* No description
|
|
864
|
+
*
|
|
865
|
+
* @tags Infos
|
|
866
|
+
* @name GetInfosInterCliquePeerInfo
|
|
867
|
+
* @summary Get infos about the inter cliques
|
|
868
|
+
* @request GET:/infos/inter-clique-peer-info
|
|
869
|
+
*/
|
|
870
|
+
getInfosInterCliquePeerInfo: (params?: RequestParams) => Promise<HttpResponse<InterCliquePeerInfo[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
871
|
+
/**
|
|
872
|
+
* No description
|
|
873
|
+
*
|
|
874
|
+
* @tags Infos
|
|
875
|
+
* @name GetInfosDiscoveredNeighbors
|
|
876
|
+
* @summary Get discovered neighbors
|
|
877
|
+
* @request GET:/infos/discovered-neighbors
|
|
878
|
+
*/
|
|
879
|
+
getInfosDiscoveredNeighbors: (params?: RequestParams) => Promise<HttpResponse<BrokerInfo[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
880
|
+
/**
|
|
881
|
+
* No description
|
|
882
|
+
*
|
|
883
|
+
* @tags Infos
|
|
884
|
+
* @name GetInfosMisbehaviors
|
|
885
|
+
* @summary Get the misbehaviors of peers
|
|
886
|
+
* @request GET:/infos/misbehaviors
|
|
887
|
+
*/
|
|
888
|
+
getInfosMisbehaviors: (params?: RequestParams) => Promise<HttpResponse<PeerMisbehavior[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
889
|
+
/**
|
|
890
|
+
* No description
|
|
891
|
+
*
|
|
892
|
+
* @tags Infos
|
|
893
|
+
* @name PostInfosMisbehaviors
|
|
894
|
+
* @summary Ban/Unban given peers
|
|
895
|
+
* @request POST:/infos/misbehaviors
|
|
896
|
+
*/
|
|
897
|
+
postInfosMisbehaviors: (data: MisbehaviorAction, params?: RequestParams) => Promise<HttpResponse<void, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
898
|
+
/**
|
|
899
|
+
* No description
|
|
900
|
+
*
|
|
901
|
+
* @tags Infos
|
|
902
|
+
* @name GetInfosUnreachable
|
|
903
|
+
* @summary Get the unreachable brokers
|
|
904
|
+
* @request GET:/infos/unreachable
|
|
905
|
+
*/
|
|
906
|
+
getInfosUnreachable: (params?: RequestParams) => Promise<HttpResponse<string[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
907
|
+
/**
|
|
908
|
+
* No description
|
|
909
|
+
*
|
|
910
|
+
* @tags Infos
|
|
911
|
+
* @name PostInfosDiscovery
|
|
912
|
+
* @summary Set brokers to be unreachable/reachable
|
|
913
|
+
* @request POST:/infos/discovery
|
|
914
|
+
*/
|
|
915
|
+
postInfosDiscovery: (data: DiscoveryAction, params?: RequestParams) => Promise<HttpResponse<void, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
916
|
+
/**
|
|
917
|
+
* No description
|
|
918
|
+
*
|
|
919
|
+
* @tags Infos
|
|
920
|
+
* @name GetInfosHistoryHashrate
|
|
921
|
+
* @summary Get history average hashrate on the given time interval
|
|
922
|
+
* @request GET:/infos/history-hashrate
|
|
923
|
+
*/
|
|
924
|
+
getInfosHistoryHashrate: (query: {
|
|
925
|
+
fromTs: number;
|
|
926
|
+
toTs?: number;
|
|
927
|
+
}, params?: RequestParams) => Promise<HttpResponse<string, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
928
|
+
/**
|
|
929
|
+
* No description
|
|
930
|
+
*
|
|
931
|
+
* @tags Infos
|
|
932
|
+
* @name GetInfosCurrentHashrate
|
|
933
|
+
* @summary Get average hashrate from `now - timespan(millis)` to `now`
|
|
934
|
+
* @request GET:/infos/current-hashrate
|
|
935
|
+
*/
|
|
936
|
+
getInfosCurrentHashrate: (query?: {
|
|
937
|
+
timespan?: number | undefined;
|
|
938
|
+
} | undefined, params?: RequestParams) => Promise<HttpResponse<string, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
939
|
+
};
|
|
940
|
+
blockflow: {
|
|
941
|
+
/**
|
|
942
|
+
* No description
|
|
943
|
+
*
|
|
944
|
+
* @tags Blockflow
|
|
945
|
+
* @name GetBlockflow
|
|
946
|
+
* @summary List blocks on the given time interval
|
|
947
|
+
* @request GET:/blockflow
|
|
948
|
+
*/
|
|
949
|
+
getBlockflow: (query: {
|
|
950
|
+
fromTs: number;
|
|
951
|
+
toTs?: number;
|
|
952
|
+
}, params?: RequestParams) => Promise<HttpResponse<FetchResponse, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
953
|
+
/**
|
|
954
|
+
* No description
|
|
955
|
+
*
|
|
956
|
+
* @tags Blockflow
|
|
957
|
+
* @name GetBlockflowBlocksBlockHash
|
|
958
|
+
* @summary Get a block with hash
|
|
959
|
+
* @request GET:/blockflow/blocks/{block_hash}
|
|
960
|
+
*/
|
|
961
|
+
getBlockflowBlocksBlockHash: (blockHash: string, params?: RequestParams) => Promise<HttpResponse<BlockEntry, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
962
|
+
/**
|
|
963
|
+
* No description
|
|
964
|
+
*
|
|
965
|
+
* @tags Blockflow
|
|
966
|
+
* @name GetBlockflowIsBlockInMainChain
|
|
967
|
+
* @summary Check if the block is in main chain
|
|
968
|
+
* @request GET:/blockflow/is-block-in-main-chain
|
|
969
|
+
*/
|
|
970
|
+
getBlockflowIsBlockInMainChain: (query: {
|
|
971
|
+
blockHash: string;
|
|
972
|
+
}, params?: RequestParams) => Promise<HttpResponse<boolean, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
973
|
+
/**
|
|
974
|
+
* No description
|
|
975
|
+
*
|
|
976
|
+
* @tags Blockflow
|
|
977
|
+
* @name GetBlockflowHashes
|
|
978
|
+
* @summary Get all block's hashes at given height for given groups
|
|
979
|
+
* @request GET:/blockflow/hashes
|
|
980
|
+
*/
|
|
981
|
+
getBlockflowHashes: (query: {
|
|
982
|
+
fromGroup: number;
|
|
983
|
+
toGroup: number;
|
|
984
|
+
height: number;
|
|
985
|
+
}, params?: RequestParams) => Promise<HttpResponse<HashesAtHeight, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
986
|
+
/**
|
|
987
|
+
* No description
|
|
988
|
+
*
|
|
989
|
+
* @tags Blockflow
|
|
990
|
+
* @name GetBlockflowChainInfo
|
|
991
|
+
* @summary Get infos about the chain from the given groups
|
|
992
|
+
* @request GET:/blockflow/chain-info
|
|
993
|
+
*/
|
|
994
|
+
getBlockflowChainInfo: (query: {
|
|
995
|
+
fromGroup: number;
|
|
996
|
+
toGroup: number;
|
|
997
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChainInfo, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
998
|
+
/**
|
|
999
|
+
* No description
|
|
1000
|
+
*
|
|
1001
|
+
* @tags Blockflow
|
|
1002
|
+
* @name GetBlockflowHeadersBlockHash
|
|
1003
|
+
* @summary Get block header
|
|
1004
|
+
* @request GET:/blockflow/headers/{block_hash}
|
|
1005
|
+
*/
|
|
1006
|
+
getBlockflowHeadersBlockHash: (blockHash: string, params?: RequestParams) => Promise<HttpResponse<BlockHeaderEntry, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1007
|
+
};
|
|
1008
|
+
addresses: {
|
|
1009
|
+
/**
|
|
1010
|
+
* No description
|
|
1011
|
+
*
|
|
1012
|
+
* @tags Addresses
|
|
1013
|
+
* @name GetAddressesAddressBalance
|
|
1014
|
+
* @summary Get the balance of an address
|
|
1015
|
+
* @request GET:/addresses/{address}/balance
|
|
1016
|
+
*/
|
|
1017
|
+
getAddressesAddressBalance: (address: string, query?: {
|
|
1018
|
+
utxosLimit?: number | undefined;
|
|
1019
|
+
} | undefined, params?: RequestParams) => Promise<HttpResponse<Balance, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1020
|
+
/**
|
|
1021
|
+
* No description
|
|
1022
|
+
*
|
|
1023
|
+
* @tags Addresses
|
|
1024
|
+
* @name GetAddressesAddressUtxos
|
|
1025
|
+
* @summary Get the UTXOs of an address
|
|
1026
|
+
* @request GET:/addresses/{address}/utxos
|
|
1027
|
+
*/
|
|
1028
|
+
getAddressesAddressUtxos: (address: string, query?: {
|
|
1029
|
+
utxosLimit?: number | undefined;
|
|
1030
|
+
} | undefined, params?: RequestParams) => Promise<HttpResponse<UTXOs, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1031
|
+
/**
|
|
1032
|
+
* No description
|
|
1033
|
+
*
|
|
1034
|
+
* @tags Addresses
|
|
1035
|
+
* @name GetAddressesAddressGroup
|
|
1036
|
+
* @summary Get the group of an address
|
|
1037
|
+
* @request GET:/addresses/{address}/group
|
|
1038
|
+
*/
|
|
1039
|
+
getAddressesAddressGroup: (address: string, params?: RequestParams) => Promise<HttpResponse<Group, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1040
|
+
};
|
|
1041
|
+
transactions: {
|
|
1042
|
+
/**
|
|
1043
|
+
* No description
|
|
1044
|
+
*
|
|
1045
|
+
* @tags Transactions
|
|
1046
|
+
* @name GetTransactionsUnconfirmed
|
|
1047
|
+
* @summary List unconfirmed transactions
|
|
1048
|
+
* @request GET:/transactions/unconfirmed
|
|
1049
|
+
*/
|
|
1050
|
+
getTransactionsUnconfirmed: (params?: RequestParams) => Promise<HttpResponse<UnconfirmedTransactions[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1051
|
+
/**
|
|
1052
|
+
* No description
|
|
1053
|
+
*
|
|
1054
|
+
* @tags Transactions
|
|
1055
|
+
* @name PostTransactionsBuild
|
|
1056
|
+
* @summary Build an unsigned transaction to a number of recipients
|
|
1057
|
+
* @request POST:/transactions/build
|
|
1058
|
+
*/
|
|
1059
|
+
postTransactionsBuild: (data: BuildTransaction, params?: RequestParams) => Promise<HttpResponse<BuildTransactionResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1060
|
+
/**
|
|
1061
|
+
* No description
|
|
1062
|
+
*
|
|
1063
|
+
* @tags Transactions
|
|
1064
|
+
* @name PostTransactionsSweepAddressBuild
|
|
1065
|
+
* @summary Build unsigned transactions to send all unlocked balanced of one address to another address
|
|
1066
|
+
* @request POST:/transactions/sweep-address/build
|
|
1067
|
+
*/
|
|
1068
|
+
postTransactionsSweepAddressBuild: (data: BuildSweepAddressTransactions, params?: RequestParams) => Promise<HttpResponse<BuildSweepAddressTransactionsResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1069
|
+
/**
|
|
1070
|
+
* No description
|
|
1071
|
+
*
|
|
1072
|
+
* @tags Transactions
|
|
1073
|
+
* @name PostTransactionsSubmit
|
|
1074
|
+
* @summary Submit a signed transaction
|
|
1075
|
+
* @request POST:/transactions/submit
|
|
1076
|
+
*/
|
|
1077
|
+
postTransactionsSubmit: (data: SubmitTransaction, params?: RequestParams) => Promise<HttpResponse<TxResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1078
|
+
/**
|
|
1079
|
+
* No description
|
|
1080
|
+
*
|
|
1081
|
+
* @tags Transactions
|
|
1082
|
+
* @name PostTransactionsDecodeUnsignedTx
|
|
1083
|
+
* @summary Decode an unsigned transaction
|
|
1084
|
+
* @request POST:/transactions/decode-unsigned-tx
|
|
1085
|
+
*/
|
|
1086
|
+
postTransactionsDecodeUnsignedTx: (data: DecodeTransaction, params?: RequestParams) => Promise<HttpResponse<UnsignedTx, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1087
|
+
/**
|
|
1088
|
+
* No description
|
|
1089
|
+
*
|
|
1090
|
+
* @tags Transactions
|
|
1091
|
+
* @name GetTransactionsStatus
|
|
1092
|
+
* @summary Get tx status
|
|
1093
|
+
* @request GET:/transactions/status
|
|
1094
|
+
*/
|
|
1095
|
+
getTransactionsStatus: (query: {
|
|
1096
|
+
txId: string;
|
|
1097
|
+
fromGroup?: number;
|
|
1098
|
+
toGroup?: number;
|
|
1099
|
+
}, params?: RequestParams) => Promise<HttpResponse<TxStatus, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1100
|
+
};
|
|
1101
|
+
contracts: {
|
|
1102
|
+
/**
|
|
1103
|
+
* No description
|
|
1104
|
+
*
|
|
1105
|
+
* @tags Contracts
|
|
1106
|
+
* @name PostContractsCompileScript
|
|
1107
|
+
* @summary Compile a script
|
|
1108
|
+
* @request POST:/contracts/compile-script
|
|
1109
|
+
*/
|
|
1110
|
+
postContractsCompileScript: (data: Script, params?: RequestParams) => Promise<HttpResponse<CompileResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1111
|
+
/**
|
|
1112
|
+
* No description
|
|
1113
|
+
*
|
|
1114
|
+
* @tags Contracts
|
|
1115
|
+
* @name PostContractsUnsignedTxBuildScript
|
|
1116
|
+
* @summary Build an unsigned script
|
|
1117
|
+
* @request POST:/contracts/unsigned-tx/build-script
|
|
1118
|
+
*/
|
|
1119
|
+
postContractsUnsignedTxBuildScript: (data: BuildScriptTx, params?: RequestParams) => Promise<HttpResponse<BuildScriptTxResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1120
|
+
/**
|
|
1121
|
+
* No description
|
|
1122
|
+
*
|
|
1123
|
+
* @tags Contracts
|
|
1124
|
+
* @name PostContractsCompileContract
|
|
1125
|
+
* @summary Compile a smart contract
|
|
1126
|
+
* @request POST:/contracts/compile-contract
|
|
1127
|
+
*/
|
|
1128
|
+
postContractsCompileContract: (data: Contract, params?: RequestParams) => Promise<HttpResponse<CompileResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1129
|
+
/**
|
|
1130
|
+
* No description
|
|
1131
|
+
*
|
|
1132
|
+
* @tags Contracts
|
|
1133
|
+
* @name PostContractsUnsignedTxBuildContract
|
|
1134
|
+
* @summary Build an unsigned contract
|
|
1135
|
+
* @request POST:/contracts/unsigned-tx/build-contract
|
|
1136
|
+
*/
|
|
1137
|
+
postContractsUnsignedTxBuildContract: (data: BuildContractDeployScriptTx, params?: RequestParams) => Promise<HttpResponse<BuildContractDeployScriptTxResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1138
|
+
/**
|
|
1139
|
+
* No description
|
|
1140
|
+
*
|
|
1141
|
+
* @tags Contracts
|
|
1142
|
+
* @name GetContractsAddressState
|
|
1143
|
+
* @summary Get contract state
|
|
1144
|
+
* @request GET:/contracts/{address}/state
|
|
1145
|
+
*/
|
|
1146
|
+
getContractsAddressState: (address: string, query: {
|
|
1147
|
+
group: number;
|
|
1148
|
+
}, params?: RequestParams) => Promise<HttpResponse<ContractState, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1149
|
+
/**
|
|
1150
|
+
* No description
|
|
1151
|
+
*
|
|
1152
|
+
* @tags Contracts
|
|
1153
|
+
* @name PostContractsTestContract
|
|
1154
|
+
* @summary Test contract
|
|
1155
|
+
* @request POST:/contracts/test-contract
|
|
1156
|
+
*/
|
|
1157
|
+
postContractsTestContract: (data: TestContract, params?: RequestParams) => Promise<HttpResponse<TestContractResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1158
|
+
};
|
|
1159
|
+
multisig: {
|
|
1160
|
+
/**
|
|
1161
|
+
* No description
|
|
1162
|
+
*
|
|
1163
|
+
* @tags Multi-signature
|
|
1164
|
+
* @name PostMultisigAddress
|
|
1165
|
+
* @summary Create the multisig address and unlock script
|
|
1166
|
+
* @request POST:/multisig/address
|
|
1167
|
+
*/
|
|
1168
|
+
postMultisigAddress: (data: BuildMultisigAddress, params?: RequestParams) => Promise<HttpResponse<BuildMultisigAddressResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1169
|
+
/**
|
|
1170
|
+
* No description
|
|
1171
|
+
*
|
|
1172
|
+
* @tags Multi-signature
|
|
1173
|
+
* @name PostMultisigBuild
|
|
1174
|
+
* @summary Build a multisig unsigned transaction
|
|
1175
|
+
* @request POST:/multisig/build
|
|
1176
|
+
*/
|
|
1177
|
+
postMultisigBuild: (data: BuildMultisig, params?: RequestParams) => Promise<HttpResponse<BuildTransactionResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1178
|
+
/**
|
|
1179
|
+
* No description
|
|
1180
|
+
*
|
|
1181
|
+
* @tags Multi-signature
|
|
1182
|
+
* @name PostMultisigSubmit
|
|
1183
|
+
* @summary Submit a multi-signed transaction
|
|
1184
|
+
* @request POST:/multisig/submit
|
|
1185
|
+
*/
|
|
1186
|
+
postMultisigSubmit: (data: SubmitMultisig, params?: RequestParams) => Promise<HttpResponse<TxResult, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1187
|
+
};
|
|
1188
|
+
utils: {
|
|
1189
|
+
/**
|
|
1190
|
+
* No description
|
|
1191
|
+
*
|
|
1192
|
+
* @tags Utils
|
|
1193
|
+
* @name PostUtilsVerifySignature
|
|
1194
|
+
* @summary Verify the SecP256K1 signature of some data
|
|
1195
|
+
* @request POST:/utils/verify-signature
|
|
1196
|
+
*/
|
|
1197
|
+
postUtilsVerifySignature: (data: VerifySignature, params?: RequestParams) => Promise<HttpResponse<boolean, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1198
|
+
/**
|
|
1199
|
+
* No description
|
|
1200
|
+
*
|
|
1201
|
+
* @tags Utils
|
|
1202
|
+
* @name PutUtilsCheckHashIndexing
|
|
1203
|
+
* @summary Check and repair the indexing of block hashes
|
|
1204
|
+
* @request PUT:/utils/check-hash-indexing
|
|
1205
|
+
*/
|
|
1206
|
+
putUtilsCheckHashIndexing: (params?: RequestParams) => Promise<HttpResponse<void, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1207
|
+
};
|
|
1208
|
+
miners: {
|
|
1209
|
+
/**
|
|
1210
|
+
* No description
|
|
1211
|
+
*
|
|
1212
|
+
* @tags Miners
|
|
1213
|
+
* @name PostMinersCpuMining
|
|
1214
|
+
* @summary Execute an action on CPU miner. !!! for test only !!!
|
|
1215
|
+
* @request POST:/miners/cpu-mining
|
|
1216
|
+
*/
|
|
1217
|
+
postMinersCpuMining: (query: {
|
|
1218
|
+
action: string;
|
|
1219
|
+
}, params?: RequestParams) => Promise<HttpResponse<boolean, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1220
|
+
/**
|
|
1221
|
+
* No description
|
|
1222
|
+
*
|
|
1223
|
+
* @tags Miners
|
|
1224
|
+
* @name GetMinersAddresses
|
|
1225
|
+
* @summary List miner's addresses
|
|
1226
|
+
* @request GET:/miners/addresses
|
|
1227
|
+
*/
|
|
1228
|
+
getMinersAddresses: (params?: RequestParams) => Promise<HttpResponse<MinerAddresses, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1229
|
+
/**
|
|
1230
|
+
* No description
|
|
1231
|
+
*
|
|
1232
|
+
* @tags Miners
|
|
1233
|
+
* @name PutMinersAddresses
|
|
1234
|
+
* @summary Update miner's addresses, but better to use user.conf instead
|
|
1235
|
+
* @request PUT:/miners/addresses
|
|
1236
|
+
*/
|
|
1237
|
+
putMinersAddresses: (data: MinerAddresses, params?: RequestParams) => Promise<HttpResponse<void, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1238
|
+
};
|
|
1239
|
+
events: {
|
|
1240
|
+
/**
|
|
1241
|
+
* No description
|
|
1242
|
+
*
|
|
1243
|
+
* @tags Events
|
|
1244
|
+
* @name GetEventsContractInBlock
|
|
1245
|
+
* @summary Get events for a contract within a block
|
|
1246
|
+
* @request GET:/events/contract/in-block
|
|
1247
|
+
*/
|
|
1248
|
+
getEventsContractInBlock: (query: {
|
|
1249
|
+
block: string;
|
|
1250
|
+
contractAddress: string;
|
|
1251
|
+
}, params?: RequestParams) => Promise<HttpResponse<Events, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1252
|
+
/**
|
|
1253
|
+
* No description
|
|
1254
|
+
*
|
|
1255
|
+
* @tags Events
|
|
1256
|
+
* @name GetEventsContractWithinBlocks
|
|
1257
|
+
* @summary Get events for a contract within a range of blocks
|
|
1258
|
+
* @request GET:/events/contract/within-blocks
|
|
1259
|
+
*/
|
|
1260
|
+
getEventsContractWithinBlocks: (query: {
|
|
1261
|
+
fromBlock: string;
|
|
1262
|
+
toBlock?: string;
|
|
1263
|
+
contractAddress: string;
|
|
1264
|
+
}, params?: RequestParams) => Promise<HttpResponse<Events[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1265
|
+
/**
|
|
1266
|
+
* No description
|
|
1267
|
+
*
|
|
1268
|
+
* @tags Events
|
|
1269
|
+
* @name GetEventsContractWithinTimeInterval
|
|
1270
|
+
* @summary Get events for a contract within a time interval
|
|
1271
|
+
* @request GET:/events/contract/within-time-interval
|
|
1272
|
+
*/
|
|
1273
|
+
getEventsContractWithinTimeInterval: (query: {
|
|
1274
|
+
fromTs: number;
|
|
1275
|
+
toTs?: number;
|
|
1276
|
+
contractAddress: string;
|
|
1277
|
+
}, params?: RequestParams) => Promise<HttpResponse<Events[], BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1278
|
+
/**
|
|
1279
|
+
* No description
|
|
1280
|
+
*
|
|
1281
|
+
* @tags Events
|
|
1282
|
+
* @name GetEventsTxScript
|
|
1283
|
+
* @summary Get events for a TxScript
|
|
1284
|
+
* @request GET:/events/tx-script
|
|
1285
|
+
*/
|
|
1286
|
+
getEventsTxScript: (query: {
|
|
1287
|
+
block: string;
|
|
1288
|
+
txId: string;
|
|
1289
|
+
}, params?: RequestParams) => Promise<HttpResponse<Events, BadRequest | InternalServerError | NotFound | ServiceUnavailable | Unauthorized>>;
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
export {};
|