@alephium/web3 1.0.0 → 1.0.2-rc.2
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/alephium-web3.min.js +1 -1
- package/dist/alephium-web3.min.js.map +1 -1
- package/dist/src/api/api-explorer.d.ts +814 -641
- package/dist/src/api/api-explorer.js +337 -310
- package/dist/src/constants.d.ts +2 -0
- package/dist/src/constants.js +3 -1
- package/package.json +2 -2
- package/src/api/api-explorer.ts +1022 -846
- package/src/constants.ts +2 -0
|
@@ -1,34 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
timestamp: number;
|
|
8
|
-
inputs?: Input[];
|
|
9
|
-
outputs?: Output[];
|
|
1
|
+
/** Val */
|
|
2
|
+
export type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256;
|
|
3
|
+
/** ContractOutput */
|
|
4
|
+
export interface ContractOutput {
|
|
5
|
+
/** @format address */
|
|
6
|
+
address: string;
|
|
10
7
|
/** @format int32 */
|
|
11
|
-
|
|
8
|
+
hint: number;
|
|
9
|
+
/** @format 32-byte-hash */
|
|
10
|
+
spent?: string;
|
|
12
11
|
/** @format uint256 */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
attoAlphAmount: string;
|
|
13
|
+
tokens?: Token[];
|
|
14
|
+
fixedOutput: boolean;
|
|
16
15
|
type: string;
|
|
16
|
+
/** @format 32-byte-hash */
|
|
17
|
+
key: string;
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
/** IntervalType */
|
|
20
|
+
export declare enum IntervalType {
|
|
21
|
+
Daily = "daily",
|
|
22
|
+
Hourly = "hourly",
|
|
23
|
+
Weekly = "weekly"
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
balance: string;
|
|
25
|
+
/** Token */
|
|
26
|
+
export interface Token {
|
|
27
27
|
/** @format uint256 */
|
|
28
|
-
|
|
29
|
-
/** @format
|
|
30
|
-
|
|
28
|
+
amount: string;
|
|
29
|
+
/** @format 32-byte-hash */
|
|
30
|
+
id: string;
|
|
31
|
+
}
|
|
32
|
+
/** ContractLivenessLocation */
|
|
33
|
+
export interface ContractLivenessLocation {
|
|
34
|
+
/** @format block-hash */
|
|
35
|
+
blockHash: string;
|
|
36
|
+
/** @format 32-byte-hash */
|
|
37
|
+
txHash: string;
|
|
38
|
+
/** @format int64 */
|
|
39
|
+
timestamp: number;
|
|
40
|
+
}
|
|
41
|
+
/** NonStandard */
|
|
42
|
+
export interface NonStandard {
|
|
43
|
+
type: string;
|
|
31
44
|
}
|
|
45
|
+
/** AddressTokenBalance */
|
|
32
46
|
export interface AddressTokenBalance {
|
|
33
47
|
/** @format 32-byte-hash */
|
|
34
48
|
tokenId: string;
|
|
@@ -37,365 +51,476 @@ export interface AddressTokenBalance {
|
|
|
37
51
|
/** @format uint256 */
|
|
38
52
|
lockedBalance: string;
|
|
39
53
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
export interface AssetOutput {
|
|
54
|
+
/** OutputRef */
|
|
55
|
+
export interface OutputRef {
|
|
44
56
|
/** @format int32 */
|
|
45
57
|
hint: number;
|
|
46
58
|
/** @format 32-byte-hash */
|
|
47
59
|
key: string;
|
|
48
|
-
|
|
49
|
-
|
|
60
|
+
}
|
|
61
|
+
/** Input */
|
|
62
|
+
export interface Input {
|
|
50
63
|
/** @format address */
|
|
51
|
-
address
|
|
52
|
-
|
|
53
|
-
/** @format int64 */
|
|
54
|
-
lockTime?: number;
|
|
64
|
+
address?: string;
|
|
65
|
+
contractInput: boolean;
|
|
55
66
|
/** @format hex-string */
|
|
56
|
-
|
|
67
|
+
unlockScript?: string;
|
|
68
|
+
/** @format uint256 */
|
|
69
|
+
attoAlphAmount?: string;
|
|
70
|
+
tokens?: Token[];
|
|
57
71
|
/** @format 32-byte-hash */
|
|
58
|
-
|
|
59
|
-
|
|
72
|
+
txHashRef?: string;
|
|
73
|
+
outputRef: OutputRef;
|
|
60
74
|
}
|
|
61
|
-
|
|
62
|
-
|
|
75
|
+
/** PerChainCount */
|
|
76
|
+
export interface PerChainCount {
|
|
77
|
+
/** @format int32 */
|
|
78
|
+
chainFrom: number;
|
|
79
|
+
/** @format int32 */
|
|
80
|
+
chainTo: number;
|
|
81
|
+
/** @format int64 */
|
|
82
|
+
count: number;
|
|
63
83
|
}
|
|
64
|
-
|
|
84
|
+
/** Unknown */
|
|
85
|
+
export interface Unknown {
|
|
86
|
+
id: string;
|
|
87
|
+
type: string;
|
|
88
|
+
}
|
|
89
|
+
/** BlockEntry */
|
|
90
|
+
export interface BlockEntry {
|
|
65
91
|
/** @format block-hash */
|
|
66
|
-
|
|
67
|
-
/** @format int64 */
|
|
68
|
-
timestamp: number;
|
|
92
|
+
parent?: string;
|
|
69
93
|
/** @format group-index */
|
|
70
94
|
chainFrom: number;
|
|
95
|
+
/** @format 32-byte-hash */
|
|
96
|
+
depStateHash: string;
|
|
97
|
+
deps?: string[];
|
|
98
|
+
/** @format hex-string */
|
|
99
|
+
nonce: string;
|
|
100
|
+
version: number;
|
|
101
|
+
/** @format hex-string */
|
|
102
|
+
target: string;
|
|
103
|
+
mainChain: boolean;
|
|
104
|
+
/** @format 32-byte-hash */
|
|
105
|
+
txsHash: string;
|
|
71
106
|
/** @format group-index */
|
|
72
107
|
chainTo: number;
|
|
73
|
-
|
|
74
|
-
|
|
108
|
+
ghostUncles?: GhostUncle[];
|
|
109
|
+
/** @format bigint */
|
|
110
|
+
hashRate: string;
|
|
75
111
|
/** @format int32 */
|
|
76
112
|
txNumber: number;
|
|
77
|
-
|
|
113
|
+
/** @format block-hash */
|
|
114
|
+
hash: string;
|
|
115
|
+
/** @format int32 */
|
|
116
|
+
height: number;
|
|
117
|
+
/** @format int64 */
|
|
118
|
+
timestamp: number;
|
|
119
|
+
}
|
|
120
|
+
/** ContractParent */
|
|
121
|
+
export interface ContractParent {
|
|
122
|
+
/** @format address */
|
|
123
|
+
parent?: string;
|
|
124
|
+
}
|
|
125
|
+
/** ServiceUnavailable */
|
|
126
|
+
export interface ServiceUnavailable {
|
|
127
|
+
detail: string;
|
|
128
|
+
}
|
|
129
|
+
/** ValI256 */
|
|
130
|
+
export interface ValI256 {
|
|
131
|
+
type: string;
|
|
78
132
|
/** @format bigint */
|
|
79
|
-
|
|
133
|
+
value: string;
|
|
80
134
|
}
|
|
135
|
+
/** ContractLiveness */
|
|
81
136
|
export interface ContractLiveness {
|
|
82
137
|
/** @format address */
|
|
83
138
|
parent?: string;
|
|
84
|
-
creation: ContractLivenessLocation;
|
|
85
|
-
destruction?: ContractLivenessLocation;
|
|
86
139
|
interfaceId?: StdInterfaceId;
|
|
140
|
+
destruction?: ContractLivenessLocation;
|
|
141
|
+
creation: ContractLivenessLocation;
|
|
87
142
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
txHash: string;
|
|
143
|
+
/** AssetOutput */
|
|
144
|
+
export interface AssetOutput {
|
|
145
|
+
/** @format address */
|
|
146
|
+
address: string;
|
|
93
147
|
/** @format int64 */
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
export interface ContractOutput {
|
|
148
|
+
lockTime?: number;
|
|
97
149
|
/** @format int32 */
|
|
98
150
|
hint: number;
|
|
99
151
|
/** @format 32-byte-hash */
|
|
100
|
-
|
|
152
|
+
spent?: string;
|
|
101
153
|
/** @format uint256 */
|
|
102
154
|
attoAlphAmount: string;
|
|
103
|
-
/** @format address */
|
|
104
|
-
address: string;
|
|
105
155
|
tokens?: Token[];
|
|
106
|
-
|
|
107
|
-
spent?: string;
|
|
156
|
+
fixedOutput: boolean;
|
|
108
157
|
type: string;
|
|
158
|
+
/** @format hex-string */
|
|
159
|
+
message?: string;
|
|
160
|
+
/** @format 32-byte-hash */
|
|
161
|
+
key: string;
|
|
109
162
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
163
|
+
/** NFT */
|
|
164
|
+
export interface NFT {
|
|
165
|
+
type: string;
|
|
113
166
|
}
|
|
114
|
-
|
|
167
|
+
/** AcceptedTransaction */
|
|
168
|
+
export interface AcceptedTransaction {
|
|
169
|
+
outputs?: Output[];
|
|
115
170
|
/** @format block-hash */
|
|
116
171
|
blockHash: string;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
contractAddress: string;
|
|
121
|
-
/** @format address */
|
|
122
|
-
inputAddress?: string;
|
|
123
|
-
/** @format int32 */
|
|
124
|
-
eventIndex: number;
|
|
125
|
-
fields?: Val[];
|
|
126
|
-
}
|
|
127
|
-
export interface ExplorerInfo {
|
|
128
|
-
releaseVersion: string;
|
|
129
|
-
commit: string;
|
|
130
|
-
/** @format int32 */
|
|
131
|
-
migrationsVersion: number;
|
|
132
|
-
/** @format int64 */
|
|
133
|
-
lastFinalizedInputTime: number;
|
|
134
|
-
}
|
|
135
|
-
export interface FungibleToken {
|
|
172
|
+
scriptSignatures?: string[];
|
|
173
|
+
inputs?: Input[];
|
|
174
|
+
scriptExecutionOk: boolean;
|
|
136
175
|
type: string;
|
|
137
|
-
|
|
138
|
-
|
|
176
|
+
scriptOpt?: string;
|
|
177
|
+
version: number;
|
|
178
|
+
coinbase: boolean;
|
|
179
|
+
inputSignatures?: string[];
|
|
180
|
+
/** @format int32 */
|
|
181
|
+
gasAmount: number;
|
|
182
|
+
networkId: number;
|
|
139
183
|
/** @format 32-byte-hash */
|
|
140
|
-
|
|
141
|
-
symbol: string;
|
|
142
|
-
name: string;
|
|
184
|
+
hash: string;
|
|
143
185
|
/** @format uint256 */
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
export interface Hashrate {
|
|
186
|
+
gasPrice: string;
|
|
147
187
|
/** @format int64 */
|
|
148
188
|
timestamp: number;
|
|
149
|
-
hashrate: number;
|
|
150
|
-
value: number;
|
|
151
189
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/** @format hex-string */
|
|
155
|
-
unlockScript?: string;
|
|
156
|
-
/** @format 32-byte-hash */
|
|
157
|
-
txHashRef?: string;
|
|
158
|
-
/** @format address */
|
|
159
|
-
address?: string;
|
|
190
|
+
/** TokenSupply */
|
|
191
|
+
export interface TokenSupply {
|
|
160
192
|
/** @format uint256 */
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
export interface ListBlocks {
|
|
173
|
-
/** @format int32 */
|
|
174
|
-
total: number;
|
|
175
|
-
blocks?: BlockEntryLite[];
|
|
176
|
-
}
|
|
177
|
-
export interface LogbackValue {
|
|
178
|
-
name: string;
|
|
179
|
-
level: string;
|
|
193
|
+
circulating: string;
|
|
194
|
+
/** @format uint256 */
|
|
195
|
+
total: string;
|
|
196
|
+
/** @format uint256 */
|
|
197
|
+
reserved: string;
|
|
198
|
+
/** @format uint256 */
|
|
199
|
+
maximum: string;
|
|
200
|
+
/** @format uint256 */
|
|
201
|
+
locked: string;
|
|
202
|
+
/** @format int64 */
|
|
203
|
+
timestamp: number;
|
|
180
204
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
205
|
+
/** PendingTransaction */
|
|
206
|
+
export interface PendingTransaction {
|
|
207
|
+
outputs?: Output[];
|
|
184
208
|
/** @format group-index */
|
|
185
209
|
chainFrom: number;
|
|
210
|
+
/** @format int64 */
|
|
211
|
+
lastSeen: number;
|
|
186
212
|
/** @format group-index */
|
|
187
213
|
chainTo: number;
|
|
188
214
|
inputs?: Input[];
|
|
189
|
-
outputs?: Output[];
|
|
190
215
|
/** @format int32 */
|
|
191
216
|
gasAmount: number;
|
|
217
|
+
type: string;
|
|
218
|
+
/** @format 32-byte-hash */
|
|
219
|
+
hash: string;
|
|
192
220
|
/** @format uint256 */
|
|
193
221
|
gasPrice: string;
|
|
194
|
-
/** @format int64 */
|
|
195
|
-
lastSeen: number;
|
|
196
222
|
}
|
|
197
|
-
|
|
198
|
-
|
|
223
|
+
/** TransactionLike */
|
|
224
|
+
export type TransactionLike = AcceptedTransaction | PendingTransaction;
|
|
225
|
+
/** LogbackValue */
|
|
226
|
+
export interface LogbackValue {
|
|
227
|
+
level: string;
|
|
228
|
+
name: string;
|
|
199
229
|
}
|
|
200
|
-
|
|
230
|
+
/** ValU256 */
|
|
231
|
+
export interface ValU256 {
|
|
201
232
|
type: string;
|
|
233
|
+
/** @format uint256 */
|
|
234
|
+
value: string;
|
|
202
235
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
collectionUri: string;
|
|
207
|
-
}
|
|
208
|
-
export interface NFTCollectionWithRoyalty {
|
|
209
|
-
type: string;
|
|
210
|
-
}
|
|
211
|
-
export interface NFTMetadata {
|
|
212
|
-
/** @format 32-byte-hash */
|
|
213
|
-
id: string;
|
|
214
|
-
tokenUri: string;
|
|
215
|
-
/** @format 32-byte-hash */
|
|
216
|
-
collectionId: string;
|
|
217
|
-
/** @format uint256 */
|
|
218
|
-
nftIndex: string;
|
|
219
|
-
}
|
|
220
|
-
export interface NonStandard {
|
|
221
|
-
type: string;
|
|
222
|
-
}
|
|
223
|
-
export interface NotFound {
|
|
224
|
-
detail: string;
|
|
225
|
-
resource: string;
|
|
226
|
-
}
|
|
227
|
-
export type Output = AssetOutput | ContractOutput;
|
|
228
|
-
export interface OutputRef {
|
|
229
|
-
/** @format int32 */
|
|
230
|
-
hint: number;
|
|
231
|
-
/** @format 32-byte-hash */
|
|
232
|
-
key: string;
|
|
233
|
-
}
|
|
234
|
-
export interface PendingTransaction {
|
|
235
|
-
/** @format 32-byte-hash */
|
|
236
|
-
hash: string;
|
|
236
|
+
/** BlockEntryLite */
|
|
237
|
+
export interface BlockEntryLite {
|
|
238
|
+
mainChain: boolean;
|
|
237
239
|
/** @format group-index */
|
|
238
240
|
chainFrom: number;
|
|
239
241
|
/** @format group-index */
|
|
240
242
|
chainTo: number;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
/** @format int32 */
|
|
244
|
-
gasAmount: number;
|
|
245
|
-
/** @format uint256 */
|
|
246
|
-
gasPrice: string;
|
|
247
|
-
/** @format int64 */
|
|
248
|
-
lastSeen: number;
|
|
249
|
-
type: string;
|
|
250
|
-
}
|
|
251
|
-
export interface PerChainCount {
|
|
243
|
+
/** @format bigint */
|
|
244
|
+
hashRate: string;
|
|
252
245
|
/** @format int32 */
|
|
253
|
-
|
|
246
|
+
txNumber: number;
|
|
247
|
+
/** @format block-hash */
|
|
248
|
+
hash: string;
|
|
254
249
|
/** @format int32 */
|
|
255
|
-
|
|
250
|
+
height: number;
|
|
256
251
|
/** @format int64 */
|
|
257
|
-
|
|
252
|
+
timestamp: number;
|
|
258
253
|
}
|
|
259
|
-
|
|
254
|
+
/** PerChainHeight */
|
|
255
|
+
export interface PerChainHeight {
|
|
260
256
|
/** @format int32 */
|
|
261
257
|
chainFrom: number;
|
|
262
258
|
/** @format int32 */
|
|
263
259
|
chainTo: number;
|
|
264
260
|
/** @format int64 */
|
|
265
|
-
duration: number;
|
|
266
|
-
/** @format int64 */
|
|
267
261
|
value: number;
|
|
268
|
-
}
|
|
269
|
-
export interface PerChainHeight {
|
|
270
|
-
/** @format int32 */
|
|
271
|
-
chainFrom: number;
|
|
272
|
-
/** @format int32 */
|
|
273
|
-
chainTo: number;
|
|
274
262
|
/** @format int64 */
|
|
275
263
|
height: number;
|
|
276
|
-
/** @format int64 */
|
|
277
|
-
value: number;
|
|
278
264
|
}
|
|
279
|
-
|
|
265
|
+
/** ValByteVec */
|
|
266
|
+
export interface ValByteVec {
|
|
267
|
+
type: string;
|
|
268
|
+
/** @format hex-string */
|
|
269
|
+
value: string;
|
|
270
|
+
}
|
|
271
|
+
/** TokenStdInterfaceId */
|
|
272
|
+
export declare enum TokenStdInterfaceId {
|
|
273
|
+
Fungible = "fungible",
|
|
274
|
+
NonFungible = "non-fungible",
|
|
275
|
+
NonStandard = "non-standard"
|
|
276
|
+
}
|
|
277
|
+
/** ExplorerInfo */
|
|
278
|
+
export interface ExplorerInfo {
|
|
279
|
+
releaseVersion: string;
|
|
280
|
+
commit: string;
|
|
281
|
+
/** @format int32 */
|
|
282
|
+
migrationsVersion: number;
|
|
280
283
|
/** @format int64 */
|
|
281
|
-
|
|
282
|
-
totalCountPerChain?: PerChainCount[];
|
|
284
|
+
lastFinalizedInputTime: number;
|
|
283
285
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
+
/** ValArray */
|
|
287
|
+
export interface ValArray {
|
|
288
|
+
type: string;
|
|
289
|
+
value: Val[];
|
|
286
290
|
}
|
|
287
|
-
|
|
288
|
-
export interface
|
|
289
|
-
|
|
291
|
+
/** BadRequest */
|
|
292
|
+
export interface BadRequest {
|
|
293
|
+
detail: string;
|
|
290
294
|
}
|
|
291
|
-
|
|
295
|
+
/** Hashrate */
|
|
296
|
+
export interface Hashrate {
|
|
297
|
+
hashrate: number;
|
|
298
|
+
value: number;
|
|
292
299
|
/** @format int64 */
|
|
293
300
|
timestamp: number;
|
|
294
|
-
/** @format bigint */
|
|
295
|
-
amount: string;
|
|
296
301
|
}
|
|
297
|
-
|
|
302
|
+
/** Transaction */
|
|
303
|
+
export interface Transaction {
|
|
304
|
+
outputs?: Output[];
|
|
305
|
+
/** @format block-hash */
|
|
306
|
+
blockHash: string;
|
|
307
|
+
scriptSignatures?: string[];
|
|
308
|
+
inputs?: Input[];
|
|
309
|
+
scriptExecutionOk: boolean;
|
|
310
|
+
scriptOpt?: string;
|
|
311
|
+
version: number;
|
|
312
|
+
coinbase: boolean;
|
|
313
|
+
inputSignatures?: string[];
|
|
314
|
+
/** @format int32 */
|
|
315
|
+
gasAmount: number;
|
|
316
|
+
networkId: number;
|
|
317
|
+
/** @format 32-byte-hash */
|
|
318
|
+
hash: string;
|
|
319
|
+
/** @format uint256 */
|
|
320
|
+
gasPrice: string;
|
|
298
321
|
/** @format int64 */
|
|
299
322
|
timestamp: number;
|
|
300
|
-
/** @format int64 */
|
|
301
|
-
totalCountAllChains: number;
|
|
302
|
-
}
|
|
303
|
-
export interface TimedPrices {
|
|
304
|
-
timestamps?: number[];
|
|
305
|
-
prices?: number[];
|
|
306
323
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
/** @format uint256 */
|
|
311
|
-
amount: string;
|
|
324
|
+
/** FungibleToken */
|
|
325
|
+
export interface FungibleToken {
|
|
326
|
+
type: string;
|
|
312
327
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
328
|
+
/** GhostUncle */
|
|
329
|
+
export interface GhostUncle {
|
|
330
|
+
/** @format block-hash */
|
|
331
|
+
blockHash: string;
|
|
332
|
+
/** @format address */
|
|
333
|
+
miner: string;
|
|
318
334
|
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
NonStandard = "non-standard"
|
|
335
|
+
/** NFTCollectionWithRoyalty */
|
|
336
|
+
export interface NFTCollectionWithRoyalty {
|
|
337
|
+
type: string;
|
|
323
338
|
}
|
|
324
|
-
|
|
339
|
+
/** PerChainTimedCount */
|
|
340
|
+
export interface PerChainTimedCount {
|
|
341
|
+
totalCountPerChain?: PerChainCount[];
|
|
325
342
|
/** @format int64 */
|
|
326
343
|
timestamp: number;
|
|
327
|
-
/** @format uint256 */
|
|
328
|
-
total: string;
|
|
329
|
-
/** @format uint256 */
|
|
330
|
-
circulating: string;
|
|
331
|
-
/** @format uint256 */
|
|
332
|
-
reserved: string;
|
|
333
|
-
/** @format uint256 */
|
|
334
|
-
locked: string;
|
|
335
|
-
/** @format uint256 */
|
|
336
|
-
maximum: string;
|
|
337
344
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
/** @format
|
|
342
|
-
|
|
345
|
+
/** MempoolTransaction */
|
|
346
|
+
export interface MempoolTransaction {
|
|
347
|
+
outputs?: Output[];
|
|
348
|
+
/** @format group-index */
|
|
349
|
+
chainFrom: number;
|
|
343
350
|
/** @format int64 */
|
|
344
|
-
|
|
351
|
+
lastSeen: number;
|
|
352
|
+
/** @format group-index */
|
|
353
|
+
chainTo: number;
|
|
345
354
|
inputs?: Input[];
|
|
346
|
-
outputs?: Output[];
|
|
347
355
|
/** @format int32 */
|
|
348
356
|
gasAmount: number;
|
|
357
|
+
/** @format 32-byte-hash */
|
|
358
|
+
hash: string;
|
|
349
359
|
/** @format uint256 */
|
|
350
360
|
gasPrice: string;
|
|
351
|
-
scriptExecutionOk: boolean;
|
|
352
|
-
coinbase: boolean;
|
|
353
361
|
}
|
|
354
|
-
export
|
|
355
|
-
|
|
362
|
+
export declare enum TokensWithPrice {
|
|
363
|
+
WETH = "WETH",
|
|
364
|
+
ALPH = "ALPH",
|
|
365
|
+
USDT = "USDT",
|
|
366
|
+
AYIN = "AYIN",
|
|
367
|
+
DAI = "DAI",
|
|
368
|
+
USDC = "USDC",
|
|
369
|
+
WBTC = "WBTC"
|
|
370
|
+
}
|
|
371
|
+
export declare enum MaxSizeTokens {
|
|
372
|
+
Value80 = 80
|
|
373
|
+
}
|
|
374
|
+
/** NFTCollection */
|
|
375
|
+
export interface NFTCollection {
|
|
376
|
+
type: string;
|
|
377
|
+
}
|
|
378
|
+
export declare enum MaxSizeAddressesForTokens {
|
|
379
|
+
Value80 = 80
|
|
380
|
+
}
|
|
381
|
+
/** InternalServerError */
|
|
382
|
+
export interface InternalServerError {
|
|
356
383
|
detail: string;
|
|
357
384
|
}
|
|
358
|
-
|
|
385
|
+
/** TimedPrices */
|
|
386
|
+
export interface TimedPrices {
|
|
387
|
+
timestamps?: number[];
|
|
388
|
+
prices?: number[];
|
|
389
|
+
}
|
|
390
|
+
/** TimedCount */
|
|
391
|
+
export interface TimedCount {
|
|
392
|
+
/** @format int64 */
|
|
393
|
+
totalCountAllChains: number;
|
|
394
|
+
/** @format int64 */
|
|
395
|
+
timestamp: number;
|
|
396
|
+
}
|
|
397
|
+
/** NFTMetadata */
|
|
398
|
+
export interface NFTMetadata {
|
|
399
|
+
/** @format uint256 */
|
|
400
|
+
nftIndex: string;
|
|
401
|
+
tokenUri: string;
|
|
402
|
+
/** @format 32-byte-hash */
|
|
359
403
|
id: string;
|
|
360
|
-
|
|
404
|
+
/** @format 32-byte-hash */
|
|
405
|
+
collectionId: string;
|
|
361
406
|
}
|
|
362
|
-
|
|
363
|
-
export interface
|
|
407
|
+
/** PerChainDuration */
|
|
408
|
+
export interface PerChainDuration {
|
|
409
|
+
/** @format int64 */
|
|
410
|
+
duration: number;
|
|
411
|
+
/** @format int32 */
|
|
412
|
+
chainFrom: number;
|
|
413
|
+
/** @format int32 */
|
|
414
|
+
chainTo: number;
|
|
415
|
+
/** @format int64 */
|
|
416
|
+
value: number;
|
|
417
|
+
}
|
|
418
|
+
/** StdInterfaceId */
|
|
419
|
+
export type StdInterfaceId = FungibleToken | NFT | NFTCollection | NFTCollectionWithRoyalty | NonStandard | Unknown;
|
|
420
|
+
/** Output */
|
|
421
|
+
export type Output = AssetOutput | ContractOutput;
|
|
422
|
+
/** Unauthorized */
|
|
423
|
+
export interface Unauthorized {
|
|
424
|
+
detail: string;
|
|
425
|
+
}
|
|
426
|
+
/** NFTCollectionMetadata */
|
|
427
|
+
export interface NFTCollectionMetadata {
|
|
428
|
+
collectionUri: string;
|
|
364
429
|
/** @format address */
|
|
365
|
-
|
|
366
|
-
type: string;
|
|
430
|
+
address: string;
|
|
367
431
|
}
|
|
368
|
-
|
|
369
|
-
|
|
432
|
+
/** ValAddress */
|
|
433
|
+
export interface ValAddress {
|
|
370
434
|
type: string;
|
|
435
|
+
/** @format address */
|
|
436
|
+
value: string;
|
|
371
437
|
}
|
|
438
|
+
/** ValBool */
|
|
372
439
|
export interface ValBool {
|
|
373
|
-
value: boolean;
|
|
374
440
|
type: string;
|
|
441
|
+
value: boolean;
|
|
375
442
|
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
443
|
+
/** FungibleTokenMetadata */
|
|
444
|
+
export interface FungibleTokenMetadata {
|
|
445
|
+
symbol: string;
|
|
446
|
+
/** @format uint256 */
|
|
447
|
+
decimals: string;
|
|
448
|
+
name: string;
|
|
449
|
+
/** @format 32-byte-hash */
|
|
450
|
+
id: string;
|
|
380
451
|
}
|
|
381
|
-
export
|
|
382
|
-
|
|
383
|
-
value: string;
|
|
384
|
-
type: string;
|
|
452
|
+
export declare enum MaxSizeAddresses {
|
|
453
|
+
Value80 = 80
|
|
385
454
|
}
|
|
386
|
-
export
|
|
455
|
+
export declare enum Currencies {
|
|
456
|
+
Btc = "btc",
|
|
457
|
+
Eth = "eth",
|
|
458
|
+
Usd = "usd",
|
|
459
|
+
Eur = "eur",
|
|
460
|
+
Chf = "chf",
|
|
461
|
+
Gbp = "gbp",
|
|
462
|
+
Idr = "idr",
|
|
463
|
+
Vnd = "vnd",
|
|
464
|
+
Rub = "rub",
|
|
465
|
+
Try = "try",
|
|
466
|
+
Cad = "cad",
|
|
467
|
+
Aud = "aud"
|
|
468
|
+
}
|
|
469
|
+
/** AddressInfo */
|
|
470
|
+
export interface AddressInfo {
|
|
387
471
|
/** @format uint256 */
|
|
388
|
-
|
|
389
|
-
|
|
472
|
+
balance: string;
|
|
473
|
+
/** @format uint256 */
|
|
474
|
+
lockedBalance: string;
|
|
475
|
+
/** @format int32 */
|
|
476
|
+
txNumber: number;
|
|
390
477
|
}
|
|
391
|
-
|
|
392
|
-
|
|
478
|
+
/** AddressBalance */
|
|
479
|
+
export interface AddressBalance {
|
|
480
|
+
/** @format uint256 */
|
|
481
|
+
balance: string;
|
|
482
|
+
/** @format uint256 */
|
|
483
|
+
lockedBalance: string;
|
|
484
|
+
}
|
|
485
|
+
/** AmountHistory */
|
|
486
|
+
export interface AmountHistory {
|
|
487
|
+
amountHistory?: string[][];
|
|
488
|
+
}
|
|
489
|
+
/** Event */
|
|
490
|
+
export interface Event {
|
|
491
|
+
/** @format block-hash */
|
|
492
|
+
blockHash: string;
|
|
493
|
+
/** @format address */
|
|
494
|
+
inputAddress?: string;
|
|
495
|
+
/** @format address */
|
|
496
|
+
contractAddress: string;
|
|
497
|
+
/** @format int32 */
|
|
498
|
+
eventIndex: number;
|
|
499
|
+
fields?: Val[];
|
|
500
|
+
/** @format 32-byte-hash */
|
|
501
|
+
txHash: string;
|
|
502
|
+
}
|
|
503
|
+
/** ListBlocks */
|
|
504
|
+
export interface ListBlocks {
|
|
505
|
+
/** @format int32 */
|
|
506
|
+
total: number;
|
|
507
|
+
blocks?: BlockEntryLite[];
|
|
508
|
+
}
|
|
509
|
+
/** SubContracts */
|
|
510
|
+
export interface SubContracts {
|
|
511
|
+
subContracts?: string[];
|
|
393
512
|
}
|
|
394
|
-
|
|
395
|
-
|
|
513
|
+
/** TokenInfo */
|
|
514
|
+
export interface TokenInfo {
|
|
515
|
+
/** Raw interface id, e.g. 0001 */
|
|
516
|
+
stdInterfaceId?: TokenStdInterfaceId | string;
|
|
517
|
+
/** @format 32-byte-hash */
|
|
518
|
+
token: string;
|
|
396
519
|
}
|
|
397
|
-
|
|
398
|
-
|
|
520
|
+
/** NotFound */
|
|
521
|
+
export interface NotFound {
|
|
522
|
+
resource: string;
|
|
523
|
+
detail: string;
|
|
399
524
|
}
|
|
400
525
|
import 'cross-fetch/polyfill';
|
|
401
526
|
export type QueryParamsType = Record<string | number, any>;
|
|
@@ -461,113 +586,120 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
461
586
|
* @version 1.0
|
|
462
587
|
*/
|
|
463
588
|
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
464
|
-
|
|
589
|
+
contracts: {
|
|
465
590
|
/**
|
|
466
|
-
* @description
|
|
591
|
+
* @description Get sub contract addresses
|
|
467
592
|
*
|
|
468
|
-
* @tags
|
|
469
|
-
* @name
|
|
470
|
-
* @request GET:/
|
|
593
|
+
* @tags Contracts
|
|
594
|
+
* @name GetContractsContractAddressSubContracts
|
|
595
|
+
* @request GET:/contracts/{contract_address}/sub-contracts
|
|
471
596
|
*/
|
|
472
|
-
|
|
597
|
+
getContractsContractAddressSubContracts: (contractAddress: string, query?: {
|
|
473
598
|
/**
|
|
474
599
|
* Page number
|
|
475
600
|
* @format int32
|
|
601
|
+
* @min 1
|
|
476
602
|
*/
|
|
477
603
|
page?: number;
|
|
478
604
|
/**
|
|
479
605
|
* Number of items per page
|
|
480
606
|
* @format int32
|
|
607
|
+
* @min 0
|
|
608
|
+
* @max 100
|
|
481
609
|
*/
|
|
482
610
|
limit?: number;
|
|
483
|
-
|
|
484
|
-
reverse?: boolean;
|
|
485
|
-
}, params?: RequestParams) => Promise<ListBlocks>;
|
|
611
|
+
}, params?: RequestParams) => Promise<SubContracts>;
|
|
486
612
|
/**
|
|
487
|
-
* @description Get
|
|
613
|
+
* @description Get contract liveness
|
|
488
614
|
*
|
|
489
|
-
* @tags
|
|
490
|
-
* @name
|
|
491
|
-
* @request GET:/
|
|
615
|
+
* @tags Contracts
|
|
616
|
+
* @name GetContractsContractAddressCurrentLiveness
|
|
617
|
+
* @request GET:/contracts/{contract_address}/current-liveness
|
|
492
618
|
*/
|
|
493
|
-
|
|
619
|
+
getContractsContractAddressCurrentLiveness: (contractAddress: string, params?: RequestParams) => Promise<ContractLiveness>;
|
|
494
620
|
/**
|
|
495
|
-
* @description Get
|
|
621
|
+
* @description Get contract parent address if exist
|
|
496
622
|
*
|
|
497
|
-
* @tags
|
|
498
|
-
* @name
|
|
499
|
-
* @request GET:/
|
|
623
|
+
* @tags Contracts
|
|
624
|
+
* @name GetContractsContractAddressParent
|
|
625
|
+
* @request GET:/contracts/{contract_address}/parent
|
|
500
626
|
*/
|
|
501
|
-
|
|
627
|
+
getContractsContractAddressParent: (contractAddress: string, params?: RequestParams) => Promise<ContractParent>;
|
|
628
|
+
};
|
|
629
|
+
addresses: {
|
|
630
|
+
/**
|
|
631
|
+
* @description Are the addresses used (at least 1 transaction)
|
|
632
|
+
*
|
|
633
|
+
* @tags Addresses, Addresses
|
|
634
|
+
* @name PostAddressesUsed
|
|
635
|
+
* @request POST:/addresses/used
|
|
636
|
+
*/
|
|
637
|
+
postAddressesUsed: (data?: string[], params?: RequestParams) => Promise<boolean[]>;
|
|
638
|
+
/**
|
|
639
|
+
* No description
|
|
640
|
+
*
|
|
641
|
+
* @tags Addresses
|
|
642
|
+
* @name GetAddressesAddressExportTransactionsCsv
|
|
643
|
+
* @request GET:/addresses/{address}/export-transactions/csv
|
|
644
|
+
*/
|
|
645
|
+
getAddressesAddressExportTransactionsCsv: (address: string, query: {
|
|
502
646
|
/**
|
|
503
|
-
*
|
|
504
|
-
* @
|
|
647
|
+
* @format int64
|
|
648
|
+
* @min 0
|
|
505
649
|
*/
|
|
506
|
-
|
|
650
|
+
fromTs: number;
|
|
507
651
|
/**
|
|
508
|
-
*
|
|
509
|
-
* @
|
|
652
|
+
* @format int64
|
|
653
|
+
* @min 0
|
|
510
654
|
*/
|
|
511
|
-
|
|
512
|
-
}, params?: RequestParams) => Promise<
|
|
513
|
-
};
|
|
514
|
-
transactions: {
|
|
655
|
+
toTs: number;
|
|
656
|
+
}, params?: RequestParams) => Promise<string>;
|
|
515
657
|
/**
|
|
516
|
-
* @description Get
|
|
658
|
+
* @description Get address balance
|
|
517
659
|
*
|
|
518
|
-
* @tags
|
|
519
|
-
* @name
|
|
520
|
-
* @request GET:/
|
|
660
|
+
* @tags Addresses
|
|
661
|
+
* @name GetAddressesAddressBalance
|
|
662
|
+
* @request GET:/addresses/{address}/balance
|
|
521
663
|
*/
|
|
522
|
-
|
|
523
|
-
};
|
|
524
|
-
addresses: {
|
|
664
|
+
getAddressesAddressBalance: (address: string, params?: RequestParams) => Promise<AddressBalance>;
|
|
525
665
|
/**
|
|
526
|
-
* @description
|
|
666
|
+
* @description List mempool transactions of a given address
|
|
527
667
|
*
|
|
528
668
|
* @tags Addresses
|
|
529
|
-
* @name
|
|
530
|
-
* @request GET:/addresses/{address}
|
|
669
|
+
* @name GetAddressesAddressMempoolTransactions
|
|
670
|
+
* @request GET:/addresses/{address}/mempool/transactions
|
|
531
671
|
*/
|
|
532
|
-
|
|
672
|
+
getAddressesAddressMempoolTransactions: (address: string, params?: RequestParams) => Promise<MempoolTransaction[]>;
|
|
533
673
|
/**
|
|
534
|
-
* @description List
|
|
674
|
+
* @description List address tokens
|
|
535
675
|
*
|
|
536
676
|
* @tags Addresses
|
|
537
|
-
* @name
|
|
538
|
-
* @request GET:/addresses/{address}/transactions
|
|
677
|
+
* @name GetAddressesAddressTokensTokenIdTransactions
|
|
678
|
+
* @request GET:/addresses/{address}/tokens/{token_id}/transactions
|
|
539
679
|
*/
|
|
540
|
-
|
|
680
|
+
getAddressesAddressTokensTokenIdTransactions: (address: string, tokenId: string, query?: {
|
|
541
681
|
/**
|
|
542
682
|
* Page number
|
|
543
683
|
* @format int32
|
|
684
|
+
* @min 1
|
|
544
685
|
*/
|
|
545
686
|
page?: number;
|
|
546
687
|
/**
|
|
547
688
|
* Number of items per page
|
|
548
689
|
* @format int32
|
|
690
|
+
* @min 0
|
|
691
|
+
* @max 100
|
|
549
692
|
*/
|
|
550
693
|
limit?: number;
|
|
551
694
|
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
552
695
|
/**
|
|
553
|
-
* @description
|
|
696
|
+
* @description Get total transactions of a given address
|
|
554
697
|
*
|
|
555
698
|
* @tags Addresses
|
|
556
|
-
* @name
|
|
557
|
-
* @request
|
|
699
|
+
* @name GetAddressesAddressTotalTransactions
|
|
700
|
+
* @request GET:/addresses/{address}/total-transactions
|
|
558
701
|
*/
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* Page number
|
|
562
|
-
* @format int32
|
|
563
|
-
*/
|
|
564
|
-
page?: number;
|
|
565
|
-
/**
|
|
566
|
-
* Number of items per page
|
|
567
|
-
* @format int32
|
|
568
|
-
*/
|
|
569
|
-
limit?: number;
|
|
570
|
-
}, data?: string[], params?: RequestParams) => Promise<Transaction[]>;
|
|
702
|
+
getAddressesAddressTotalTransactions: (address: string, params?: RequestParams) => Promise<number>;
|
|
571
703
|
/**
|
|
572
704
|
* @description List transactions of a given address within a time-range
|
|
573
705
|
*
|
|
@@ -589,128 +721,90 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
589
721
|
/**
|
|
590
722
|
* Page number
|
|
591
723
|
* @format int32
|
|
724
|
+
* @min 1
|
|
592
725
|
*/
|
|
593
726
|
page?: number;
|
|
594
727
|
/**
|
|
595
728
|
* Number of items per page
|
|
596
729
|
* @format int32
|
|
730
|
+
* @min 0
|
|
731
|
+
* @max 1000
|
|
597
732
|
*/
|
|
598
733
|
limit?: number;
|
|
599
734
|
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
600
735
|
/**
|
|
601
|
-
* @description
|
|
602
|
-
*
|
|
603
|
-
* @tags Addresses
|
|
604
|
-
* @name GetAddressesAddressTotalTransactions
|
|
605
|
-
* @request GET:/addresses/{address}/total-transactions
|
|
606
|
-
*/
|
|
607
|
-
getAddressesAddressTotalTransactions: (address: string, params?: RequestParams) => Promise<number>;
|
|
608
|
-
/**
|
|
609
|
-
* @description List mempool transactions of a given address
|
|
610
|
-
*
|
|
611
|
-
* @tags Addresses
|
|
612
|
-
* @name GetAddressesAddressMempoolTransactions
|
|
613
|
-
* @request GET:/addresses/{address}/mempool/transactions
|
|
614
|
-
*/
|
|
615
|
-
getAddressesAddressMempoolTransactions: (address: string, params?: RequestParams) => Promise<MempoolTransaction[]>;
|
|
616
|
-
/**
|
|
617
|
-
* @description Get address balance
|
|
618
|
-
*
|
|
619
|
-
* @tags Addresses
|
|
620
|
-
* @name GetAddressesAddressBalance
|
|
621
|
-
* @request GET:/addresses/{address}/balance
|
|
622
|
-
*/
|
|
623
|
-
getAddressesAddressBalance: (address: string, params?: RequestParams) => Promise<AddressBalance>;
|
|
624
|
-
/**
|
|
625
|
-
* @description List address tokens
|
|
736
|
+
* @description List transactions of a given address
|
|
626
737
|
*
|
|
627
738
|
* @tags Addresses
|
|
628
|
-
* @name
|
|
629
|
-
* @request GET:/addresses/{address}/
|
|
630
|
-
* @deprecated
|
|
739
|
+
* @name GetAddressesAddressTransactions
|
|
740
|
+
* @request GET:/addresses/{address}/transactions
|
|
631
741
|
*/
|
|
632
|
-
|
|
742
|
+
getAddressesAddressTransactions: (address: string, query?: {
|
|
633
743
|
/**
|
|
634
744
|
* Page number
|
|
635
745
|
* @format int32
|
|
746
|
+
* @min 1
|
|
636
747
|
*/
|
|
637
748
|
page?: number;
|
|
638
749
|
/**
|
|
639
750
|
* Number of items per page
|
|
640
751
|
* @format int32
|
|
752
|
+
* @min 0
|
|
753
|
+
* @max 100
|
|
641
754
|
*/
|
|
642
755
|
limit?: number;
|
|
643
|
-
}, params?: RequestParams) => Promise<
|
|
756
|
+
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
644
757
|
/**
|
|
645
|
-
*
|
|
758
|
+
* No description
|
|
646
759
|
*
|
|
647
760
|
* @tags Addresses
|
|
648
|
-
* @name
|
|
649
|
-
* @request GET:/addresses/{address}/
|
|
761
|
+
* @name GetAddressesAddressAmountHistory
|
|
762
|
+
* @request GET:/addresses/{address}/amount-history
|
|
650
763
|
*/
|
|
651
|
-
|
|
764
|
+
getAddressesAddressAmountHistory: (address: string, query: {
|
|
652
765
|
/**
|
|
653
|
-
*
|
|
654
|
-
* @
|
|
766
|
+
* @format int64
|
|
767
|
+
* @min 0
|
|
655
768
|
*/
|
|
656
|
-
|
|
769
|
+
fromTs: number;
|
|
657
770
|
/**
|
|
658
|
-
*
|
|
659
|
-
* @
|
|
771
|
+
* @format int64
|
|
772
|
+
* @min 0
|
|
660
773
|
*/
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
* @description Get address balance of given token
|
|
665
|
-
*
|
|
666
|
-
* @tags Addresses
|
|
667
|
-
* @name GetAddressesAddressTokensTokenIdBalance
|
|
668
|
-
* @request GET:/addresses/{address}/tokens/{token_id}/balance
|
|
669
|
-
*/
|
|
670
|
-
getAddressesAddressTokensTokenIdBalance: (address: string, tokenId: string, params?: RequestParams) => Promise<AddressTokenBalance>;
|
|
671
|
-
/**
|
|
672
|
-
* @description Get public key of p2pkh addresses, the address needs to have at least one input.
|
|
673
|
-
*
|
|
674
|
-
* @tags Addresses
|
|
675
|
-
* @name GetAddressesAddressPublicKey
|
|
676
|
-
* @request GET:/addresses/{address}/public-key
|
|
677
|
-
*/
|
|
678
|
-
getAddressesAddressPublicKey: (address: string, params?: RequestParams) => Promise<string>;
|
|
774
|
+
toTs: number;
|
|
775
|
+
'interval-type': IntervalType;
|
|
776
|
+
}, params?: RequestParams) => Promise<AmountHistory>;
|
|
679
777
|
/**
|
|
680
|
-
* @description
|
|
778
|
+
* @description List transactions for given addresses
|
|
681
779
|
*
|
|
682
780
|
* @tags Addresses
|
|
683
|
-
* @name
|
|
684
|
-
* @request
|
|
781
|
+
* @name PostAddressesTransactions
|
|
782
|
+
* @request POST:/addresses/transactions
|
|
685
783
|
*/
|
|
686
|
-
|
|
784
|
+
postAddressesTransactions: (query?: {
|
|
687
785
|
/**
|
|
688
786
|
* Page number
|
|
689
787
|
* @format int32
|
|
788
|
+
* @min 1
|
|
690
789
|
*/
|
|
691
790
|
page?: number;
|
|
692
791
|
/**
|
|
693
792
|
* Number of items per page
|
|
694
793
|
* @format int32
|
|
794
|
+
* @min 0
|
|
795
|
+
* @max 100
|
|
695
796
|
*/
|
|
696
797
|
limit?: number;
|
|
697
|
-
}, params?: RequestParams) => Promise<
|
|
698
|
-
/**
|
|
699
|
-
* @description Are the addresses used (at least 1 transaction)
|
|
700
|
-
*
|
|
701
|
-
* @tags Addresses, Addresses
|
|
702
|
-
* @name PostAddressesUsed
|
|
703
|
-
* @request POST:/addresses/used
|
|
704
|
-
*/
|
|
705
|
-
postAddressesUsed: (data?: string[], params?: RequestParams) => Promise<boolean[]>;
|
|
798
|
+
}, data?: string[], params?: RequestParams) => Promise<Transaction[]>;
|
|
706
799
|
/**
|
|
707
800
|
* No description
|
|
708
801
|
*
|
|
709
802
|
* @tags Addresses
|
|
710
|
-
* @name
|
|
711
|
-
* @request GET:/addresses/{address}/
|
|
803
|
+
* @name GetAddressesAddressAmountHistoryDeprecated
|
|
804
|
+
* @request GET:/addresses/{address}/amount-history-DEPRECATED
|
|
805
|
+
* @deprecated
|
|
712
806
|
*/
|
|
713
|
-
|
|
807
|
+
getAddressesAddressAmountHistoryDeprecated: (address: string, query: {
|
|
714
808
|
/**
|
|
715
809
|
* @format int64
|
|
716
810
|
* @min 0
|
|
@@ -721,66 +815,79 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
721
815
|
* @min 0
|
|
722
816
|
*/
|
|
723
817
|
toTs: number;
|
|
818
|
+
'interval-type': IntervalType;
|
|
724
819
|
}, params?: RequestParams) => Promise<string>;
|
|
725
820
|
/**
|
|
726
|
-
*
|
|
821
|
+
* @description List address tokens
|
|
727
822
|
*
|
|
728
823
|
* @tags Addresses
|
|
729
|
-
* @name
|
|
730
|
-
* @request GET:/addresses/{address}/
|
|
824
|
+
* @name GetAddressesAddressTokens
|
|
825
|
+
* @request GET:/addresses/{address}/tokens
|
|
731
826
|
* @deprecated
|
|
732
827
|
*/
|
|
733
|
-
|
|
828
|
+
getAddressesAddressTokens: (address: string, query?: {
|
|
734
829
|
/**
|
|
735
|
-
*
|
|
736
|
-
* @
|
|
830
|
+
* Page number
|
|
831
|
+
* @format int32
|
|
832
|
+
* @min 1
|
|
737
833
|
*/
|
|
738
|
-
|
|
834
|
+
page?: number;
|
|
739
835
|
/**
|
|
740
|
-
*
|
|
836
|
+
* Number of items per page
|
|
837
|
+
* @format int32
|
|
741
838
|
* @min 0
|
|
839
|
+
* @max 100
|
|
742
840
|
*/
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}, params?: RequestParams) => Promise<string>;
|
|
841
|
+
limit?: number;
|
|
842
|
+
}, params?: RequestParams) => Promise<string[]>;
|
|
746
843
|
/**
|
|
747
|
-
*
|
|
844
|
+
* @description Get address tokens with balance
|
|
748
845
|
*
|
|
749
846
|
* @tags Addresses
|
|
750
|
-
* @name
|
|
751
|
-
* @request GET:/addresses/{address}/
|
|
847
|
+
* @name GetAddressesAddressTokensBalance
|
|
848
|
+
* @request GET:/addresses/{address}/tokens-balance
|
|
752
849
|
*/
|
|
753
|
-
|
|
850
|
+
getAddressesAddressTokensBalance: (address: string, query?: {
|
|
754
851
|
/**
|
|
755
|
-
*
|
|
756
|
-
* @
|
|
852
|
+
* Page number
|
|
853
|
+
* @format int32
|
|
854
|
+
* @min 1
|
|
757
855
|
*/
|
|
758
|
-
|
|
856
|
+
page?: number;
|
|
759
857
|
/**
|
|
760
|
-
*
|
|
858
|
+
* Number of items per page
|
|
859
|
+
* @format int32
|
|
761
860
|
* @min 0
|
|
861
|
+
* @max 100
|
|
762
862
|
*/
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
}, params?: RequestParams) => Promise<AmountHistory>;
|
|
766
|
-
};
|
|
767
|
-
infos: {
|
|
863
|
+
limit?: number;
|
|
864
|
+
}, params?: RequestParams) => Promise<AddressTokenBalance[]>;
|
|
768
865
|
/**
|
|
769
|
-
* @description Get
|
|
866
|
+
* @description Get address balance of given token
|
|
770
867
|
*
|
|
771
|
-
* @tags
|
|
772
|
-
* @name
|
|
773
|
-
* @request GET:/
|
|
868
|
+
* @tags Addresses
|
|
869
|
+
* @name GetAddressesAddressTokensTokenIdBalance
|
|
870
|
+
* @request GET:/addresses/{address}/tokens/{token_id}/balance
|
|
774
871
|
*/
|
|
775
|
-
|
|
872
|
+
getAddressesAddressTokensTokenIdBalance: (address: string, tokenId: string, params?: RequestParams) => Promise<AddressTokenBalance>;
|
|
776
873
|
/**
|
|
777
|
-
* @description
|
|
874
|
+
* @description Get address information
|
|
778
875
|
*
|
|
779
|
-
* @tags
|
|
780
|
-
* @name
|
|
781
|
-
* @request GET:/
|
|
876
|
+
* @tags Addresses
|
|
877
|
+
* @name GetAddressesAddress
|
|
878
|
+
* @request GET:/addresses/{address}
|
|
782
879
|
*/
|
|
783
|
-
|
|
880
|
+
getAddressesAddress: (address: string, params?: RequestParams) => Promise<AddressInfo>;
|
|
881
|
+
/**
|
|
882
|
+
* @description Get public key of p2pkh addresses, the address needs to have at least one input.
|
|
883
|
+
*
|
|
884
|
+
* @tags Addresses
|
|
885
|
+
* @name GetAddressesAddressPublicKey
|
|
886
|
+
* @request GET:/addresses/{address}/public-key
|
|
887
|
+
*/
|
|
888
|
+
getAddressesAddressPublicKey: (address: string, params?: RequestParams) => Promise<string>;
|
|
889
|
+
};
|
|
890
|
+
infos: {
|
|
784
891
|
/**
|
|
785
892
|
* @description Get token supply list
|
|
786
893
|
*
|
|
@@ -792,46 +899,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
792
899
|
/**
|
|
793
900
|
* Page number
|
|
794
901
|
* @format int32
|
|
902
|
+
* @min 1
|
|
795
903
|
*/
|
|
796
904
|
page?: number;
|
|
797
905
|
/**
|
|
798
906
|
* Number of items per page
|
|
799
907
|
* @format int32
|
|
908
|
+
* @min 0
|
|
909
|
+
* @max 100
|
|
800
910
|
*/
|
|
801
911
|
limit?: number;
|
|
802
912
|
}, params?: RequestParams) => Promise<TokenSupply[]>;
|
|
803
913
|
/**
|
|
804
|
-
* @description Get the ALPH
|
|
914
|
+
* @description Get the ALPH locked supply
|
|
805
915
|
*
|
|
806
916
|
* @tags Infos
|
|
807
|
-
* @name
|
|
808
|
-
* @request GET:/infos/supply/
|
|
917
|
+
* @name GetInfosSupplyLockedAlph
|
|
918
|
+
* @request GET:/infos/supply/locked-alph
|
|
809
919
|
*/
|
|
810
|
-
|
|
920
|
+
getInfosSupplyLockedAlph: (params?: RequestParams) => Promise<number>;
|
|
811
921
|
/**
|
|
812
|
-
* @description Get
|
|
922
|
+
* @description Get explorer informations
|
|
813
923
|
*
|
|
814
924
|
* @tags Infos
|
|
815
|
-
* @name
|
|
816
|
-
* @request GET:/infos
|
|
925
|
+
* @name GetInfos
|
|
926
|
+
* @request GET:/infos
|
|
817
927
|
*/
|
|
818
|
-
|
|
928
|
+
getInfos: (params?: RequestParams) => Promise<ExplorerInfo>;
|
|
819
929
|
/**
|
|
820
|
-
* @description Get the ALPH
|
|
930
|
+
* @description Get the ALPH circulating supply
|
|
821
931
|
*
|
|
822
932
|
* @tags Infos
|
|
823
|
-
* @name
|
|
824
|
-
* @request GET:/infos/supply/
|
|
933
|
+
* @name GetInfosSupplyCirculatingAlph
|
|
934
|
+
* @request GET:/infos/supply/circulating-alph
|
|
825
935
|
*/
|
|
826
|
-
|
|
936
|
+
getInfosSupplyCirculatingAlph: (params?: RequestParams) => Promise<number>;
|
|
827
937
|
/**
|
|
828
|
-
* @description Get the ALPH
|
|
938
|
+
* @description Get the ALPH total supply
|
|
829
939
|
*
|
|
830
940
|
* @tags Infos
|
|
831
|
-
* @name
|
|
832
|
-
* @request GET:/infos/supply/
|
|
941
|
+
* @name GetInfosSupplyTotalAlph
|
|
942
|
+
* @request GET:/infos/supply/total-alph
|
|
833
943
|
*/
|
|
834
|
-
|
|
944
|
+
getInfosSupplyTotalAlph: (params?: RequestParams) => Promise<number>;
|
|
835
945
|
/**
|
|
836
946
|
* @description Get the total number of transactions
|
|
837
947
|
*
|
|
@@ -840,6 +950,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
840
950
|
* @request GET:/infos/total-transactions
|
|
841
951
|
*/
|
|
842
952
|
getInfosTotalTransactions: (params?: RequestParams) => Promise<number>;
|
|
953
|
+
/**
|
|
954
|
+
* @description Get the ALPH reserved supply
|
|
955
|
+
*
|
|
956
|
+
* @tags Infos
|
|
957
|
+
* @name GetInfosSupplyReservedAlph
|
|
958
|
+
* @request GET:/infos/supply/reserved-alph
|
|
959
|
+
*/
|
|
960
|
+
getInfosSupplyReservedAlph: (params?: RequestParams) => Promise<number>;
|
|
961
|
+
/**
|
|
962
|
+
* @description List latest height for each chain
|
|
963
|
+
*
|
|
964
|
+
* @tags Infos
|
|
965
|
+
* @name GetInfosHeights
|
|
966
|
+
* @request GET:/infos/heights
|
|
967
|
+
*/
|
|
968
|
+
getInfosHeights: (params?: RequestParams) => Promise<PerChainHeight[]>;
|
|
843
969
|
/**
|
|
844
970
|
* @description Get the average block time for each chain
|
|
845
971
|
*
|
|
@@ -849,133 +975,289 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
849
975
|
*/
|
|
850
976
|
getInfosAverageBlockTimes: (params?: RequestParams) => Promise<PerChainDuration[]>;
|
|
851
977
|
};
|
|
852
|
-
|
|
978
|
+
utils: {
|
|
853
979
|
/**
|
|
854
|
-
* @description
|
|
980
|
+
* @description Perform a sanity check
|
|
855
981
|
*
|
|
856
|
-
* @tags
|
|
857
|
-
* @name
|
|
858
|
-
* @request
|
|
982
|
+
* @tags Utils
|
|
983
|
+
* @name PutUtilsSanityCheck
|
|
984
|
+
* @request PUT:/utils/sanity-check
|
|
985
|
+
*/
|
|
986
|
+
putUtilsSanityCheck: (params?: RequestParams) => Promise<void>;
|
|
987
|
+
/**
|
|
988
|
+
* @description Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
|
|
989
|
+
*
|
|
990
|
+
* @tags Utils
|
|
991
|
+
* @name PutUtilsUpdateGlobalLoglevel
|
|
992
|
+
* @request PUT:/utils/update-global-loglevel
|
|
993
|
+
*/
|
|
994
|
+
putUtilsUpdateGlobalLoglevel: (data: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR', params?: RequestParams) => Promise<void>;
|
|
995
|
+
/**
|
|
996
|
+
* @description Update logback values
|
|
997
|
+
*
|
|
998
|
+
* @tags Utils
|
|
999
|
+
* @name PutUtilsUpdateLogConfig
|
|
1000
|
+
* @request PUT:/utils/update-log-config
|
|
1001
|
+
*/
|
|
1002
|
+
putUtilsUpdateLogConfig: (data?: LogbackValue[], params?: RequestParams) => Promise<void>;
|
|
1003
|
+
};
|
|
1004
|
+
tokens: {
|
|
1005
|
+
/**
|
|
1006
|
+
* @description Return metadata for the given fungible tokens, if metadata doesn't exist or token isn't a fungible, it won't be in the output list
|
|
1007
|
+
*
|
|
1008
|
+
* @tags Tokens
|
|
1009
|
+
* @name PostTokensFungibleMetadata
|
|
1010
|
+
* @request POST:/tokens/fungible-metadata
|
|
1011
|
+
*/
|
|
1012
|
+
postTokensFungibleMetadata: (data?: string[], params?: RequestParams) => Promise<FungibleTokenMetadata[]>;
|
|
1013
|
+
/**
|
|
1014
|
+
* @description List given tokens information
|
|
1015
|
+
*
|
|
1016
|
+
* @tags Tokens
|
|
1017
|
+
* @name PostTokens
|
|
1018
|
+
* @request POST:/tokens
|
|
1019
|
+
*/
|
|
1020
|
+
postTokens: (data?: string[], params?: RequestParams) => Promise<TokenInfo[]>;
|
|
1021
|
+
/**
|
|
1022
|
+
* @description List token information
|
|
1023
|
+
*
|
|
1024
|
+
* @tags Tokens
|
|
1025
|
+
* @name GetTokens
|
|
1026
|
+
* @request GET:/tokens
|
|
1027
|
+
*/
|
|
1028
|
+
getTokens: (query?: {
|
|
1029
|
+
/**
|
|
1030
|
+
* Page number
|
|
1031
|
+
* @format int32
|
|
1032
|
+
* @min 1
|
|
1033
|
+
*/
|
|
1034
|
+
page?: number;
|
|
1035
|
+
/**
|
|
1036
|
+
* Number of items per page
|
|
1037
|
+
* @format int32
|
|
1038
|
+
* @min 0
|
|
1039
|
+
* @max 100
|
|
1040
|
+
*/
|
|
1041
|
+
limit?: number;
|
|
1042
|
+
/**
|
|
1043
|
+
* fungible, non-fungible, non-standard or any interface id in hex-string format, e.g: 0001
|
|
1044
|
+
* @format string
|
|
1045
|
+
*/
|
|
1046
|
+
'interface-id'?: TokenStdInterfaceId | string;
|
|
1047
|
+
}, params?: RequestParams) => Promise<TokenInfo[]>;
|
|
1048
|
+
/**
|
|
1049
|
+
* @description List token transactions
|
|
1050
|
+
*
|
|
1051
|
+
* @tags Tokens
|
|
1052
|
+
* @name GetTokensTokenIdTransactions
|
|
1053
|
+
* @request GET:/tokens/{token_id}/transactions
|
|
1054
|
+
*/
|
|
1055
|
+
getTokensTokenIdTransactions: (tokenId: string, query?: {
|
|
1056
|
+
/**
|
|
1057
|
+
* Page number
|
|
1058
|
+
* @format int32
|
|
1059
|
+
* @min 1
|
|
1060
|
+
*/
|
|
1061
|
+
page?: number;
|
|
1062
|
+
/**
|
|
1063
|
+
* Number of items per page
|
|
1064
|
+
* @format int32
|
|
1065
|
+
* @min 0
|
|
1066
|
+
* @max 100
|
|
1067
|
+
*/
|
|
1068
|
+
limit?: number;
|
|
1069
|
+
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
1070
|
+
/**
|
|
1071
|
+
* @description Return metadata for the given nft collection addresses, if metadata doesn't exist or address isn't a nft collection, it won't be in the output list
|
|
1072
|
+
*
|
|
1073
|
+
* @tags Tokens
|
|
1074
|
+
* @name PostTokensNftCollectionMetadata
|
|
1075
|
+
* @request POST:/tokens/nft-collection-metadata
|
|
1076
|
+
*/
|
|
1077
|
+
postTokensNftCollectionMetadata: (data?: string[], params?: RequestParams) => Promise<NFTCollectionMetadata[]>;
|
|
1078
|
+
/**
|
|
1079
|
+
* @description List token addresses
|
|
1080
|
+
*
|
|
1081
|
+
* @tags Tokens
|
|
1082
|
+
* @name GetTokensTokenIdAddresses
|
|
1083
|
+
* @request GET:/tokens/{token_id}/addresses
|
|
1084
|
+
*/
|
|
1085
|
+
getTokensTokenIdAddresses: (tokenId: string, query?: {
|
|
1086
|
+
/**
|
|
1087
|
+
* Page number
|
|
1088
|
+
* @format int32
|
|
1089
|
+
* @min 1
|
|
1090
|
+
*/
|
|
1091
|
+
page?: number;
|
|
1092
|
+
/**
|
|
1093
|
+
* Number of items per page
|
|
1094
|
+
* @format int32
|
|
1095
|
+
* @min 0
|
|
1096
|
+
* @max 100
|
|
1097
|
+
*/
|
|
1098
|
+
limit?: number;
|
|
1099
|
+
}, params?: RequestParams) => Promise<string[]>;
|
|
1100
|
+
/**
|
|
1101
|
+
* @description Return metadata for the given nft tokens, if metadata doesn't exist or token isn't a nft, it won't be in the output list
|
|
1102
|
+
*
|
|
1103
|
+
* @tags Tokens
|
|
1104
|
+
* @name PostTokensNftMetadata
|
|
1105
|
+
* @request POST:/tokens/nft-metadata
|
|
1106
|
+
*/
|
|
1107
|
+
postTokensNftMetadata: (data?: string[], params?: RequestParams) => Promise<NFTMetadata[]>;
|
|
1108
|
+
};
|
|
1109
|
+
market: {
|
|
1110
|
+
/**
|
|
1111
|
+
* No description
|
|
1112
|
+
*
|
|
1113
|
+
* @tags Market
|
|
1114
|
+
* @name PostMarketPrices
|
|
1115
|
+
* @request POST:/market/prices
|
|
1116
|
+
*/
|
|
1117
|
+
postMarketPrices: (query: {
|
|
1118
|
+
currency: string;
|
|
1119
|
+
}, data?: string[], params?: RequestParams) => Promise<number[]>;
|
|
1120
|
+
/**
|
|
1121
|
+
* No description
|
|
1122
|
+
*
|
|
1123
|
+
* @tags Market
|
|
1124
|
+
* @name GetMarketPricesSymbolCharts
|
|
1125
|
+
* @request GET:/market/prices/{symbol}/charts
|
|
1126
|
+
*/
|
|
1127
|
+
getMarketPricesSymbolCharts: (symbol: string, query: {
|
|
1128
|
+
currency: string;
|
|
1129
|
+
}, params?: RequestParams) => Promise<TimedPrices>;
|
|
1130
|
+
};
|
|
1131
|
+
blocks: {
|
|
1132
|
+
/**
|
|
1133
|
+
* @description Get block's transactions
|
|
1134
|
+
*
|
|
1135
|
+
* @tags Blocks
|
|
1136
|
+
* @name GetBlocksBlockHashTransactions
|
|
1137
|
+
* @request GET:/blocks/{block_hash}/transactions
|
|
859
1138
|
*/
|
|
860
|
-
|
|
1139
|
+
getBlocksBlockHashTransactions: (blockHash: string, query?: {
|
|
861
1140
|
/**
|
|
862
1141
|
* Page number
|
|
863
1142
|
* @format int32
|
|
1143
|
+
* @min 1
|
|
864
1144
|
*/
|
|
865
1145
|
page?: number;
|
|
866
1146
|
/**
|
|
867
1147
|
* Number of items per page
|
|
868
1148
|
* @format int32
|
|
1149
|
+
* @min 0
|
|
1150
|
+
* @max 100
|
|
869
1151
|
*/
|
|
870
1152
|
limit?: number;
|
|
871
|
-
}, params?: RequestParams) => Promise<
|
|
872
|
-
};
|
|
873
|
-
tokens: {
|
|
1153
|
+
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
874
1154
|
/**
|
|
875
|
-
* @description
|
|
1155
|
+
* @description Get a block with hash
|
|
876
1156
|
*
|
|
877
|
-
* @tags
|
|
878
|
-
* @name
|
|
879
|
-
* @request GET:/
|
|
1157
|
+
* @tags Blocks
|
|
1158
|
+
* @name GetBlocksBlockHash
|
|
1159
|
+
* @request GET:/blocks/{block_hash}
|
|
880
1160
|
*/
|
|
881
|
-
|
|
1161
|
+
getBlocksBlockHash: (blockHash: string, params?: RequestParams) => Promise<BlockEntry>;
|
|
1162
|
+
/**
|
|
1163
|
+
* @description List latest blocks
|
|
1164
|
+
*
|
|
1165
|
+
* @tags Blocks
|
|
1166
|
+
* @name GetBlocks
|
|
1167
|
+
* @request GET:/blocks
|
|
1168
|
+
*/
|
|
1169
|
+
getBlocks: (query?: {
|
|
882
1170
|
/**
|
|
883
1171
|
* Page number
|
|
884
1172
|
* @format int32
|
|
1173
|
+
* @min 1
|
|
885
1174
|
*/
|
|
886
1175
|
page?: number;
|
|
887
1176
|
/**
|
|
888
1177
|
* Number of items per page
|
|
889
1178
|
* @format int32
|
|
1179
|
+
* @min 0
|
|
1180
|
+
* @max 100
|
|
890
1181
|
*/
|
|
891
1182
|
limit?: number;
|
|
892
|
-
/**
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
}, params?: RequestParams) => Promise<TokenInfo[]>;
|
|
1183
|
+
/** Reverse pagination */
|
|
1184
|
+
reverse?: boolean;
|
|
1185
|
+
}, params?: RequestParams) => Promise<ListBlocks>;
|
|
1186
|
+
};
|
|
1187
|
+
transactions: {
|
|
898
1188
|
/**
|
|
899
|
-
* @description
|
|
1189
|
+
* @description Get a transaction with hash
|
|
900
1190
|
*
|
|
901
|
-
* @tags
|
|
902
|
-
* @name
|
|
903
|
-
* @request
|
|
1191
|
+
* @tags Transactions
|
|
1192
|
+
* @name GetTransactionsTransactionHash
|
|
1193
|
+
* @request GET:/transactions/{transaction_hash}
|
|
904
1194
|
*/
|
|
905
|
-
|
|
1195
|
+
getTransactionsTransactionHash: (transactionHash: string, params?: RequestParams) => Promise<AcceptedTransaction | PendingTransaction>;
|
|
1196
|
+
};
|
|
1197
|
+
contractEvents: {
|
|
906
1198
|
/**
|
|
907
|
-
* @description
|
|
1199
|
+
* @description Get contract events by transaction id
|
|
908
1200
|
*
|
|
909
|
-
* @tags
|
|
910
|
-
* @name
|
|
911
|
-
* @request GET:/
|
|
1201
|
+
* @tags Contract events
|
|
1202
|
+
* @name GetContractEventsTransactionIdTransactionId
|
|
1203
|
+
* @request GET:/contract-events/transaction-id/{transaction_id}
|
|
912
1204
|
*/
|
|
913
|
-
|
|
1205
|
+
getContractEventsTransactionIdTransactionId: (transactionId: string, params?: RequestParams) => Promise<Event[]>;
|
|
1206
|
+
/**
|
|
1207
|
+
* @description Get contract events by contract address
|
|
1208
|
+
*
|
|
1209
|
+
* @tags Contract events
|
|
1210
|
+
* @name GetContractEventsContractAddressContractAddress
|
|
1211
|
+
* @request GET:/contract-events/contract-address/{contract_address}
|
|
1212
|
+
*/
|
|
1213
|
+
getContractEventsContractAddressContractAddress: (contractAddress: string, query?: {
|
|
914
1214
|
/**
|
|
915
1215
|
* Page number
|
|
916
1216
|
* @format int32
|
|
1217
|
+
* @min 1
|
|
917
1218
|
*/
|
|
918
1219
|
page?: number;
|
|
919
1220
|
/**
|
|
920
1221
|
* Number of items per page
|
|
921
1222
|
* @format int32
|
|
1223
|
+
* @min 0
|
|
1224
|
+
* @max 100
|
|
922
1225
|
*/
|
|
923
1226
|
limit?: number;
|
|
924
|
-
}, params?: RequestParams) => Promise<
|
|
1227
|
+
}, params?: RequestParams) => Promise<Event[]>;
|
|
925
1228
|
/**
|
|
926
|
-
* @description
|
|
1229
|
+
* @description Get contract events by contract and input addresses
|
|
927
1230
|
*
|
|
928
|
-
* @tags
|
|
929
|
-
* @name
|
|
930
|
-
* @request GET:/
|
|
1231
|
+
* @tags Contract events
|
|
1232
|
+
* @name GetContractEventsContractAddressContractAddressInputAddressInputAddress
|
|
1233
|
+
* @request GET:/contract-events/contract-address/{contract_address}/input-address/{input_address}
|
|
931
1234
|
*/
|
|
932
|
-
|
|
1235
|
+
getContractEventsContractAddressContractAddressInputAddressInputAddress: (contractAddress: string, inputAddress: string, query?: {
|
|
933
1236
|
/**
|
|
934
1237
|
* Page number
|
|
935
1238
|
* @format int32
|
|
1239
|
+
* @min 1
|
|
936
1240
|
*/
|
|
937
1241
|
page?: number;
|
|
938
1242
|
/**
|
|
939
1243
|
* Number of items per page
|
|
940
1244
|
* @format int32
|
|
1245
|
+
* @min 0
|
|
1246
|
+
* @max 100
|
|
941
1247
|
*/
|
|
942
1248
|
limit?: number;
|
|
943
|
-
}, params?: RequestParams) => Promise<
|
|
944
|
-
/**
|
|
945
|
-
* @description Return metadata for the given fungible tokens, if metadata doesn't exist or token isn't a fungible, it won't be in the output list
|
|
946
|
-
*
|
|
947
|
-
* @tags Tokens
|
|
948
|
-
* @name PostTokensFungibleMetadata
|
|
949
|
-
* @request POST:/tokens/fungible-metadata
|
|
950
|
-
*/
|
|
951
|
-
postTokensFungibleMetadata: (data?: string[], params?: RequestParams) => Promise<FungibleTokenMetadata[]>;
|
|
952
|
-
/**
|
|
953
|
-
* @description Return metadata for the given nft tokens, if metadata doesn't exist or token isn't a nft, it won't be in the output list
|
|
954
|
-
*
|
|
955
|
-
* @tags Tokens
|
|
956
|
-
* @name PostTokensNftMetadata
|
|
957
|
-
* @request POST:/tokens/nft-metadata
|
|
958
|
-
*/
|
|
959
|
-
postTokensNftMetadata: (data?: string[], params?: RequestParams) => Promise<NFTMetadata[]>;
|
|
960
|
-
/**
|
|
961
|
-
* @description Return metadata for the given nft collection addresses, if metadata doesn't exist or address isn't a nft collection, it won't be in the output list
|
|
962
|
-
*
|
|
963
|
-
* @tags Tokens
|
|
964
|
-
* @name PostTokensNftCollectionMetadata
|
|
965
|
-
* @request POST:/tokens/nft-collection-metadata
|
|
966
|
-
*/
|
|
967
|
-
postTokensNftCollectionMetadata: (data?: string[], params?: RequestParams) => Promise<NFTCollectionMetadata[]>;
|
|
1249
|
+
}, params?: RequestParams) => Promise<Event[]>;
|
|
968
1250
|
};
|
|
969
1251
|
charts: {
|
|
970
1252
|
/**
|
|
971
1253
|
* @description `interval-type` query param: hourly, daily
|
|
972
1254
|
*
|
|
973
1255
|
* @tags Charts
|
|
974
|
-
* @name
|
|
975
|
-
* @summary Get
|
|
976
|
-
* @request GET:/charts/
|
|
1256
|
+
* @name GetChartsTransactionsCountPerChain
|
|
1257
|
+
* @summary Get transaction count history per chain
|
|
1258
|
+
* @request GET:/charts/transactions-count-per-chain
|
|
977
1259
|
*/
|
|
978
|
-
|
|
1260
|
+
getChartsTransactionsCountPerChain: (query: {
|
|
979
1261
|
/**
|
|
980
1262
|
* @format int64
|
|
981
1263
|
* @min 0
|
|
@@ -987,7 +1269,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
987
1269
|
*/
|
|
988
1270
|
toTs: number;
|
|
989
1271
|
'interval-type': IntervalType;
|
|
990
|
-
}, params?: RequestParams) => Promise<
|
|
1272
|
+
}, params?: RequestParams) => Promise<PerChainTimedCount[]>;
|
|
991
1273
|
/**
|
|
992
1274
|
* @description `interval-type` query param: hourly, daily
|
|
993
1275
|
*
|
|
@@ -1013,11 +1295,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1013
1295
|
* @description `interval-type` query param: hourly, daily
|
|
1014
1296
|
*
|
|
1015
1297
|
* @tags Charts
|
|
1016
|
-
* @name
|
|
1017
|
-
* @summary Get
|
|
1018
|
-
* @request GET:/charts/
|
|
1298
|
+
* @name GetChartsHashrates
|
|
1299
|
+
* @summary Get hashrate chart in H/s
|
|
1300
|
+
* @request GET:/charts/hashrates
|
|
1019
1301
|
*/
|
|
1020
|
-
|
|
1302
|
+
getChartsHashrates: (query: {
|
|
1021
1303
|
/**
|
|
1022
1304
|
* @format int64
|
|
1023
1305
|
* @min 0
|
|
@@ -1029,140 +1311,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1029
1311
|
*/
|
|
1030
1312
|
toTs: number;
|
|
1031
1313
|
'interval-type': IntervalType;
|
|
1032
|
-
}, params?: RequestParams) => Promise<
|
|
1033
|
-
};
|
|
1034
|
-
contractEvents: {
|
|
1035
|
-
/**
|
|
1036
|
-
* @description Get contract events by transaction id
|
|
1037
|
-
*
|
|
1038
|
-
* @tags Contract events
|
|
1039
|
-
* @name GetContractEventsTransactionIdTransactionId
|
|
1040
|
-
* @request GET:/contract-events/transaction-id/{transaction_id}
|
|
1041
|
-
*/
|
|
1042
|
-
getContractEventsTransactionIdTransactionId: (transactionId: string, params?: RequestParams) => Promise<Event[]>;
|
|
1043
|
-
/**
|
|
1044
|
-
* @description Get contract events by contract address
|
|
1045
|
-
*
|
|
1046
|
-
* @tags Contract events
|
|
1047
|
-
* @name GetContractEventsContractAddressContractAddress
|
|
1048
|
-
* @request GET:/contract-events/contract-address/{contract_address}
|
|
1049
|
-
*/
|
|
1050
|
-
getContractEventsContractAddressContractAddress: (contractAddress: string, query?: {
|
|
1051
|
-
/**
|
|
1052
|
-
* Page number
|
|
1053
|
-
* @format int32
|
|
1054
|
-
*/
|
|
1055
|
-
page?: number;
|
|
1056
|
-
/**
|
|
1057
|
-
* Number of items per page
|
|
1058
|
-
* @format int32
|
|
1059
|
-
*/
|
|
1060
|
-
limit?: number;
|
|
1061
|
-
}, params?: RequestParams) => Promise<Event[]>;
|
|
1062
|
-
/**
|
|
1063
|
-
* @description Get contract events by contract and input addresses
|
|
1064
|
-
*
|
|
1065
|
-
* @tags Contract events
|
|
1066
|
-
* @name GetContractEventsContractAddressContractAddressInputAddressInputAddress
|
|
1067
|
-
* @request GET:/contract-events/contract-address/{contract_address}/input-address/{input_address}
|
|
1068
|
-
*/
|
|
1069
|
-
getContractEventsContractAddressContractAddressInputAddressInputAddress: (contractAddress: string, inputAddress: string, query?: {
|
|
1070
|
-
/**
|
|
1071
|
-
* Page number
|
|
1072
|
-
* @format int32
|
|
1073
|
-
*/
|
|
1074
|
-
page?: number;
|
|
1075
|
-
/**
|
|
1076
|
-
* Number of items per page
|
|
1077
|
-
* @format int32
|
|
1078
|
-
*/
|
|
1079
|
-
limit?: number;
|
|
1080
|
-
}, params?: RequestParams) => Promise<Event[]>;
|
|
1314
|
+
}, params?: RequestParams) => Promise<Hashrate[]>;
|
|
1081
1315
|
};
|
|
1082
|
-
|
|
1083
|
-
/**
|
|
1084
|
-
* @description Get contract liveness
|
|
1085
|
-
*
|
|
1086
|
-
* @tags Contracts
|
|
1087
|
-
* @name GetContractsContractAddressCurrentLiveness
|
|
1088
|
-
* @request GET:/contracts/{contract_address}/current-liveness
|
|
1089
|
-
*/
|
|
1090
|
-
getContractsContractAddressCurrentLiveness: (contractAddress: string, params?: RequestParams) => Promise<ContractLiveness>;
|
|
1091
|
-
/**
|
|
1092
|
-
* @description Get contract parent address if exist
|
|
1093
|
-
*
|
|
1094
|
-
* @tags Contracts
|
|
1095
|
-
* @name GetContractsContractAddressParent
|
|
1096
|
-
* @request GET:/contracts/{contract_address}/parent
|
|
1097
|
-
*/
|
|
1098
|
-
getContractsContractAddressParent: (contractAddress: string, params?: RequestParams) => Promise<ContractParent>;
|
|
1316
|
+
mempool: {
|
|
1099
1317
|
/**
|
|
1100
|
-
* @description
|
|
1318
|
+
* @description list mempool transactions
|
|
1101
1319
|
*
|
|
1102
|
-
* @tags
|
|
1103
|
-
* @name
|
|
1104
|
-
* @request GET:/
|
|
1320
|
+
* @tags Mempool
|
|
1321
|
+
* @name GetMempoolTransactions
|
|
1322
|
+
* @request GET:/mempool/transactions
|
|
1105
1323
|
*/
|
|
1106
|
-
|
|
1324
|
+
getMempoolTransactions: (query?: {
|
|
1107
1325
|
/**
|
|
1108
1326
|
* Page number
|
|
1109
1327
|
* @format int32
|
|
1328
|
+
* @min 1
|
|
1110
1329
|
*/
|
|
1111
1330
|
page?: number;
|
|
1112
1331
|
/**
|
|
1113
1332
|
* Number of items per page
|
|
1114
1333
|
* @format int32
|
|
1334
|
+
* @min 0
|
|
1335
|
+
* @max 100
|
|
1115
1336
|
*/
|
|
1116
1337
|
limit?: number;
|
|
1117
|
-
}, params?: RequestParams) => Promise<
|
|
1118
|
-
};
|
|
1119
|
-
market: {
|
|
1120
|
-
/**
|
|
1121
|
-
* No description
|
|
1122
|
-
*
|
|
1123
|
-
* @tags Market
|
|
1124
|
-
* @name PostMarketPrices
|
|
1125
|
-
* @request POST:/market/prices
|
|
1126
|
-
*/
|
|
1127
|
-
postMarketPrices: (query: {
|
|
1128
|
-
currency: string;
|
|
1129
|
-
}, data?: string[], params?: RequestParams) => Promise<number[]>;
|
|
1130
|
-
/**
|
|
1131
|
-
* No description
|
|
1132
|
-
*
|
|
1133
|
-
* @tags Market
|
|
1134
|
-
* @name GetMarketPricesSymbolCharts
|
|
1135
|
-
* @request GET:/market/prices/{symbol}/charts
|
|
1136
|
-
*/
|
|
1137
|
-
getMarketPricesSymbolCharts: (symbol: string, query: {
|
|
1138
|
-
currency: string;
|
|
1139
|
-
}, params?: RequestParams) => Promise<TimedPrices>;
|
|
1140
|
-
};
|
|
1141
|
-
utils: {
|
|
1142
|
-
/**
|
|
1143
|
-
* @description Perform a sanity check
|
|
1144
|
-
*
|
|
1145
|
-
* @tags Utils
|
|
1146
|
-
* @name PutUtilsSanityCheck
|
|
1147
|
-
* @request PUT:/utils/sanity-check
|
|
1148
|
-
*/
|
|
1149
|
-
putUtilsSanityCheck: (params?: RequestParams) => Promise<void>;
|
|
1150
|
-
/**
|
|
1151
|
-
* @description Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
|
|
1152
|
-
*
|
|
1153
|
-
* @tags Utils
|
|
1154
|
-
* @name PutUtilsUpdateGlobalLoglevel
|
|
1155
|
-
* @request PUT:/utils/update-global-loglevel
|
|
1156
|
-
*/
|
|
1157
|
-
putUtilsUpdateGlobalLoglevel: (data: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR', params?: RequestParams) => Promise<void>;
|
|
1158
|
-
/**
|
|
1159
|
-
* @description Update logback values
|
|
1160
|
-
*
|
|
1161
|
-
* @tags Utils
|
|
1162
|
-
* @name PutUtilsUpdateLogConfig
|
|
1163
|
-
* @request PUT:/utils/update-log-config
|
|
1164
|
-
*/
|
|
1165
|
-
putUtilsUpdateLogConfig: (data?: LogbackValue[], params?: RequestParams) => Promise<void>;
|
|
1338
|
+
}, params?: RequestParams) => Promise<MempoolTransaction[]>;
|
|
1166
1339
|
};
|
|
1167
1340
|
}
|
|
1168
1341
|
export {};
|