@avalabs/glacier-sdk 3.1.0-canary.639f9ba.0 → 3.1.0-canary.686a0a6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1137 -953
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -4
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/ApiFeature.d.ts +7 -0
- package/esm/generated/models/ApiFeature.js +1 -0
- package/esm/generated/models/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/Network.d.ts +3 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +13 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/{GlacierApiUsageMetricsService.d.ts → DataApiUsageMetricsService.d.ts} +67 -22
- package/esm/generated/services/{GlacierApiUsageMetricsService.js → DataApiUsageMetricsService.js} +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.d.ts +2 -2
- package/esm/generated/services/EvmChainsService.d.ts +19 -6
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +42 -9
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +9 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
- package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +5 -5
- package/esm/index.d.ts +10 -9
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
- package/esm/generated/models/GlacierApiFeature.js +0 -1
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,592 +54,618 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
readonly httpRequest: BaseHttpRequest;
|
|
59
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
57
|
+
type LogsFormatMetadata = {
|
|
60
58
|
/**
|
|
61
|
-
*
|
|
62
|
-
* @throws ApiError
|
|
59
|
+
* The IP address of the client that made the request.
|
|
63
60
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
ipAddress: string;
|
|
62
|
+
/**
|
|
63
|
+
* The host for the request made by the client.
|
|
64
|
+
*/
|
|
65
|
+
host: string;
|
|
66
|
+
/**
|
|
67
|
+
* The user agent of the client that made the request.
|
|
68
|
+
*/
|
|
69
|
+
userAgent: string;
|
|
70
|
+
};
|
|
66
71
|
|
|
67
72
|
/**
|
|
68
|
-
*
|
|
73
|
+
* The type of request made by the client.
|
|
69
74
|
*/
|
|
70
|
-
declare enum
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
AUD = "aud",
|
|
74
|
-
CAD = "cad",
|
|
75
|
-
CHF = "chf",
|
|
76
|
-
CLP = "clp",
|
|
77
|
-
CNY = "cny",
|
|
78
|
-
CZK = "czk",
|
|
79
|
-
DKK = "dkk",
|
|
80
|
-
GBP = "gbp",
|
|
81
|
-
HKD = "hkd",
|
|
82
|
-
HUF = "huf",
|
|
83
|
-
JPY = "jpy",
|
|
84
|
-
NZD = "nzd"
|
|
75
|
+
declare enum RequestType {
|
|
76
|
+
DATA = "data",
|
|
77
|
+
RPC = "rpc"
|
|
85
78
|
}
|
|
86
79
|
|
|
87
|
-
type
|
|
88
|
-
currencyCode: CurrencyCode;
|
|
80
|
+
type LogsFormat = {
|
|
89
81
|
/**
|
|
90
|
-
*
|
|
82
|
+
* The organization id of the request.
|
|
91
83
|
*/
|
|
92
|
-
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
type NativeTokenBalance = {
|
|
84
|
+
orgId: string;
|
|
96
85
|
/**
|
|
97
|
-
* The
|
|
86
|
+
* The unique log id of the request.
|
|
98
87
|
*/
|
|
99
|
-
|
|
88
|
+
logId: string;
|
|
100
89
|
/**
|
|
101
|
-
* The
|
|
90
|
+
* The timestamp of the request.
|
|
102
91
|
*/
|
|
103
|
-
|
|
92
|
+
eventTimestamp: number;
|
|
104
93
|
/**
|
|
105
|
-
* The
|
|
94
|
+
* The apiKey used to make the request.
|
|
106
95
|
*/
|
|
107
|
-
|
|
96
|
+
apiKeyId: string;
|
|
108
97
|
/**
|
|
109
|
-
* The
|
|
98
|
+
* The alias of the apiKey used to make the request.
|
|
110
99
|
*/
|
|
111
|
-
|
|
100
|
+
apiKeyAlias: string;
|
|
112
101
|
/**
|
|
113
|
-
* The
|
|
102
|
+
* The region of the host for the request made by the client.
|
|
114
103
|
*/
|
|
115
|
-
|
|
104
|
+
hostRegion: string;
|
|
105
|
+
requestType: RequestType;
|
|
116
106
|
/**
|
|
117
|
-
* The
|
|
107
|
+
* The path of the request made by the client.
|
|
118
108
|
*/
|
|
119
|
-
|
|
109
|
+
requestPath: string;
|
|
120
110
|
/**
|
|
121
|
-
* The
|
|
111
|
+
* The number of API credits consumed by the request.
|
|
122
112
|
*/
|
|
123
|
-
|
|
113
|
+
apiCreditsConsumed: number;
|
|
124
114
|
/**
|
|
125
|
-
* The
|
|
115
|
+
* The duration of the request in milliseconds.
|
|
126
116
|
*/
|
|
127
|
-
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
type GetNativeBalanceResponse = {
|
|
117
|
+
requestDurationMsecs: number;
|
|
131
118
|
/**
|
|
132
|
-
* The
|
|
119
|
+
* The response code of the request.
|
|
133
120
|
*/
|
|
134
|
-
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The metadata indexing status of the nft.
|
|
139
|
-
*/
|
|
140
|
-
declare enum NftTokenMetadataStatus {
|
|
141
|
-
UNKNOWN = "UNKNOWN",
|
|
142
|
-
MISSING_TOKEN = "MISSING_TOKEN",
|
|
143
|
-
INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
|
|
144
|
-
INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
|
|
145
|
-
UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
|
|
146
|
-
THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
|
|
147
|
-
METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
|
|
148
|
-
INVALID_METADATA = "INVALID_METADATA",
|
|
149
|
-
INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
|
|
150
|
-
INDEXED = "INDEXED",
|
|
151
|
-
UNINDEXED = "UNINDEXED"
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
type Erc1155TokenMetadata = {
|
|
155
|
-
indexStatus: NftTokenMetadataStatus;
|
|
156
|
-
metadataLastUpdatedTimestamp?: number;
|
|
157
|
-
name?: string;
|
|
158
|
-
symbol?: string;
|
|
159
|
-
imageUri?: string;
|
|
160
|
-
description?: string;
|
|
161
|
-
animationUri?: string;
|
|
162
|
-
externalUrl?: string;
|
|
163
|
-
background?: string;
|
|
164
|
-
decimals?: number;
|
|
165
|
-
properties?: string;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
type Erc1155TokenBalance = {
|
|
121
|
+
responseCode: number;
|
|
169
122
|
/**
|
|
170
|
-
*
|
|
123
|
+
* The chain id of the request.
|
|
171
124
|
*/
|
|
172
|
-
|
|
173
|
-
ercType: Erc1155TokenBalance.ercType;
|
|
174
|
-
tokenId: string;
|
|
175
|
-
tokenUri: string;
|
|
176
|
-
metadata: Erc1155TokenMetadata;
|
|
125
|
+
chainId?: string;
|
|
177
126
|
/**
|
|
178
|
-
* The
|
|
127
|
+
* The rpc method of the request.
|
|
179
128
|
*/
|
|
180
|
-
|
|
129
|
+
rpcMethod?: string;
|
|
181
130
|
/**
|
|
182
|
-
* The
|
|
131
|
+
* The metadata of the request.
|
|
183
132
|
*/
|
|
184
|
-
|
|
185
|
-
};
|
|
186
|
-
declare namespace Erc1155TokenBalance {
|
|
187
|
-
enum ercType {
|
|
188
|
-
ERC_1155 = "ERC-1155"
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
type Erc721TokenMetadata = {
|
|
193
|
-
indexStatus: NftTokenMetadataStatus;
|
|
194
|
-
metadataLastUpdatedTimestamp?: number;
|
|
195
|
-
name?: string;
|
|
196
|
-
symbol?: string;
|
|
197
|
-
imageUri?: string;
|
|
198
|
-
description?: string;
|
|
199
|
-
animationUri?: string;
|
|
200
|
-
externalUrl?: string;
|
|
201
|
-
background?: string;
|
|
202
|
-
attributes?: string;
|
|
133
|
+
metadata: LogsFormatMetadata;
|
|
203
134
|
};
|
|
204
135
|
|
|
205
|
-
type
|
|
136
|
+
type LogsResponseDTO = {
|
|
206
137
|
/**
|
|
207
|
-
* A
|
|
138
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
208
139
|
*/
|
|
209
|
-
|
|
140
|
+
nextPageToken?: string;
|
|
210
141
|
/**
|
|
211
|
-
* The
|
|
142
|
+
* The organization id of the request.
|
|
212
143
|
*/
|
|
213
|
-
|
|
144
|
+
orgId: string;
|
|
214
145
|
/**
|
|
215
|
-
*
|
|
146
|
+
* An array of logs representing the requests made by clients.
|
|
216
147
|
*/
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
metadata: Erc721TokenMetadata;
|
|
148
|
+
logs: Array<LogsFormat>;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
type RpcUsageMetricsValueAggregated = {
|
|
222
152
|
/**
|
|
223
|
-
*
|
|
153
|
+
* The total number of requests
|
|
224
154
|
*/
|
|
225
|
-
|
|
155
|
+
totalRequests: number;
|
|
226
156
|
/**
|
|
227
|
-
* The
|
|
157
|
+
* The number of API credits used
|
|
228
158
|
*/
|
|
229
|
-
|
|
230
|
-
};
|
|
231
|
-
declare namespace Erc721TokenBalance {
|
|
232
|
-
enum ercType {
|
|
233
|
-
ERC_721 = "ERC-721"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
type ListCollectibleBalancesResponse = {
|
|
159
|
+
apiCreditsUsed: number;
|
|
238
160
|
/**
|
|
239
|
-
*
|
|
161
|
+
* The number of requests per second
|
|
240
162
|
*/
|
|
241
|
-
|
|
163
|
+
requestsPerSecond: number;
|
|
242
164
|
/**
|
|
243
|
-
* The
|
|
165
|
+
* The success rate percentage
|
|
244
166
|
*/
|
|
245
|
-
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
type ListErc1155BalancesResponse = {
|
|
167
|
+
successRatePercent: number;
|
|
249
168
|
/**
|
|
250
|
-
*
|
|
169
|
+
* The median response time in milliseconds
|
|
251
170
|
*/
|
|
252
|
-
|
|
171
|
+
medianResponseTimeMsecs: number;
|
|
253
172
|
/**
|
|
254
|
-
* The
|
|
173
|
+
* The number of invalid requests
|
|
255
174
|
*/
|
|
256
|
-
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
type Erc20TokenBalance = {
|
|
175
|
+
invalidRequests: number;
|
|
260
176
|
/**
|
|
261
|
-
*
|
|
177
|
+
* Column name used for data aggregation
|
|
262
178
|
*/
|
|
263
|
-
|
|
179
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
264
180
|
/**
|
|
265
|
-
* The
|
|
181
|
+
* The value of the column used for data aggregation
|
|
266
182
|
*/
|
|
267
|
-
|
|
183
|
+
groupValue?: (string | number);
|
|
184
|
+
};
|
|
185
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
268
186
|
/**
|
|
269
|
-
*
|
|
187
|
+
* Column name used for data aggregation
|
|
270
188
|
*/
|
|
271
|
-
|
|
189
|
+
enum groupedBy {
|
|
190
|
+
RPC_METHOD = "rpcMethod",
|
|
191
|
+
RESPONSE_CODE = "responseCode",
|
|
192
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
193
|
+
NONE = "None"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
type RpcMetrics = {
|
|
272
198
|
/**
|
|
273
|
-
* The
|
|
199
|
+
* The timestamp of the metrics value
|
|
274
200
|
*/
|
|
275
|
-
|
|
201
|
+
timestamp: number;
|
|
276
202
|
/**
|
|
277
|
-
* The
|
|
203
|
+
* The metrics values for the timestamp
|
|
278
204
|
*/
|
|
279
|
-
|
|
280
|
-
|
|
205
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
type RpcUsageMetricsResponseDTO = {
|
|
281
209
|
/**
|
|
282
|
-
*
|
|
210
|
+
* Duration in which the metrics value is aggregated
|
|
283
211
|
*/
|
|
284
|
-
|
|
212
|
+
aggregateDuration: string;
|
|
285
213
|
/**
|
|
286
|
-
*
|
|
214
|
+
* ChainId for which the metrics are aggregated
|
|
287
215
|
*/
|
|
288
216
|
chainId: string;
|
|
289
217
|
/**
|
|
290
|
-
*
|
|
291
|
-
*/
|
|
292
|
-
balance: string;
|
|
293
|
-
/**
|
|
294
|
-
* The monetary value of the balance, if a price is available for the token.
|
|
218
|
+
* Metrics values
|
|
295
219
|
*/
|
|
296
|
-
|
|
220
|
+
metrics: Array<RpcMetrics>;
|
|
297
221
|
};
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
222
|
+
|
|
223
|
+
declare enum TimeIntervalGranularityExtended {
|
|
224
|
+
MINUTE = "minute",
|
|
225
|
+
HOURLY = "hourly",
|
|
226
|
+
DAILY = "daily",
|
|
227
|
+
WEEKLY = "weekly",
|
|
228
|
+
MONTHLY = "monthly"
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare enum UsageMetricsGroupByEnum {
|
|
232
|
+
REQUEST_PATH = "requestPath",
|
|
233
|
+
RESPONSE_CODE = "responseCode",
|
|
234
|
+
CHAIN_ID = "chainId",
|
|
235
|
+
API_KEY_ID = "apiKeyId",
|
|
236
|
+
REQUEST_TYPE = "requestType"
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
type UsageMetricsValueDTO = {
|
|
240
|
+
/**
|
|
241
|
+
* Column name used for data aggregation
|
|
242
|
+
*/
|
|
243
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
244
|
+
/**
|
|
245
|
+
* The value of the column used for data aggregation
|
|
246
|
+
*/
|
|
247
|
+
groupValue?: (string | number);
|
|
248
|
+
/**
|
|
249
|
+
* The total number of requests
|
|
250
|
+
*/
|
|
251
|
+
totalRequests: number;
|
|
252
|
+
/**
|
|
253
|
+
* The number of requests per second
|
|
254
|
+
*/
|
|
255
|
+
requestsPerSecond: number;
|
|
256
|
+
/**
|
|
257
|
+
* The success rate percentage
|
|
258
|
+
*/
|
|
259
|
+
successRatePercent: number;
|
|
260
|
+
/**
|
|
261
|
+
* The median response time in milliseconds
|
|
262
|
+
*/
|
|
263
|
+
medianResponseTimeMsecs: number;
|
|
264
|
+
/**
|
|
265
|
+
* The number of invalid requests
|
|
266
|
+
*/
|
|
267
|
+
invalidRequests: number;
|
|
268
|
+
/**
|
|
269
|
+
* The number of API credits used
|
|
270
|
+
*/
|
|
271
|
+
apiCreditsUsed: number;
|
|
272
|
+
/**
|
|
273
|
+
* The number of API credits wasted on invalid requests
|
|
274
|
+
*/
|
|
275
|
+
apiCreditsWasted: number;
|
|
276
|
+
};
|
|
277
|
+
declare namespace UsageMetricsValueDTO {
|
|
278
|
+
/**
|
|
279
|
+
* Column name used for data aggregation
|
|
280
|
+
*/
|
|
281
|
+
enum groupedBy {
|
|
282
|
+
REQUEST_PATH = "requestPath",
|
|
283
|
+
RESPONSE_CODE = "responseCode",
|
|
284
|
+
CHAIN_ID = "chainId",
|
|
285
|
+
API_KEY_ID = "apiKeyId",
|
|
286
|
+
REQUEST_TYPE = "requestType",
|
|
287
|
+
NONE = "None"
|
|
301
288
|
}
|
|
302
289
|
}
|
|
303
290
|
|
|
304
|
-
type
|
|
291
|
+
type Metric = {
|
|
305
292
|
/**
|
|
306
|
-
*
|
|
293
|
+
* The timestamp of the metrics value
|
|
307
294
|
*/
|
|
308
|
-
|
|
295
|
+
timestamp: number;
|
|
309
296
|
/**
|
|
310
|
-
* The
|
|
297
|
+
* The metrics values for the timestamp
|
|
311
298
|
*/
|
|
312
|
-
|
|
299
|
+
values: Array<UsageMetricsValueDTO>;
|
|
313
300
|
};
|
|
314
301
|
|
|
315
|
-
type
|
|
302
|
+
type UsageMetricsResponseDTO = {
|
|
316
303
|
/**
|
|
317
|
-
*
|
|
304
|
+
* Duration in which the metrics value is aggregated
|
|
318
305
|
*/
|
|
319
|
-
|
|
306
|
+
aggregateDuration: string;
|
|
320
307
|
/**
|
|
321
|
-
*
|
|
308
|
+
* Org ID for which the metrics are aggregated
|
|
322
309
|
*/
|
|
323
|
-
|
|
310
|
+
orgId: string;
|
|
311
|
+
/**
|
|
312
|
+
* Metrics values
|
|
313
|
+
*/
|
|
314
|
+
metrics: Array<Metric>;
|
|
324
315
|
};
|
|
325
316
|
|
|
326
|
-
declare class
|
|
317
|
+
declare class DataApiUsageMetricsService {
|
|
327
318
|
readonly httpRequest: BaseHttpRequest;
|
|
328
319
|
constructor(httpRequest: BaseHttpRequest);
|
|
329
320
|
/**
|
|
330
|
-
* Get
|
|
331
|
-
* Gets
|
|
332
|
-
*
|
|
333
|
-
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
334
|
-
* @returns GetNativeBalanceResponse Successful response
|
|
321
|
+
* Get usage metrics for the Data API
|
|
322
|
+
* Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
323
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
335
324
|
* @throws ApiError
|
|
336
325
|
*/
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
340
|
-
*/
|
|
341
|
-
chainId: string;
|
|
342
|
-
/**
|
|
343
|
-
* A wallet address.
|
|
344
|
-
*/
|
|
345
|
-
address: string;
|
|
326
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
|
|
346
327
|
/**
|
|
347
|
-
*
|
|
328
|
+
* Organization ID to fetch usage metrics for
|
|
348
329
|
*/
|
|
349
|
-
|
|
330
|
+
orgId?: string;
|
|
350
331
|
/**
|
|
351
|
-
* The
|
|
332
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
352
333
|
*/
|
|
353
|
-
|
|
354
|
-
}): CancelablePromise<GetNativeBalanceResponse>;
|
|
355
|
-
/**
|
|
356
|
-
* List ERC-20 balances
|
|
357
|
-
* Lists ERC-20 token balances of a wallet address.
|
|
358
|
-
*
|
|
359
|
-
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
360
|
-
*
|
|
361
|
-
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
362
|
-
* @returns ListErc20BalancesResponse Successful response
|
|
363
|
-
* @throws ApiError
|
|
364
|
-
*/
|
|
365
|
-
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
334
|
+
startTimestamp?: number;
|
|
366
335
|
/**
|
|
367
|
-
*
|
|
336
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
368
337
|
*/
|
|
369
|
-
|
|
338
|
+
endTimestamp?: number;
|
|
370
339
|
/**
|
|
371
|
-
*
|
|
340
|
+
* Time interval granularity for data aggregation
|
|
372
341
|
*/
|
|
373
|
-
|
|
342
|
+
timeInterval?: TimeIntervalGranularityExtended;
|
|
374
343
|
/**
|
|
375
|
-
*
|
|
344
|
+
* Query param for the criterion used for grouping metrics
|
|
376
345
|
*/
|
|
377
|
-
|
|
346
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
378
347
|
/**
|
|
379
|
-
*
|
|
348
|
+
* Filter data by chain ID.
|
|
380
349
|
*/
|
|
381
|
-
|
|
350
|
+
chainId?: string;
|
|
382
351
|
/**
|
|
383
|
-
*
|
|
352
|
+
* Filter data by request path.
|
|
384
353
|
*/
|
|
385
|
-
|
|
354
|
+
requestPath?: string;
|
|
386
355
|
/**
|
|
387
|
-
*
|
|
356
|
+
* Filter data by response status code.
|
|
388
357
|
*/
|
|
389
|
-
|
|
358
|
+
responseCode?: string;
|
|
390
359
|
/**
|
|
391
|
-
*
|
|
360
|
+
* Filter data by request type.
|
|
392
361
|
*/
|
|
393
|
-
|
|
362
|
+
requestType?: 'data' | 'rpc';
|
|
394
363
|
/**
|
|
395
|
-
*
|
|
364
|
+
* Filter data by API key ID.
|
|
396
365
|
*/
|
|
397
|
-
|
|
398
|
-
}): CancelablePromise<
|
|
366
|
+
apiKeyId?: string;
|
|
367
|
+
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
399
368
|
/**
|
|
400
|
-
*
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
404
|
-
* @returns ListErc721BalancesResponse Successful response
|
|
369
|
+
* Get logs for requests made by client
|
|
370
|
+
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
371
|
+
* @returns LogsResponseDTO Successful response
|
|
405
372
|
* @throws ApiError
|
|
406
373
|
*/
|
|
407
|
-
|
|
374
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
|
|
408
375
|
/**
|
|
409
|
-
*
|
|
376
|
+
* Organization ID to fetch usage metrics for
|
|
410
377
|
*/
|
|
411
|
-
|
|
378
|
+
orgId?: string;
|
|
412
379
|
/**
|
|
413
|
-
*
|
|
380
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
414
381
|
*/
|
|
415
|
-
|
|
382
|
+
startTimestamp?: number;
|
|
416
383
|
/**
|
|
417
|
-
*
|
|
384
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
418
385
|
*/
|
|
419
|
-
|
|
386
|
+
endTimestamp?: number;
|
|
420
387
|
/**
|
|
421
|
-
*
|
|
388
|
+
* Filter data by chain ID.
|
|
422
389
|
*/
|
|
423
|
-
|
|
390
|
+
chainId?: string;
|
|
424
391
|
/**
|
|
425
|
-
*
|
|
392
|
+
* Filter data by request path.
|
|
426
393
|
*/
|
|
427
|
-
|
|
428
|
-
}): CancelablePromise<ListErc721BalancesResponse>;
|
|
429
|
-
/**
|
|
430
|
-
* List ERC-1155 balances
|
|
431
|
-
* Lists ERC-1155 token balances of a wallet address.
|
|
432
|
-
*
|
|
433
|
-
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
434
|
-
*
|
|
435
|
-
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
436
|
-
* @returns ListErc1155BalancesResponse Successful response
|
|
437
|
-
* @throws ApiError
|
|
438
|
-
*/
|
|
439
|
-
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
394
|
+
requestPath?: string;
|
|
440
395
|
/**
|
|
441
|
-
*
|
|
396
|
+
* Filter data by response status code.
|
|
442
397
|
*/
|
|
443
|
-
|
|
398
|
+
responseCode?: string;
|
|
444
399
|
/**
|
|
445
|
-
*
|
|
400
|
+
* Filter data by request type.
|
|
446
401
|
*/
|
|
447
|
-
|
|
402
|
+
requestType?: 'data' | 'rpc';
|
|
448
403
|
/**
|
|
449
|
-
*
|
|
404
|
+
* Filter data by API key ID.
|
|
450
405
|
*/
|
|
451
|
-
|
|
406
|
+
apiKeyId?: string;
|
|
452
407
|
/**
|
|
453
408
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
454
409
|
*/
|
|
455
410
|
pageToken?: string;
|
|
456
411
|
/**
|
|
457
|
-
* The maximum number of items to return.
|
|
412
|
+
* The maximum number of items to return.
|
|
458
413
|
*/
|
|
459
414
|
pageSize?: number;
|
|
460
|
-
|
|
461
|
-
* A contract addresses to filter by.
|
|
462
|
-
*/
|
|
463
|
-
contractAddress?: string;
|
|
464
|
-
}): CancelablePromise<ListErc1155BalancesResponse>;
|
|
415
|
+
}): CancelablePromise<LogsResponseDTO>;
|
|
465
416
|
/**
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
470
|
-
* @returns ListCollectibleBalancesResponse Successful response
|
|
417
|
+
* Get usage metrics for the Subnet RPC
|
|
418
|
+
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
+
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
471
420
|
* @throws ApiError
|
|
472
421
|
*/
|
|
473
|
-
|
|
422
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
474
423
|
/**
|
|
475
|
-
*
|
|
424
|
+
* Query param for setting time interval of data aggregation.
|
|
476
425
|
*/
|
|
477
|
-
|
|
426
|
+
timeInterval?: string;
|
|
478
427
|
/**
|
|
479
|
-
*
|
|
428
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
480
429
|
*/
|
|
481
|
-
|
|
430
|
+
startTimestamp?: number;
|
|
482
431
|
/**
|
|
483
|
-
*
|
|
432
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
484
433
|
*/
|
|
485
|
-
|
|
434
|
+
endTimestamp?: number;
|
|
486
435
|
/**
|
|
487
|
-
*
|
|
436
|
+
* Query param for the criterion used for grouping metrics
|
|
488
437
|
*/
|
|
489
|
-
|
|
438
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
490
439
|
/**
|
|
491
|
-
*
|
|
440
|
+
* Filter data by chain ID.
|
|
492
441
|
*/
|
|
493
|
-
|
|
494
|
-
|
|
442
|
+
chainId?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Filter data by request path.
|
|
445
|
+
*/
|
|
446
|
+
requestPath?: string;
|
|
447
|
+
/**
|
|
448
|
+
* Filter data by response status code.
|
|
449
|
+
*/
|
|
450
|
+
responseCode?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Filter data by RPC method.
|
|
453
|
+
*/
|
|
454
|
+
rpcMethod?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Filter data by Rl Bypass API Token.
|
|
457
|
+
*/
|
|
458
|
+
rlBypassApiToken?: string;
|
|
459
|
+
}): CancelablePromise<RpcUsageMetricsResponseDTO>;
|
|
495
460
|
}
|
|
496
461
|
|
|
497
|
-
|
|
462
|
+
declare class DefaultService {
|
|
463
|
+
readonly httpRequest: BaseHttpRequest;
|
|
464
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
498
465
|
/**
|
|
499
|
-
*
|
|
466
|
+
* @returns any
|
|
467
|
+
* @throws ApiError
|
|
500
468
|
*/
|
|
501
|
-
|
|
469
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* ISO 4217 currency code.
|
|
474
|
+
*/
|
|
475
|
+
declare enum CurrencyCode {
|
|
476
|
+
USD = "usd",
|
|
477
|
+
EUR = "eur",
|
|
478
|
+
AUD = "aud",
|
|
479
|
+
CAD = "cad",
|
|
480
|
+
CHF = "chf",
|
|
481
|
+
CLP = "clp",
|
|
482
|
+
CNY = "cny",
|
|
483
|
+
CZK = "czk",
|
|
484
|
+
DKK = "dkk",
|
|
485
|
+
GBP = "gbp",
|
|
486
|
+
HKD = "hkd",
|
|
487
|
+
HUF = "huf",
|
|
488
|
+
JPY = "jpy",
|
|
489
|
+
NZD = "nzd"
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
type Money = {
|
|
493
|
+
currencyCode: CurrencyCode;
|
|
502
494
|
/**
|
|
503
|
-
*
|
|
495
|
+
* Monetary value in base 10 decimals.
|
|
504
496
|
*/
|
|
505
|
-
|
|
497
|
+
value: number;
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
type NativeTokenBalance = {
|
|
506
501
|
/**
|
|
507
|
-
* The
|
|
502
|
+
* The contract name.
|
|
508
503
|
*/
|
|
509
|
-
|
|
504
|
+
name: string;
|
|
510
505
|
/**
|
|
511
|
-
* The
|
|
506
|
+
* The contract symbol.
|
|
512
507
|
*/
|
|
513
|
-
|
|
508
|
+
symbol: string;
|
|
514
509
|
/**
|
|
515
|
-
* The
|
|
510
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
516
511
|
*/
|
|
517
|
-
|
|
512
|
+
decimals: number;
|
|
518
513
|
/**
|
|
519
|
-
* The
|
|
514
|
+
* The logo uri for the address.
|
|
520
515
|
*/
|
|
521
|
-
|
|
516
|
+
logoUri?: string;
|
|
522
517
|
/**
|
|
523
|
-
* The
|
|
518
|
+
* The evm chain id.
|
|
524
519
|
*/
|
|
525
|
-
|
|
526
|
-
gasCost: string;
|
|
520
|
+
chainId: string;
|
|
527
521
|
/**
|
|
528
|
-
* The
|
|
522
|
+
* The token price, if available.
|
|
529
523
|
*/
|
|
530
|
-
|
|
524
|
+
price?: Money;
|
|
531
525
|
/**
|
|
532
|
-
* The
|
|
526
|
+
* The address balance for the token, in units specified by the `decimals` value for the contract.
|
|
533
527
|
*/
|
|
534
|
-
|
|
528
|
+
balance: string;
|
|
535
529
|
/**
|
|
536
|
-
* The
|
|
530
|
+
* The monetary value of the balance, if a price is available for the token.
|
|
537
531
|
*/
|
|
538
|
-
|
|
532
|
+
balanceValue?: Money;
|
|
539
533
|
};
|
|
540
534
|
|
|
541
|
-
type
|
|
542
|
-
/**
|
|
543
|
-
* The block number on the chain.
|
|
544
|
-
*/
|
|
545
|
-
blockNumber: string;
|
|
535
|
+
type GetNativeBalanceResponse = {
|
|
546
536
|
/**
|
|
547
|
-
* The
|
|
537
|
+
* The native token balance for the address.
|
|
548
538
|
*/
|
|
549
|
-
|
|
539
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* The metadata indexing status of the nft.
|
|
544
|
+
*/
|
|
545
|
+
declare enum NftTokenMetadataStatus {
|
|
546
|
+
UNKNOWN = "UNKNOWN",
|
|
547
|
+
MISSING_TOKEN = "MISSING_TOKEN",
|
|
548
|
+
INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
|
|
549
|
+
INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
|
|
550
|
+
UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
|
|
551
|
+
THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
|
|
552
|
+
METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
|
|
553
|
+
INVALID_METADATA = "INVALID_METADATA",
|
|
554
|
+
INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
|
|
555
|
+
INDEXED = "INDEXED",
|
|
556
|
+
UNINDEXED = "UNINDEXED"
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
type Erc1155TokenMetadata = {
|
|
560
|
+
indexStatus: NftTokenMetadataStatus;
|
|
561
|
+
metadataLastUpdatedTimestamp?: number;
|
|
562
|
+
name?: string;
|
|
563
|
+
symbol?: string;
|
|
564
|
+
imageUri?: string;
|
|
565
|
+
description?: string;
|
|
566
|
+
animationUri?: string;
|
|
567
|
+
externalUrl?: string;
|
|
568
|
+
background?: string;
|
|
569
|
+
decimals?: number;
|
|
570
|
+
properties?: string;
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
type Erc1155TokenBalance = {
|
|
550
574
|
/**
|
|
551
|
-
*
|
|
575
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
552
576
|
*/
|
|
553
|
-
|
|
577
|
+
address: string;
|
|
578
|
+
ercType: Erc1155TokenBalance.ercType;
|
|
579
|
+
tokenId: string;
|
|
580
|
+
tokenUri: string;
|
|
581
|
+
metadata: Erc1155TokenMetadata;
|
|
554
582
|
/**
|
|
555
|
-
* The
|
|
583
|
+
* The evm chain id.
|
|
556
584
|
*/
|
|
557
|
-
|
|
585
|
+
chainId: string;
|
|
558
586
|
/**
|
|
559
|
-
* The
|
|
587
|
+
* The address balance for the token, in units specified by the `decimals` value for the contract.
|
|
560
588
|
*/
|
|
561
|
-
|
|
589
|
+
balance: string;
|
|
590
|
+
};
|
|
591
|
+
declare namespace Erc1155TokenBalance {
|
|
592
|
+
enum ercType {
|
|
593
|
+
ERC_1155 = "ERC-1155"
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
type Erc721TokenMetadata = {
|
|
598
|
+
indexStatus: NftTokenMetadataStatus;
|
|
599
|
+
metadataLastUpdatedTimestamp?: number;
|
|
600
|
+
name?: string;
|
|
601
|
+
symbol?: string;
|
|
602
|
+
imageUri?: string;
|
|
603
|
+
description?: string;
|
|
604
|
+
animationUri?: string;
|
|
605
|
+
externalUrl?: string;
|
|
606
|
+
background?: string;
|
|
607
|
+
attributes?: string;
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
type Erc721TokenBalance = {
|
|
562
611
|
/**
|
|
563
|
-
*
|
|
612
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
564
613
|
*/
|
|
565
|
-
|
|
614
|
+
address: string;
|
|
566
615
|
/**
|
|
567
|
-
* The
|
|
616
|
+
* The contract name.
|
|
568
617
|
*/
|
|
569
|
-
|
|
570
|
-
gasCost: string;
|
|
618
|
+
name: string;
|
|
571
619
|
/**
|
|
572
|
-
* The
|
|
620
|
+
* The contract symbol.
|
|
573
621
|
*/
|
|
574
|
-
|
|
622
|
+
symbol: string;
|
|
623
|
+
ercType: Erc721TokenBalance.ercType;
|
|
624
|
+
tokenId: string;
|
|
625
|
+
tokenUri: string;
|
|
626
|
+
metadata: Erc721TokenMetadata;
|
|
575
627
|
/**
|
|
576
|
-
*
|
|
628
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
577
629
|
*/
|
|
578
|
-
|
|
630
|
+
ownerAddress?: string;
|
|
579
631
|
/**
|
|
580
|
-
* The
|
|
632
|
+
* The evm chain id.
|
|
581
633
|
*/
|
|
582
|
-
|
|
634
|
+
chainId: string;
|
|
583
635
|
};
|
|
636
|
+
declare namespace Erc721TokenBalance {
|
|
637
|
+
enum ercType {
|
|
638
|
+
ERC_721 = "ERC-721"
|
|
639
|
+
}
|
|
640
|
+
}
|
|
584
641
|
|
|
585
|
-
type
|
|
642
|
+
type ListCollectibleBalancesResponse = {
|
|
586
643
|
/**
|
|
587
644
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
588
645
|
*/
|
|
589
646
|
nextPageToken?: string;
|
|
590
|
-
|
|
647
|
+
/**
|
|
648
|
+
* The list of ERC-721 and ERC-1155 token balances for the address.
|
|
649
|
+
*/
|
|
650
|
+
collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
|
|
591
651
|
};
|
|
592
652
|
|
|
593
|
-
|
|
594
|
-
readonly httpRequest: BaseHttpRequest;
|
|
595
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
653
|
+
type ListErc1155BalancesResponse = {
|
|
596
654
|
/**
|
|
597
|
-
*
|
|
598
|
-
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
599
|
-
* @returns ListEvmBlocksResponse Successful response
|
|
600
|
-
* @throws ApiError
|
|
655
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
601
656
|
*/
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
605
|
-
*/
|
|
606
|
-
chainId: string;
|
|
607
|
-
/**
|
|
608
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
609
|
-
*/
|
|
610
|
-
pageToken?: string;
|
|
611
|
-
/**
|
|
612
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
613
|
-
*/
|
|
614
|
-
pageSize?: number;
|
|
615
|
-
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
657
|
+
nextPageToken?: string;
|
|
616
658
|
/**
|
|
617
|
-
*
|
|
618
|
-
* Gets the details of an individual block on the EVM-compatible chain.
|
|
619
|
-
* @returns GetEvmBlockResponse Successful response
|
|
620
|
-
* @throws ApiError
|
|
659
|
+
* The list of ERC-1155 token balances for the address.
|
|
621
660
|
*/
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
|
-
*/
|
|
626
|
-
chainId: string;
|
|
627
|
-
/**
|
|
628
|
-
* A block identifier which is either a block number or the block hash.
|
|
629
|
-
*/
|
|
630
|
-
blockId: string;
|
|
631
|
-
}): CancelablePromise<GetEvmBlockResponse>;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
636
|
-
*/
|
|
637
|
-
declare enum ChainStatus {
|
|
638
|
-
OK = "OK",
|
|
639
|
-
UNAVAILABLE = "UNAVAILABLE"
|
|
640
|
-
}
|
|
661
|
+
erc1155TokenBalances: Array<Erc1155TokenBalance>;
|
|
662
|
+
};
|
|
641
663
|
|
|
642
|
-
type
|
|
664
|
+
type Erc20TokenBalance = {
|
|
665
|
+
/**
|
|
666
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
667
|
+
*/
|
|
668
|
+
address: string;
|
|
643
669
|
/**
|
|
644
670
|
* The contract name.
|
|
645
671
|
*/
|
|
@@ -656,9 +682,394 @@ type NetworkToken = {
|
|
|
656
682
|
* The logo uri for the address.
|
|
657
683
|
*/
|
|
658
684
|
logoUri?: string;
|
|
659
|
-
|
|
685
|
+
ercType: Erc20TokenBalance.ercType;
|
|
686
|
+
/**
|
|
687
|
+
* The token price, if available.
|
|
688
|
+
*/
|
|
689
|
+
price?: Money;
|
|
690
|
+
/**
|
|
691
|
+
* The evm chain id.
|
|
692
|
+
*/
|
|
693
|
+
chainId: string;
|
|
694
|
+
/**
|
|
695
|
+
* The address balance for the token, in units specified by the `decimals` value for the contract.
|
|
696
|
+
*/
|
|
697
|
+
balance: string;
|
|
698
|
+
/**
|
|
699
|
+
* The monetary value of the balance, if a price is available for the token.
|
|
700
|
+
*/
|
|
701
|
+
balanceValue?: Money;
|
|
660
702
|
};
|
|
661
|
-
|
|
703
|
+
declare namespace Erc20TokenBalance {
|
|
704
|
+
enum ercType {
|
|
705
|
+
ERC_20 = "ERC-20"
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
type ListErc20BalancesResponse = {
|
|
710
|
+
/**
|
|
711
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
712
|
+
*/
|
|
713
|
+
nextPageToken?: string;
|
|
714
|
+
/**
|
|
715
|
+
* The list of ERC-20 token balances for the address.
|
|
716
|
+
*/
|
|
717
|
+
erc20TokenBalances: Array<Erc20TokenBalance>;
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
type ListErc721BalancesResponse = {
|
|
721
|
+
/**
|
|
722
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
723
|
+
*/
|
|
724
|
+
nextPageToken?: string;
|
|
725
|
+
/**
|
|
726
|
+
* The list of ERC-721 token balances for the address.
|
|
727
|
+
*/
|
|
728
|
+
erc721TokenBalances: Array<Erc721TokenBalance>;
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
declare class EvmBalancesService {
|
|
732
|
+
readonly httpRequest: BaseHttpRequest;
|
|
733
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
734
|
+
/**
|
|
735
|
+
* Get native token balance
|
|
736
|
+
* Gets native token balance of a wallet address.
|
|
737
|
+
*
|
|
738
|
+
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
739
|
+
* @returns GetNativeBalanceResponse Successful response
|
|
740
|
+
* @throws ApiError
|
|
741
|
+
*/
|
|
742
|
+
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
743
|
+
/**
|
|
744
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
745
|
+
*/
|
|
746
|
+
chainId: string;
|
|
747
|
+
/**
|
|
748
|
+
* A wallet address.
|
|
749
|
+
*/
|
|
750
|
+
address: string;
|
|
751
|
+
/**
|
|
752
|
+
* The block number, if not defined the block number will be the latest block.
|
|
753
|
+
*/
|
|
754
|
+
blockNumber?: string;
|
|
755
|
+
/**
|
|
756
|
+
* The currency that return values should use. Defaults to USD.
|
|
757
|
+
*/
|
|
758
|
+
currency?: CurrencyCode;
|
|
759
|
+
}): CancelablePromise<GetNativeBalanceResponse>;
|
|
760
|
+
/**
|
|
761
|
+
* List ERC-20 balances
|
|
762
|
+
* Lists ERC-20 token balances of a wallet address.
|
|
763
|
+
*
|
|
764
|
+
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
765
|
+
*
|
|
766
|
+
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
767
|
+
* @returns ListErc20BalancesResponse Successful response
|
|
768
|
+
* @throws ApiError
|
|
769
|
+
*/
|
|
770
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
771
|
+
/**
|
|
772
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
773
|
+
*/
|
|
774
|
+
chainId: string;
|
|
775
|
+
/**
|
|
776
|
+
* A wallet address.
|
|
777
|
+
*/
|
|
778
|
+
address: string;
|
|
779
|
+
/**
|
|
780
|
+
* The block number, if not defined the block number will be the latest block.
|
|
781
|
+
*/
|
|
782
|
+
blockNumber?: string;
|
|
783
|
+
/**
|
|
784
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
785
|
+
*/
|
|
786
|
+
pageToken?: string;
|
|
787
|
+
/**
|
|
788
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
789
|
+
*/
|
|
790
|
+
pageSize?: number;
|
|
791
|
+
/**
|
|
792
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
793
|
+
*/
|
|
794
|
+
filterSpamTokens?: boolean;
|
|
795
|
+
/**
|
|
796
|
+
* A comma separated list of contract addresses to filter by.
|
|
797
|
+
*/
|
|
798
|
+
contractAddresses?: string;
|
|
799
|
+
/**
|
|
800
|
+
* The currency that return values should use. Defaults to USD.
|
|
801
|
+
*/
|
|
802
|
+
currency?: CurrencyCode;
|
|
803
|
+
}): CancelablePromise<ListErc20BalancesResponse>;
|
|
804
|
+
/**
|
|
805
|
+
* List ERC-721 balances
|
|
806
|
+
* Lists ERC-721 token balances of a wallet address.
|
|
807
|
+
*
|
|
808
|
+
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
809
|
+
* @returns ListErc721BalancesResponse Successful response
|
|
810
|
+
* @throws ApiError
|
|
811
|
+
*/
|
|
812
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
813
|
+
/**
|
|
814
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
815
|
+
*/
|
|
816
|
+
chainId: string;
|
|
817
|
+
/**
|
|
818
|
+
* A wallet address.
|
|
819
|
+
*/
|
|
820
|
+
address: string;
|
|
821
|
+
/**
|
|
822
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
823
|
+
*/
|
|
824
|
+
pageToken?: string;
|
|
825
|
+
/**
|
|
826
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
827
|
+
*/
|
|
828
|
+
pageSize?: number;
|
|
829
|
+
/**
|
|
830
|
+
* A contract addresses to filter by.
|
|
831
|
+
*/
|
|
832
|
+
contractAddress?: string;
|
|
833
|
+
}): CancelablePromise<ListErc721BalancesResponse>;
|
|
834
|
+
/**
|
|
835
|
+
* List ERC-1155 balances
|
|
836
|
+
* Lists ERC-1155 token balances of a wallet address.
|
|
837
|
+
*
|
|
838
|
+
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
839
|
+
*
|
|
840
|
+
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
841
|
+
* @returns ListErc1155BalancesResponse Successful response
|
|
842
|
+
* @throws ApiError
|
|
843
|
+
*/
|
|
844
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
845
|
+
/**
|
|
846
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
847
|
+
*/
|
|
848
|
+
chainId: string;
|
|
849
|
+
/**
|
|
850
|
+
* A wallet address.
|
|
851
|
+
*/
|
|
852
|
+
address: string;
|
|
853
|
+
/**
|
|
854
|
+
* The block number, if not defined the block number will be the latest block.
|
|
855
|
+
*/
|
|
856
|
+
blockNumber?: string;
|
|
857
|
+
/**
|
|
858
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
859
|
+
*/
|
|
860
|
+
pageToken?: string;
|
|
861
|
+
/**
|
|
862
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
863
|
+
*/
|
|
864
|
+
pageSize?: number;
|
|
865
|
+
/**
|
|
866
|
+
* A contract addresses to filter by.
|
|
867
|
+
*/
|
|
868
|
+
contractAddress?: string;
|
|
869
|
+
}): CancelablePromise<ListErc1155BalancesResponse>;
|
|
870
|
+
/**
|
|
871
|
+
* List collectible (ERC-721/ERC-1155) balances
|
|
872
|
+
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
873
|
+
*
|
|
874
|
+
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
875
|
+
* @returns ListCollectibleBalancesResponse Successful response
|
|
876
|
+
* @throws ApiError
|
|
877
|
+
*/
|
|
878
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
879
|
+
/**
|
|
880
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
881
|
+
*/
|
|
882
|
+
chainId: string;
|
|
883
|
+
/**
|
|
884
|
+
* A wallet address.
|
|
885
|
+
*/
|
|
886
|
+
address: string;
|
|
887
|
+
/**
|
|
888
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
889
|
+
*/
|
|
890
|
+
pageToken?: string;
|
|
891
|
+
/**
|
|
892
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
893
|
+
*/
|
|
894
|
+
pageSize?: number;
|
|
895
|
+
/**
|
|
896
|
+
* A contract addresses to filter by.
|
|
897
|
+
*/
|
|
898
|
+
contractAddress?: string;
|
|
899
|
+
}): CancelablePromise<ListCollectibleBalancesResponse>;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
type GetEvmBlockResponse = {
|
|
903
|
+
/**
|
|
904
|
+
* The block number on the chain.
|
|
905
|
+
*/
|
|
906
|
+
blockNumber: string;
|
|
907
|
+
/**
|
|
908
|
+
* The block finality timestamp.
|
|
909
|
+
*/
|
|
910
|
+
blockTimestamp: number;
|
|
911
|
+
/**
|
|
912
|
+
* The block hash identifier.
|
|
913
|
+
*/
|
|
914
|
+
blockHash: string;
|
|
915
|
+
/**
|
|
916
|
+
* The number of evm transactions in the block.
|
|
917
|
+
*/
|
|
918
|
+
txCount: number;
|
|
919
|
+
/**
|
|
920
|
+
* The base gas fee for a transaction to be included in the block.
|
|
921
|
+
*/
|
|
922
|
+
baseFee: string;
|
|
923
|
+
/**
|
|
924
|
+
* The gas used for transactions in the block.
|
|
925
|
+
*/
|
|
926
|
+
gasUsed: string;
|
|
927
|
+
/**
|
|
928
|
+
* The total gas limit set for transactions in the block.
|
|
929
|
+
*/
|
|
930
|
+
gasLimit: string;
|
|
931
|
+
gasCost: string;
|
|
932
|
+
/**
|
|
933
|
+
* The hash of the parent block.
|
|
934
|
+
*/
|
|
935
|
+
parentHash: string;
|
|
936
|
+
/**
|
|
937
|
+
* The amount of fees spent/burned for transactions in the block.
|
|
938
|
+
*/
|
|
939
|
+
feesSpent: string;
|
|
940
|
+
/**
|
|
941
|
+
* The cumulative number of transactions for the chain including this block.
|
|
942
|
+
*/
|
|
943
|
+
cumulativeTransactions: string;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
type EvmBlock = {
|
|
947
|
+
/**
|
|
948
|
+
* The block number on the chain.
|
|
949
|
+
*/
|
|
950
|
+
blockNumber: string;
|
|
951
|
+
/**
|
|
952
|
+
* The block finality timestamp.
|
|
953
|
+
*/
|
|
954
|
+
blockTimestamp: number;
|
|
955
|
+
/**
|
|
956
|
+
* The block hash identifier.
|
|
957
|
+
*/
|
|
958
|
+
blockHash: string;
|
|
959
|
+
/**
|
|
960
|
+
* The number of evm transactions in the block.
|
|
961
|
+
*/
|
|
962
|
+
txCount: number;
|
|
963
|
+
/**
|
|
964
|
+
* The base gas fee for a transaction to be included in the block.
|
|
965
|
+
*/
|
|
966
|
+
baseFee: string;
|
|
967
|
+
/**
|
|
968
|
+
* The gas used for transactions in the block.
|
|
969
|
+
*/
|
|
970
|
+
gasUsed: string;
|
|
971
|
+
/**
|
|
972
|
+
* The total gas limit set for transactions in the block.
|
|
973
|
+
*/
|
|
974
|
+
gasLimit: string;
|
|
975
|
+
gasCost: string;
|
|
976
|
+
/**
|
|
977
|
+
* The hash of the parent block.
|
|
978
|
+
*/
|
|
979
|
+
parentHash: string;
|
|
980
|
+
/**
|
|
981
|
+
* The amount of fees spent/burned for transactions in the block.
|
|
982
|
+
*/
|
|
983
|
+
feesSpent: string;
|
|
984
|
+
/**
|
|
985
|
+
* The cumulative number of transactions for the chain including this block.
|
|
986
|
+
*/
|
|
987
|
+
cumulativeTransactions: string;
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
type ListEvmBlocksResponse = {
|
|
991
|
+
/**
|
|
992
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
993
|
+
*/
|
|
994
|
+
nextPageToken?: string;
|
|
995
|
+
blocks: Array<EvmBlock>;
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
declare class EvmBlocksService {
|
|
999
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1000
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1001
|
+
/**
|
|
1002
|
+
* List latest blocks
|
|
1003
|
+
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
1004
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1005
|
+
* @throws ApiError
|
|
1006
|
+
*/
|
|
1007
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
1008
|
+
/**
|
|
1009
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1010
|
+
*/
|
|
1011
|
+
chainId: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1014
|
+
*/
|
|
1015
|
+
pageToken?: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1018
|
+
*/
|
|
1019
|
+
pageSize?: number;
|
|
1020
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Get block
|
|
1023
|
+
* Gets the details of an individual block on the EVM-compatible chain.
|
|
1024
|
+
* @returns GetEvmBlockResponse Successful response
|
|
1025
|
+
* @throws ApiError
|
|
1026
|
+
*/
|
|
1027
|
+
getBlock({ chainId, blockId, }: {
|
|
1028
|
+
/**
|
|
1029
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1030
|
+
*/
|
|
1031
|
+
chainId: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* A block identifier which is either a block number or the block hash.
|
|
1034
|
+
*/
|
|
1035
|
+
blockId: string;
|
|
1036
|
+
}): CancelablePromise<GetEvmBlockResponse>;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
declare enum ApiFeature {
|
|
1040
|
+
NFT_INDEXING = "nftIndexing",
|
|
1041
|
+
WEBHOOKS = "webhooks",
|
|
1042
|
+
TELEPORTER = "teleporter"
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
1047
|
+
*/
|
|
1048
|
+
declare enum ChainStatus {
|
|
1049
|
+
OK = "OK",
|
|
1050
|
+
UNAVAILABLE = "UNAVAILABLE"
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
type NetworkToken = {
|
|
1054
|
+
/**
|
|
1055
|
+
* The contract name.
|
|
1056
|
+
*/
|
|
1057
|
+
name: string;
|
|
1058
|
+
/**
|
|
1059
|
+
* The contract symbol.
|
|
1060
|
+
*/
|
|
1061
|
+
symbol: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1064
|
+
*/
|
|
1065
|
+
decimals: number;
|
|
1066
|
+
/**
|
|
1067
|
+
* The logo uri for the address.
|
|
1068
|
+
*/
|
|
1069
|
+
logoUri?: string;
|
|
1070
|
+
description?: string;
|
|
1071
|
+
};
|
|
1072
|
+
|
|
662
1073
|
type UtilityAddresses = {
|
|
663
1074
|
multicall?: string;
|
|
664
1075
|
};
|
|
@@ -686,14 +1097,9 @@ type GetChainResponse = {
|
|
|
686
1097
|
networkToken: NetworkToken;
|
|
687
1098
|
chainLogoUri?: string;
|
|
688
1099
|
private?: boolean;
|
|
689
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1100
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
690
1101
|
};
|
|
691
1102
|
|
|
692
|
-
declare enum GlacierApiFeature {
|
|
693
|
-
NFT_INDEXING = "nftIndexing",
|
|
694
|
-
WEBHOOKS = "webhooks"
|
|
695
|
-
}
|
|
696
|
-
|
|
697
1103
|
type ChainInfo = {
|
|
698
1104
|
chainId: string;
|
|
699
1105
|
status: ChainStatus;
|
|
@@ -711,16 +1117,23 @@ type ChainInfo = {
|
|
|
711
1117
|
networkToken: NetworkToken;
|
|
712
1118
|
chainLogoUri?: string;
|
|
713
1119
|
private?: boolean;
|
|
714
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1120
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
|
+
};
|
|
1122
|
+
|
|
1123
|
+
type ListAddressChainsResponse = {
|
|
1124
|
+
indexedChains?: Array<ChainInfo>;
|
|
1125
|
+
unindexedChains?: Array<string>;
|
|
715
1126
|
};
|
|
716
1127
|
|
|
717
1128
|
type ListChainsResponse = {
|
|
718
1129
|
chains: Array<ChainInfo>;
|
|
719
1130
|
};
|
|
720
1131
|
|
|
721
|
-
declare enum
|
|
1132
|
+
declare enum Network {
|
|
722
1133
|
MAINNET = "mainnet",
|
|
723
|
-
|
|
1134
|
+
FUJI = "fuji",
|
|
1135
|
+
TESTNET = "testnet",
|
|
1136
|
+
DEVNET = "devnet"
|
|
724
1137
|
}
|
|
725
1138
|
|
|
726
1139
|
declare class EvmChainsService {
|
|
@@ -734,13 +1147,13 @@ declare class EvmChainsService {
|
|
|
734
1147
|
*/
|
|
735
1148
|
supportedChains({ network, feature, }: {
|
|
736
1149
|
/**
|
|
737
|
-
* mainnet or testnet.
|
|
1150
|
+
* Either mainnet or testnet/fuji.
|
|
738
1151
|
*/
|
|
739
|
-
network?:
|
|
1152
|
+
network?: Network;
|
|
740
1153
|
/**
|
|
741
1154
|
* Filter by feature.
|
|
742
1155
|
*/
|
|
743
|
-
feature?:
|
|
1156
|
+
feature?: ApiFeature;
|
|
744
1157
|
}): CancelablePromise<ListChainsResponse>;
|
|
745
1158
|
/**
|
|
746
1159
|
* Get chain information
|
|
@@ -750,10 +1163,22 @@ declare class EvmChainsService {
|
|
|
750
1163
|
*/
|
|
751
1164
|
getChainInfo({ chainId, }: {
|
|
752
1165
|
/**
|
|
753
|
-
* A supported evm chain id
|
|
1166
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
1167
|
*/
|
|
755
1168
|
chainId: string;
|
|
756
1169
|
}): CancelablePromise<GetChainResponse>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Get chains for address
|
|
1172
|
+
* Gets the list of chains an address has interacted with.
|
|
1173
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1174
|
+
* @throws ApiError
|
|
1175
|
+
*/
|
|
1176
|
+
getAddressChains({ address, }: {
|
|
1177
|
+
/**
|
|
1178
|
+
* A wallet address.
|
|
1179
|
+
*/
|
|
1180
|
+
address: string;
|
|
1181
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
757
1182
|
}
|
|
758
1183
|
|
|
759
1184
|
type ImageAsset = {
|
|
@@ -1045,7 +1470,7 @@ declare class EvmContractsService {
|
|
|
1045
1470
|
*/
|
|
1046
1471
|
getContractMetadata({ chainId, address, }: {
|
|
1047
1472
|
/**
|
|
1048
|
-
* A supported evm chain id
|
|
1473
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
1474
|
*/
|
|
1050
1475
|
chainId: string;
|
|
1051
1476
|
/**
|
|
@@ -1061,7 +1486,7 @@ declare class EvmContractsService {
|
|
|
1061
1486
|
*/
|
|
1062
1487
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1063
1488
|
/**
|
|
1064
|
-
* A supported evm chain id
|
|
1489
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
1490
|
*/
|
|
1066
1491
|
chainId: string;
|
|
1067
1492
|
/**
|
|
@@ -1611,7 +2036,7 @@ declare class EvmTransactionsService {
|
|
|
1611
2036
|
*/
|
|
1612
2037
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1613
2038
|
/**
|
|
1614
|
-
* A supported evm chain id
|
|
2039
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1615
2040
|
*/
|
|
1616
2041
|
chainId: string;
|
|
1617
2042
|
/**
|
|
@@ -1631,7 +2056,7 @@ declare class EvmTransactionsService {
|
|
|
1631
2056
|
*/
|
|
1632
2057
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1633
2058
|
/**
|
|
1634
|
-
* A supported evm chain id
|
|
2059
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1635
2060
|
*/
|
|
1636
2061
|
chainId: string;
|
|
1637
2062
|
/**
|
|
@@ -1653,175 +2078,9 @@ declare class EvmTransactionsService {
|
|
|
1653
2078
|
* @returns ListTransfersResponse Successful response
|
|
1654
2079
|
* @throws ApiError
|
|
1655
2080
|
*/
|
|
1656
|
-
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1657
|
-
/**
|
|
1658
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1659
|
-
*/
|
|
1660
|
-
chainId: string;
|
|
1661
|
-
/**
|
|
1662
|
-
* A wallet address.
|
|
1663
|
-
*/
|
|
1664
|
-
address: string;
|
|
1665
|
-
/**
|
|
1666
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1667
|
-
*/
|
|
1668
|
-
startBlock?: number;
|
|
1669
|
-
/**
|
|
1670
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1671
|
-
*/
|
|
1672
|
-
endBlock?: number;
|
|
1673
|
-
/**
|
|
1674
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1675
|
-
*/
|
|
1676
|
-
pageToken?: string;
|
|
1677
|
-
/**
|
|
1678
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1679
|
-
*/
|
|
1680
|
-
pageSize?: number;
|
|
1681
|
-
}): CancelablePromise<ListTransfersResponse>;
|
|
1682
|
-
/**
|
|
1683
|
-
* List transactions
|
|
1684
|
-
* Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
|
|
1685
|
-
*
|
|
1686
|
-
* Filterable by block ranges.
|
|
1687
|
-
* @returns ListTransactionDetailsResponse Successful response
|
|
1688
|
-
* @throws ApiError
|
|
1689
|
-
*/
|
|
1690
|
-
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1691
|
-
/**
|
|
1692
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1693
|
-
*/
|
|
1694
|
-
chainId: string;
|
|
1695
|
-
/**
|
|
1696
|
-
* A wallet address.
|
|
1697
|
-
*/
|
|
1698
|
-
address: string;
|
|
1699
|
-
/**
|
|
1700
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1701
|
-
*/
|
|
1702
|
-
pageToken?: string;
|
|
1703
|
-
/**
|
|
1704
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1705
|
-
*/
|
|
1706
|
-
pageSize?: number;
|
|
1707
|
-
/**
|
|
1708
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1709
|
-
*/
|
|
1710
|
-
startBlock?: number;
|
|
1711
|
-
/**
|
|
1712
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1713
|
-
*/
|
|
1714
|
-
endBlock?: number;
|
|
1715
|
-
/**
|
|
1716
|
-
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
1717
|
-
*/
|
|
1718
|
-
sortOrder?: SortOrder;
|
|
1719
|
-
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
1720
|
-
/**
|
|
1721
|
-
* List native transactions
|
|
1722
|
-
* Lists native transactions for an address. Filterable by block range.
|
|
1723
|
-
* @returns ListNativeTransactionsResponse Successful response
|
|
1724
|
-
* @throws ApiError
|
|
1725
|
-
*/
|
|
1726
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1727
|
-
/**
|
|
1728
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1729
|
-
*/
|
|
1730
|
-
chainId: string;
|
|
1731
|
-
/**
|
|
1732
|
-
* A wallet address.
|
|
1733
|
-
*/
|
|
1734
|
-
address: string;
|
|
1735
|
-
/**
|
|
1736
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1737
|
-
*/
|
|
1738
|
-
startBlock?: number;
|
|
1739
|
-
/**
|
|
1740
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1741
|
-
*/
|
|
1742
|
-
endBlock?: number;
|
|
1743
|
-
/**
|
|
1744
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1745
|
-
*/
|
|
1746
|
-
pageToken?: string;
|
|
1747
|
-
/**
|
|
1748
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1749
|
-
*/
|
|
1750
|
-
pageSize?: number;
|
|
1751
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1752
|
-
/**
|
|
1753
|
-
* List ERC-20 transfers
|
|
1754
|
-
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1755
|
-
* @returns ListErc20TransactionsResponse Successful response
|
|
1756
|
-
* @throws ApiError
|
|
1757
|
-
*/
|
|
1758
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1759
|
-
/**
|
|
1760
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1761
|
-
*/
|
|
1762
|
-
chainId: string;
|
|
1763
|
-
/**
|
|
1764
|
-
* A wallet address.
|
|
1765
|
-
*/
|
|
1766
|
-
address: string;
|
|
1767
|
-
/**
|
|
1768
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1769
|
-
*/
|
|
1770
|
-
startBlock?: number;
|
|
1771
|
-
/**
|
|
1772
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1773
|
-
*/
|
|
1774
|
-
endBlock?: number;
|
|
1775
|
-
/**
|
|
1776
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1777
|
-
*/
|
|
1778
|
-
pageToken?: string;
|
|
1779
|
-
/**
|
|
1780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1781
|
-
*/
|
|
1782
|
-
pageSize?: number;
|
|
1783
|
-
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1784
|
-
/**
|
|
1785
|
-
* List ERC-721 transfers
|
|
1786
|
-
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1787
|
-
* @returns ListErc721TransactionsResponse Successful response
|
|
1788
|
-
* @throws ApiError
|
|
1789
|
-
*/
|
|
1790
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1791
|
-
/**
|
|
1792
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1793
|
-
*/
|
|
1794
|
-
chainId: string;
|
|
1795
|
-
/**
|
|
1796
|
-
* A wallet address.
|
|
1797
|
-
*/
|
|
1798
|
-
address: string;
|
|
1799
|
-
/**
|
|
1800
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1801
|
-
*/
|
|
1802
|
-
startBlock?: number;
|
|
1803
|
-
/**
|
|
1804
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1805
|
-
*/
|
|
1806
|
-
endBlock?: number;
|
|
1807
|
-
/**
|
|
1808
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1809
|
-
*/
|
|
1810
|
-
pageToken?: string;
|
|
1811
|
-
/**
|
|
1812
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1813
|
-
*/
|
|
1814
|
-
pageSize?: number;
|
|
1815
|
-
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1816
|
-
/**
|
|
1817
|
-
* List ERC-1155 transfers
|
|
1818
|
-
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1819
|
-
* @returns ListErc1155TransactionsResponse Successful response
|
|
1820
|
-
* @throws ApiError
|
|
1821
|
-
*/
|
|
1822
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2081
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1823
2082
|
/**
|
|
1824
|
-
* A supported evm chain id
|
|
2083
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1825
2084
|
*/
|
|
1826
2085
|
chainId: string;
|
|
1827
2086
|
/**
|
|
@@ -1844,32 +2103,24 @@ declare class EvmTransactionsService {
|
|
|
1844
2103
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1845
2104
|
*/
|
|
1846
2105
|
pageSize?: number;
|
|
1847
|
-
}): CancelablePromise<
|
|
2106
|
+
}): CancelablePromise<ListTransfersResponse>;
|
|
1848
2107
|
/**
|
|
1849
|
-
* List
|
|
1850
|
-
* Returns a list of internal transactions
|
|
2108
|
+
* List transactions
|
|
2109
|
+
* Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
|
|
1851
2110
|
*
|
|
1852
|
-
*
|
|
1853
|
-
* @returns
|
|
2111
|
+
* Filterable by block ranges.
|
|
2112
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1854
2113
|
* @throws ApiError
|
|
1855
2114
|
*/
|
|
1856
|
-
|
|
2115
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1857
2116
|
/**
|
|
1858
|
-
* A supported evm chain id
|
|
2117
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1859
2118
|
*/
|
|
1860
2119
|
chainId: string;
|
|
1861
2120
|
/**
|
|
1862
2121
|
* A wallet address.
|
|
1863
2122
|
*/
|
|
1864
2123
|
address: string;
|
|
1865
|
-
/**
|
|
1866
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1867
|
-
*/
|
|
1868
|
-
startBlock?: number;
|
|
1869
|
-
/**
|
|
1870
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1871
|
-
*/
|
|
1872
|
-
endBlock?: number;
|
|
1873
2124
|
/**
|
|
1874
2125
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1875
2126
|
*/
|
|
@@ -1878,352 +2129,237 @@ declare class EvmTransactionsService {
|
|
|
1878
2129
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1879
2130
|
*/
|
|
1880
2131
|
pageSize?: number;
|
|
1881
|
-
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1882
|
-
/**
|
|
1883
|
-
* Get transaction
|
|
1884
|
-
* Gets the details of a single transaction.
|
|
1885
|
-
* @returns GetTransactionResponse Successful response
|
|
1886
|
-
* @throws ApiError
|
|
1887
|
-
*/
|
|
1888
|
-
getTransaction({ chainId, txHash, }: {
|
|
1889
|
-
/**
|
|
1890
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1891
|
-
*/
|
|
1892
|
-
chainId: string;
|
|
1893
2132
|
/**
|
|
1894
|
-
*
|
|
2133
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1895
2134
|
*/
|
|
1896
|
-
|
|
1897
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
1898
|
-
/**
|
|
1899
|
-
* List transactions for a block
|
|
1900
|
-
* Lists the transactions that occured in a given block.
|
|
1901
|
-
* @returns ListNativeTransactionsResponse Successful response
|
|
1902
|
-
* @throws ApiError
|
|
1903
|
-
*/
|
|
1904
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2135
|
+
startBlock?: number;
|
|
1905
2136
|
/**
|
|
1906
|
-
*
|
|
2137
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1907
2138
|
*/
|
|
1908
|
-
|
|
2139
|
+
endBlock?: number;
|
|
1909
2140
|
/**
|
|
1910
|
-
*
|
|
2141
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
1911
2142
|
*/
|
|
1912
|
-
|
|
1913
|
-
}): CancelablePromise<
|
|
2143
|
+
sortOrder?: SortOrder;
|
|
2144
|
+
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
1914
2145
|
/**
|
|
1915
|
-
* List
|
|
1916
|
-
* Lists
|
|
2146
|
+
* List native transactions
|
|
2147
|
+
* Lists native transactions for an address. Filterable by block range.
|
|
1917
2148
|
* @returns ListNativeTransactionsResponse Successful response
|
|
1918
2149
|
* @throws ApiError
|
|
1919
2150
|
*/
|
|
1920
|
-
|
|
2151
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1921
2152
|
/**
|
|
1922
|
-
* A supported evm chain id
|
|
2153
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1923
2154
|
*/
|
|
1924
2155
|
chainId: string;
|
|
1925
2156
|
/**
|
|
1926
|
-
* A
|
|
1927
|
-
*/
|
|
1928
|
-
pageToken?: string;
|
|
1929
|
-
/**
|
|
1930
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2157
|
+
* A wallet address.
|
|
1931
2158
|
*/
|
|
1932
|
-
|
|
2159
|
+
address: string;
|
|
1933
2160
|
/**
|
|
1934
|
-
*
|
|
1935
|
-
*/
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
* The user agent of the client that made the request.
|
|
1951
|
-
*/
|
|
1952
|
-
userAgent: string;
|
|
1953
|
-
};
|
|
1954
|
-
|
|
1955
|
-
/**
|
|
1956
|
-
* The type of request made by the client.
|
|
1957
|
-
*/
|
|
1958
|
-
declare enum RequestType {
|
|
1959
|
-
DATA = "data",
|
|
1960
|
-
RPC = "rpc"
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
type LogsFormat = {
|
|
1964
|
-
/**
|
|
1965
|
-
* The organization id of the request.
|
|
1966
|
-
*/
|
|
1967
|
-
orgId: string;
|
|
1968
|
-
/**
|
|
1969
|
-
* The unique log id of the request.
|
|
1970
|
-
*/
|
|
1971
|
-
logId: string;
|
|
1972
|
-
/**
|
|
1973
|
-
* The timestamp of the request.
|
|
1974
|
-
*/
|
|
1975
|
-
eventTimestamp: number;
|
|
1976
|
-
/**
|
|
1977
|
-
* The apiKey used to make the request.
|
|
1978
|
-
*/
|
|
1979
|
-
apiKeyId: string;
|
|
1980
|
-
/**
|
|
1981
|
-
* The alias of the apiKey used to make the request.
|
|
1982
|
-
*/
|
|
1983
|
-
apiKeyAlias: string;
|
|
1984
|
-
/**
|
|
1985
|
-
* The region of the host for the request made by the client.
|
|
1986
|
-
*/
|
|
1987
|
-
hostRegion: string;
|
|
1988
|
-
requestType: RequestType;
|
|
1989
|
-
/**
|
|
1990
|
-
* The path of the request made by the client.
|
|
1991
|
-
*/
|
|
1992
|
-
requestPath: string;
|
|
1993
|
-
/**
|
|
1994
|
-
* The number of API credits consumed by the request.
|
|
1995
|
-
*/
|
|
1996
|
-
apiCreditsConsumed: number;
|
|
1997
|
-
/**
|
|
1998
|
-
* The duration of the request in milliseconds.
|
|
1999
|
-
*/
|
|
2000
|
-
requestDurationMsecs: number;
|
|
2001
|
-
/**
|
|
2002
|
-
* The response code of the request.
|
|
2003
|
-
*/
|
|
2004
|
-
responseCode: number;
|
|
2005
|
-
/**
|
|
2006
|
-
* The chain id of the request.
|
|
2007
|
-
*/
|
|
2008
|
-
chainId?: string;
|
|
2009
|
-
/**
|
|
2010
|
-
* The rpc method of the request.
|
|
2011
|
-
*/
|
|
2012
|
-
rpcMethod?: string;
|
|
2013
|
-
/**
|
|
2014
|
-
* The metadata of the request.
|
|
2015
|
-
*/
|
|
2016
|
-
metadata: LogsFormatMetadata;
|
|
2017
|
-
};
|
|
2018
|
-
|
|
2019
|
-
type LogsResponseDTO = {
|
|
2020
|
-
/**
|
|
2021
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2022
|
-
*/
|
|
2023
|
-
nextPageToken?: string;
|
|
2024
|
-
/**
|
|
2025
|
-
* The organization id of the request.
|
|
2026
|
-
*/
|
|
2027
|
-
orgId: string;
|
|
2028
|
-
/**
|
|
2029
|
-
* An array of logs representing the requests made by clients.
|
|
2030
|
-
*/
|
|
2031
|
-
logs: Array<LogsFormat>;
|
|
2032
|
-
};
|
|
2033
|
-
|
|
2034
|
-
declare enum TimeIntervalGranularityExtended {
|
|
2035
|
-
MINUTE = "minute",
|
|
2036
|
-
HOURLY = "hourly",
|
|
2037
|
-
DAILY = "daily",
|
|
2038
|
-
WEEKLY = "weekly",
|
|
2039
|
-
MONTHLY = "monthly"
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
declare enum UsageMetricsGroupByEnum {
|
|
2043
|
-
REQUEST_PATH = "requestPath",
|
|
2044
|
-
RESPONSE_CODE = "responseCode",
|
|
2045
|
-
CHAIN_ID = "chainId",
|
|
2046
|
-
API_KEY_ID = "apiKeyId",
|
|
2047
|
-
REQUEST_TYPE = "requestType"
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
type UsageMetricsValueDTO = {
|
|
2051
|
-
/**
|
|
2052
|
-
* Column name used for data aggregation
|
|
2053
|
-
*/
|
|
2054
|
-
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
2055
|
-
/**
|
|
2056
|
-
* The value of the column used for data aggregation
|
|
2057
|
-
*/
|
|
2058
|
-
groupValue?: (string | number);
|
|
2059
|
-
/**
|
|
2060
|
-
* The total number of requests
|
|
2061
|
-
*/
|
|
2062
|
-
totalRequests: number;
|
|
2063
|
-
/**
|
|
2064
|
-
* The number of requests per second
|
|
2065
|
-
*/
|
|
2066
|
-
requestsPerSecond: number;
|
|
2067
|
-
/**
|
|
2068
|
-
* The success rate percentage
|
|
2069
|
-
*/
|
|
2070
|
-
successRatePercent: number;
|
|
2071
|
-
/**
|
|
2072
|
-
* The median response time in milliseconds
|
|
2073
|
-
*/
|
|
2074
|
-
medianResponseTimeMsecs: number;
|
|
2075
|
-
/**
|
|
2076
|
-
* The number of invalid requests
|
|
2077
|
-
*/
|
|
2078
|
-
invalidRequests: number;
|
|
2079
|
-
/**
|
|
2080
|
-
* The number of API credits used
|
|
2081
|
-
*/
|
|
2082
|
-
apiCreditsUsed: number;
|
|
2083
|
-
/**
|
|
2084
|
-
* The number of API credits wasted on invalid requests
|
|
2085
|
-
*/
|
|
2086
|
-
apiCreditsWasted: number;
|
|
2087
|
-
};
|
|
2088
|
-
declare namespace UsageMetricsValueDTO {
|
|
2089
|
-
/**
|
|
2090
|
-
* Column name used for data aggregation
|
|
2091
|
-
*/
|
|
2092
|
-
enum groupedBy {
|
|
2093
|
-
REQUEST_PATH = "requestPath",
|
|
2094
|
-
RESPONSE_CODE = "responseCode",
|
|
2095
|
-
CHAIN_ID = "chainId",
|
|
2096
|
-
API_KEY_ID = "apiKeyId",
|
|
2097
|
-
REQUEST_TYPE = "requestType",
|
|
2098
|
-
NONE = "None"
|
|
2099
|
-
}
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
|
-
type Metric = {
|
|
2103
|
-
/**
|
|
2104
|
-
* The timestamp of the metrics value
|
|
2105
|
-
*/
|
|
2106
|
-
timestamp: number;
|
|
2107
|
-
/**
|
|
2108
|
-
* The metrics values for the timestamp
|
|
2109
|
-
*/
|
|
2110
|
-
values: Array<UsageMetricsValueDTO>;
|
|
2111
|
-
};
|
|
2112
|
-
|
|
2113
|
-
type UsageMetricsResponseDTO = {
|
|
2114
|
-
/**
|
|
2115
|
-
* Duration in which the metrics value is aggregated
|
|
2116
|
-
*/
|
|
2117
|
-
aggregateDuration: string;
|
|
2118
|
-
/**
|
|
2119
|
-
* Org ID for which the metrics are aggregated
|
|
2120
|
-
*/
|
|
2121
|
-
orgId: string;
|
|
2161
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2162
|
+
*/
|
|
2163
|
+
startBlock?: number;
|
|
2164
|
+
/**
|
|
2165
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2166
|
+
*/
|
|
2167
|
+
endBlock?: number;
|
|
2168
|
+
/**
|
|
2169
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2170
|
+
*/
|
|
2171
|
+
pageToken?: string;
|
|
2172
|
+
/**
|
|
2173
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2174
|
+
*/
|
|
2175
|
+
pageSize?: number;
|
|
2176
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2122
2177
|
/**
|
|
2123
|
-
*
|
|
2178
|
+
* List ERC-20 transfers
|
|
2179
|
+
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
2180
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
2181
|
+
* @throws ApiError
|
|
2124
2182
|
*/
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2183
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2184
|
+
/**
|
|
2185
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2186
|
+
*/
|
|
2187
|
+
chainId: string;
|
|
2188
|
+
/**
|
|
2189
|
+
* A wallet address.
|
|
2190
|
+
*/
|
|
2191
|
+
address: string;
|
|
2192
|
+
/**
|
|
2193
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2194
|
+
*/
|
|
2195
|
+
startBlock?: number;
|
|
2196
|
+
/**
|
|
2197
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2198
|
+
*/
|
|
2199
|
+
endBlock?: number;
|
|
2200
|
+
/**
|
|
2201
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2202
|
+
*/
|
|
2203
|
+
pageToken?: string;
|
|
2204
|
+
/**
|
|
2205
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2206
|
+
*/
|
|
2207
|
+
pageSize?: number;
|
|
2208
|
+
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
2131
2209
|
/**
|
|
2132
|
-
*
|
|
2133
|
-
*
|
|
2134
|
-
* @returns
|
|
2210
|
+
* List ERC-721 transfers
|
|
2211
|
+
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
2212
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
2135
2213
|
* @throws ApiError
|
|
2136
2214
|
*/
|
|
2137
|
-
|
|
2215
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2138
2216
|
/**
|
|
2139
|
-
*
|
|
2217
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2140
2218
|
*/
|
|
2141
|
-
|
|
2219
|
+
chainId: string;
|
|
2142
2220
|
/**
|
|
2143
|
-
*
|
|
2221
|
+
* A wallet address.
|
|
2144
2222
|
*/
|
|
2145
|
-
|
|
2223
|
+
address: string;
|
|
2146
2224
|
/**
|
|
2147
|
-
*
|
|
2225
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2148
2226
|
*/
|
|
2149
|
-
|
|
2227
|
+
startBlock?: number;
|
|
2150
2228
|
/**
|
|
2151
|
-
*
|
|
2229
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2152
2230
|
*/
|
|
2153
|
-
|
|
2231
|
+
endBlock?: number;
|
|
2154
2232
|
/**
|
|
2155
|
-
*
|
|
2233
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2156
2234
|
*/
|
|
2157
|
-
|
|
2235
|
+
pageToken?: string;
|
|
2158
2236
|
/**
|
|
2159
|
-
*
|
|
2237
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2160
2238
|
*/
|
|
2161
|
-
|
|
2239
|
+
pageSize?: number;
|
|
2240
|
+
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
2241
|
+
/**
|
|
2242
|
+
* List ERC-1155 transfers
|
|
2243
|
+
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
2244
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
2245
|
+
* @throws ApiError
|
|
2246
|
+
*/
|
|
2247
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2162
2248
|
/**
|
|
2163
|
-
*
|
|
2249
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2164
2250
|
*/
|
|
2165
|
-
|
|
2251
|
+
chainId: string;
|
|
2166
2252
|
/**
|
|
2167
|
-
*
|
|
2253
|
+
* A wallet address.
|
|
2168
2254
|
*/
|
|
2169
|
-
|
|
2255
|
+
address: string;
|
|
2170
2256
|
/**
|
|
2171
|
-
*
|
|
2257
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2172
2258
|
*/
|
|
2173
|
-
|
|
2259
|
+
startBlock?: number;
|
|
2174
2260
|
/**
|
|
2175
|
-
*
|
|
2261
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2176
2262
|
*/
|
|
2177
|
-
|
|
2178
|
-
|
|
2263
|
+
endBlock?: number;
|
|
2264
|
+
/**
|
|
2265
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2266
|
+
*/
|
|
2267
|
+
pageToken?: string;
|
|
2268
|
+
/**
|
|
2269
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
|
+
*/
|
|
2271
|
+
pageSize?: number;
|
|
2272
|
+
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
2179
2273
|
/**
|
|
2180
|
-
*
|
|
2181
|
-
*
|
|
2182
|
-
*
|
|
2274
|
+
* List internal transactions
|
|
2275
|
+
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2276
|
+
*
|
|
2277
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2278
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
2183
2279
|
* @throws ApiError
|
|
2184
2280
|
*/
|
|
2185
|
-
|
|
2281
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2186
2282
|
/**
|
|
2187
|
-
*
|
|
2283
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2188
2284
|
*/
|
|
2189
|
-
|
|
2285
|
+
chainId: string;
|
|
2190
2286
|
/**
|
|
2191
|
-
*
|
|
2287
|
+
* A wallet address.
|
|
2192
2288
|
*/
|
|
2193
|
-
|
|
2289
|
+
address: string;
|
|
2194
2290
|
/**
|
|
2195
|
-
*
|
|
2291
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2196
2292
|
*/
|
|
2197
|
-
|
|
2293
|
+
startBlock?: number;
|
|
2198
2294
|
/**
|
|
2199
|
-
*
|
|
2295
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2200
2296
|
*/
|
|
2201
|
-
|
|
2297
|
+
endBlock?: number;
|
|
2202
2298
|
/**
|
|
2203
|
-
*
|
|
2299
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2204
2300
|
*/
|
|
2205
|
-
|
|
2301
|
+
pageToken?: string;
|
|
2206
2302
|
/**
|
|
2207
|
-
*
|
|
2303
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2208
2304
|
*/
|
|
2209
|
-
|
|
2305
|
+
pageSize?: number;
|
|
2306
|
+
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2307
|
+
/**
|
|
2308
|
+
* Get transaction
|
|
2309
|
+
* Gets the details of a single transaction.
|
|
2310
|
+
* @returns GetTransactionResponse Successful response
|
|
2311
|
+
* @throws ApiError
|
|
2312
|
+
*/
|
|
2313
|
+
getTransaction({ chainId, txHash, }: {
|
|
2210
2314
|
/**
|
|
2211
|
-
*
|
|
2315
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2212
2316
|
*/
|
|
2213
|
-
chainId
|
|
2317
|
+
chainId: string;
|
|
2214
2318
|
/**
|
|
2215
|
-
*
|
|
2319
|
+
* A transaction hash.
|
|
2216
2320
|
*/
|
|
2217
|
-
|
|
2321
|
+
txHash: string;
|
|
2322
|
+
}): CancelablePromise<GetTransactionResponse>;
|
|
2323
|
+
/**
|
|
2324
|
+
* List transactions for a block
|
|
2325
|
+
* Lists the transactions that occured in a given block.
|
|
2326
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2327
|
+
* @throws ApiError
|
|
2328
|
+
*/
|
|
2329
|
+
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2330
|
+
/**
|
|
2331
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2332
|
+
*/
|
|
2333
|
+
chainId: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* A block identifier which is either a block number or the block hash.
|
|
2336
|
+
*/
|
|
2337
|
+
blockId: string;
|
|
2338
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2339
|
+
/**
|
|
2340
|
+
* List latest transactions
|
|
2341
|
+
* Lists the latest transactions. Filterable by status.
|
|
2342
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2343
|
+
* @throws ApiError
|
|
2344
|
+
*/
|
|
2345
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2346
|
+
/**
|
|
2347
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2348
|
+
*/
|
|
2349
|
+
chainId: string;
|
|
2218
2350
|
/**
|
|
2219
2351
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2220
2352
|
*/
|
|
2221
2353
|
pageToken?: string;
|
|
2222
2354
|
/**
|
|
2223
|
-
* The maximum number of items to return.
|
|
2355
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2224
2356
|
*/
|
|
2225
2357
|
pageSize?: number;
|
|
2226
|
-
|
|
2358
|
+
/**
|
|
2359
|
+
* A status filter for listed transactions.
|
|
2360
|
+
*/
|
|
2361
|
+
status?: TransactionStatus;
|
|
2362
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2227
2363
|
}
|
|
2228
2364
|
|
|
2229
2365
|
declare class HealthCheckService {
|
|
@@ -2261,7 +2397,7 @@ declare class NfTsService {
|
|
|
2261
2397
|
*/
|
|
2262
2398
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2263
2399
|
/**
|
|
2264
|
-
* A supported evm chain id
|
|
2400
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2265
2401
|
*/
|
|
2266
2402
|
chainId: string;
|
|
2267
2403
|
/**
|
|
@@ -2281,7 +2417,7 @@ declare class NfTsService {
|
|
|
2281
2417
|
*/
|
|
2282
2418
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2283
2419
|
/**
|
|
2284
|
-
* A supported evm chain id
|
|
2420
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2285
2421
|
*/
|
|
2286
2422
|
chainId: string;
|
|
2287
2423
|
/**
|
|
@@ -2305,7 +2441,7 @@ declare class NfTsService {
|
|
|
2305
2441
|
*/
|
|
2306
2442
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2307
2443
|
/**
|
|
2308
|
-
* A supported evm chain id
|
|
2444
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2309
2445
|
*/
|
|
2310
2446
|
chainId: string;
|
|
2311
2447
|
/**
|
|
@@ -2330,16 +2466,16 @@ declare enum EVMOperationType {
|
|
|
2330
2466
|
|
|
2331
2467
|
type CreateEvmTransactionExportRequest = {
|
|
2332
2468
|
type: EVMOperationType;
|
|
2333
|
-
firstDate
|
|
2334
|
-
lastDate
|
|
2469
|
+
firstDate?: string;
|
|
2470
|
+
lastDate?: string;
|
|
2335
2471
|
/**
|
|
2336
2472
|
* @deprecated
|
|
2337
2473
|
*/
|
|
2338
|
-
startDate
|
|
2474
|
+
startDate?: string;
|
|
2339
2475
|
/**
|
|
2340
2476
|
* @deprecated
|
|
2341
2477
|
*/
|
|
2342
|
-
endDate
|
|
2478
|
+
endDate?: string;
|
|
2343
2479
|
options: EvmNetworkOptions;
|
|
2344
2480
|
};
|
|
2345
2481
|
|
|
@@ -2352,21 +2488,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2352
2488
|
type PrimaryNetworkOptions = {
|
|
2353
2489
|
addresses?: Array<string>;
|
|
2354
2490
|
cChainEvmAddresses?: Array<string>;
|
|
2355
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2491
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2356
2492
|
};
|
|
2357
2493
|
|
|
2358
2494
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2359
2495
|
type: PrimaryNetworkOperationType;
|
|
2360
|
-
firstDate
|
|
2361
|
-
lastDate
|
|
2496
|
+
firstDate?: string;
|
|
2497
|
+
lastDate?: string;
|
|
2362
2498
|
/**
|
|
2363
2499
|
* @deprecated
|
|
2364
2500
|
*/
|
|
2365
|
-
startDate
|
|
2501
|
+
startDate?: string;
|
|
2366
2502
|
/**
|
|
2367
2503
|
* @deprecated
|
|
2368
2504
|
*/
|
|
2369
|
-
endDate
|
|
2505
|
+
endDate?: string;
|
|
2370
2506
|
options: PrimaryNetworkOptions;
|
|
2371
2507
|
};
|
|
2372
2508
|
|
|
@@ -2444,8 +2580,10 @@ declare enum BlockchainIds {
|
|
|
2444
2580
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2445
2581
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2446
2582
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2583
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2447
2584
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2448
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2585
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
2586
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2449
2587
|
}
|
|
2450
2588
|
|
|
2451
2589
|
type ChainAddressChainIdMap = {
|
|
@@ -2694,6 +2832,7 @@ type CompletedValidatorDetails = {
|
|
|
2694
2832
|
*/
|
|
2695
2833
|
blsCredentials?: BlsCredentials;
|
|
2696
2834
|
delegatorCount: number;
|
|
2835
|
+
amountDelegated?: string;
|
|
2697
2836
|
rewards: Rewards;
|
|
2698
2837
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2699
2838
|
};
|
|
@@ -2756,11 +2895,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2756
2895
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2757
2896
|
};
|
|
2758
2897
|
|
|
2759
|
-
declare enum Network {
|
|
2760
|
-
MAINNET = "mainnet",
|
|
2761
|
-
FUJI = "fuji"
|
|
2762
|
-
}
|
|
2763
|
-
|
|
2764
2898
|
declare enum SortByOption {
|
|
2765
2899
|
BLOCK_INDEX = "blockIndex",
|
|
2766
2900
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2820,6 +2954,7 @@ type XChainAssetDetails = {
|
|
|
2820
2954
|
declare enum XChainId {
|
|
2821
2955
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2822
2956
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2957
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2823
2958
|
X_CHAIN = "x-chain"
|
|
2824
2959
|
}
|
|
2825
2960
|
|
|
@@ -2838,7 +2973,7 @@ declare class PrimaryNetworkService {
|
|
|
2838
2973
|
*/
|
|
2839
2974
|
blockchainId: XChainId;
|
|
2840
2975
|
/**
|
|
2841
|
-
* Either mainnet or
|
|
2976
|
+
* Either mainnet or testnet/fuji.
|
|
2842
2977
|
*/
|
|
2843
2978
|
network: Network;
|
|
2844
2979
|
/**
|
|
@@ -2858,7 +2993,7 @@ declare class PrimaryNetworkService {
|
|
|
2858
2993
|
*/
|
|
2859
2994
|
addresses: string;
|
|
2860
2995
|
/**
|
|
2861
|
-
* Either mainnet or
|
|
2996
|
+
* Either mainnet or testnet/fuji.
|
|
2862
2997
|
*/
|
|
2863
2998
|
network: Network;
|
|
2864
2999
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
@@ -2870,7 +3005,7 @@ declare class PrimaryNetworkService {
|
|
|
2870
3005
|
*/
|
|
2871
3006
|
getNetworkDetails({ network, }: {
|
|
2872
3007
|
/**
|
|
2873
|
-
* Either mainnet or
|
|
3008
|
+
* Either mainnet or testnet/fuji.
|
|
2874
3009
|
*/
|
|
2875
3010
|
network: Network;
|
|
2876
3011
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
@@ -2882,7 +3017,7 @@ declare class PrimaryNetworkService {
|
|
|
2882
3017
|
*/
|
|
2883
3018
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2884
3019
|
/**
|
|
2885
|
-
* Either mainnet or
|
|
3020
|
+
* Either mainnet or testnet/fuji.
|
|
2886
3021
|
*/
|
|
2887
3022
|
network: Network;
|
|
2888
3023
|
/**
|
|
@@ -2906,7 +3041,7 @@ declare class PrimaryNetworkService {
|
|
|
2906
3041
|
*/
|
|
2907
3042
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2908
3043
|
/**
|
|
2909
|
-
* Either mainnet or
|
|
3044
|
+
* Either mainnet or testnet/fuji.
|
|
2910
3045
|
*/
|
|
2911
3046
|
network: Network;
|
|
2912
3047
|
/**
|
|
@@ -2930,7 +3065,7 @@ declare class PrimaryNetworkService {
|
|
|
2930
3065
|
*/
|
|
2931
3066
|
getSubnetById({ network, subnetId, }: {
|
|
2932
3067
|
/**
|
|
2933
|
-
* Either mainnet or
|
|
3068
|
+
* Either mainnet or testnet/fuji.
|
|
2934
3069
|
*/
|
|
2935
3070
|
network: Network;
|
|
2936
3071
|
/**
|
|
@@ -2946,7 +3081,7 @@ declare class PrimaryNetworkService {
|
|
|
2946
3081
|
*/
|
|
2947
3082
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2948
3083
|
/**
|
|
2949
|
-
* Either mainnet or
|
|
3084
|
+
* Either mainnet or testnet/fuji.
|
|
2950
3085
|
*/
|
|
2951
3086
|
network: Network;
|
|
2952
3087
|
/**
|
|
@@ -3020,7 +3155,7 @@ declare class PrimaryNetworkService {
|
|
|
3020
3155
|
*/
|
|
3021
3156
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
3022
3157
|
/**
|
|
3023
|
-
* Either mainnet or
|
|
3158
|
+
* Either mainnet or testnet/fuji.
|
|
3024
3159
|
*/
|
|
3025
3160
|
network: Network;
|
|
3026
3161
|
/**
|
|
@@ -3052,7 +3187,7 @@ declare class PrimaryNetworkService {
|
|
|
3052
3187
|
*/
|
|
3053
3188
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
3054
3189
|
/**
|
|
3055
|
-
* Either mainnet or
|
|
3190
|
+
* Either mainnet or testnet/fuji.
|
|
3056
3191
|
*/
|
|
3057
3192
|
network: Network;
|
|
3058
3193
|
/**
|
|
@@ -3080,14 +3215,49 @@ declare class PrimaryNetworkService {
|
|
|
3080
3215
|
*/
|
|
3081
3216
|
nodeIds?: string;
|
|
3082
3217
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3218
|
+
/**
|
|
3219
|
+
* List subnet-only validators
|
|
3220
|
+
* Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3221
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
3222
|
+
* @throws ApiError
|
|
3223
|
+
*/
|
|
3224
|
+
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
|
|
3225
|
+
/**
|
|
3226
|
+
* Either mainnet or testnet/fuji.
|
|
3227
|
+
*/
|
|
3228
|
+
network: Network;
|
|
3229
|
+
/**
|
|
3230
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3231
|
+
*/
|
|
3232
|
+
pageToken?: string;
|
|
3233
|
+
/**
|
|
3234
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3235
|
+
*/
|
|
3236
|
+
pageSize?: number;
|
|
3237
|
+
/**
|
|
3238
|
+
* The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
|
|
3239
|
+
*/
|
|
3240
|
+
sovValidationId?: any;
|
|
3241
|
+
includeInactiveSovs?: boolean;
|
|
3242
|
+
/**
|
|
3243
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3244
|
+
*/
|
|
3245
|
+
nodeId?: string;
|
|
3246
|
+
/**
|
|
3247
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3248
|
+
*/
|
|
3249
|
+
subnetId?: any;
|
|
3250
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
3083
3251
|
}
|
|
3084
3252
|
|
|
3085
3253
|
declare enum BlockchainId {
|
|
3086
3254
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3087
3255
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3088
3256
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3257
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3089
3258
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3090
3259
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3260
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3091
3261
|
P_CHAIN = "p-chain",
|
|
3092
3262
|
X_CHAIN = "x-chain",
|
|
3093
3263
|
C_CHAIN = "c-chain"
|
|
@@ -3124,11 +3294,6 @@ type CChainAtomicBalances = {
|
|
|
3124
3294
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3125
3295
|
};
|
|
3126
3296
|
|
|
3127
|
-
declare enum PrimaryNetwork {
|
|
3128
|
-
MAINNET = "mainnet",
|
|
3129
|
-
FUJI = "fuji"
|
|
3130
|
-
}
|
|
3131
|
-
|
|
3132
3297
|
declare enum PrimaryNetworkChainName {
|
|
3133
3298
|
P_CHAIN = "p-chain",
|
|
3134
3299
|
X_CHAIN = "x-chain",
|
|
@@ -3137,7 +3302,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3137
3302
|
|
|
3138
3303
|
type PrimaryNetworkChainInfo = {
|
|
3139
3304
|
chainName: PrimaryNetworkChainName;
|
|
3140
|
-
network:
|
|
3305
|
+
network: Network;
|
|
3141
3306
|
};
|
|
3142
3307
|
|
|
3143
3308
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3298,7 +3463,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3298
3463
|
*/
|
|
3299
3464
|
blockchainId: BlockchainId;
|
|
3300
3465
|
/**
|
|
3301
|
-
* Either mainnet or
|
|
3466
|
+
* Either mainnet or testnet/fuji.
|
|
3302
3467
|
*/
|
|
3303
3468
|
network: Network;
|
|
3304
3469
|
/**
|
|
@@ -3329,6 +3494,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3329
3494
|
txCount: number;
|
|
3330
3495
|
transactions: Array<string>;
|
|
3331
3496
|
blockSizeBytes: number;
|
|
3497
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
3498
|
+
activeSubnetOnlyValidators?: number;
|
|
3332
3499
|
currentSupply?: string;
|
|
3333
3500
|
proposerDetails?: ProposerDetails;
|
|
3334
3501
|
};
|
|
@@ -3342,6 +3509,8 @@ type PrimaryNetworkBlock = {
|
|
|
3342
3509
|
txCount: number;
|
|
3343
3510
|
transactions: Array<string>;
|
|
3344
3511
|
blockSizeBytes: number;
|
|
3512
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
3513
|
+
activeSubnetOnlyValidators?: number;
|
|
3345
3514
|
currentSupply?: string;
|
|
3346
3515
|
proposerDetails?: ProposerDetails;
|
|
3347
3516
|
};
|
|
@@ -3370,7 +3539,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3370
3539
|
*/
|
|
3371
3540
|
blockchainId: BlockchainId;
|
|
3372
3541
|
/**
|
|
3373
|
-
* Either mainnet or
|
|
3542
|
+
* Either mainnet or testnet/fuji.
|
|
3374
3543
|
*/
|
|
3375
3544
|
network: Network;
|
|
3376
3545
|
/**
|
|
@@ -3390,7 +3559,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3390
3559
|
*/
|
|
3391
3560
|
blockchainId: BlockchainId;
|
|
3392
3561
|
/**
|
|
3393
|
-
* Either mainnet or
|
|
3562
|
+
* Either mainnet or testnet/fuji.
|
|
3394
3563
|
*/
|
|
3395
3564
|
network: Network;
|
|
3396
3565
|
/**
|
|
@@ -3418,7 +3587,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3418
3587
|
*/
|
|
3419
3588
|
blockchainId: BlockchainId;
|
|
3420
3589
|
/**
|
|
3421
|
-
* Either mainnet or
|
|
3590
|
+
* Either mainnet or testnet/fuji.
|
|
3422
3591
|
*/
|
|
3423
3592
|
network: Network;
|
|
3424
3593
|
/**
|
|
@@ -3552,7 +3721,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3552
3721
|
*/
|
|
3553
3722
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3554
3723
|
/**
|
|
3555
|
-
* Either mainnet or
|
|
3724
|
+
* Either mainnet or testnet/fuji.
|
|
3556
3725
|
*/
|
|
3557
3726
|
network: Network;
|
|
3558
3727
|
/**
|
|
@@ -3584,7 +3753,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3584
3753
|
*/
|
|
3585
3754
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3586
3755
|
/**
|
|
3587
|
-
* Either mainnet or
|
|
3756
|
+
* Either mainnet or testnet/fuji.
|
|
3588
3757
|
*/
|
|
3589
3758
|
network: Network;
|
|
3590
3759
|
/**
|
|
@@ -3846,6 +4015,11 @@ declare enum PChainTransactionType {
|
|
|
3846
4015
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3847
4016
|
BASE_TX = "BaseTx",
|
|
3848
4017
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4018
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4019
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4020
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4021
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4022
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
3849
4023
|
UNKNOWN = "UNKNOWN"
|
|
3850
4024
|
}
|
|
3851
4025
|
|
|
@@ -3900,6 +4074,11 @@ type PChainUtxo = {
|
|
|
3900
4074
|
utxoType: UtxoType;
|
|
3901
4075
|
};
|
|
3902
4076
|
|
|
4077
|
+
type SubnetValidatorManagerDetails = {
|
|
4078
|
+
blockchainId: string;
|
|
4079
|
+
evmContractAddress: string;
|
|
4080
|
+
};
|
|
4081
|
+
|
|
3903
4082
|
type PChainTransaction = {
|
|
3904
4083
|
/**
|
|
3905
4084
|
* A P-Chain transaction hash.
|
|
@@ -3934,6 +4113,10 @@ type PChainTransaction = {
|
|
|
3934
4113
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3935
4114
|
*/
|
|
3936
4115
|
amountStaked: Array<AssetAmount>;
|
|
4116
|
+
/**
|
|
4117
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4118
|
+
*/
|
|
4119
|
+
amountSovBalanceBurned: Array<AssetAmount>;
|
|
3937
4120
|
/**
|
|
3938
4121
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3939
4122
|
*/
|
|
@@ -3954,6 +4137,14 @@ type PChainTransaction = {
|
|
|
3954
4137
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
3955
4138
|
*/
|
|
3956
4139
|
subnetId?: string;
|
|
4140
|
+
/**
|
|
4141
|
+
* Present for ConvertSubnetTx
|
|
4142
|
+
*/
|
|
4143
|
+
subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
|
|
4144
|
+
/**
|
|
4145
|
+
* Present for ConvertSubnetTx, RegisterSubnetValidatorTx
|
|
4146
|
+
*/
|
|
4147
|
+
subnetOnlyValidatorDetails?: Array<string>;
|
|
3957
4148
|
/**
|
|
3958
4149
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3959
4150
|
*/
|
|
@@ -4155,6 +4346,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4155
4346
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4156
4347
|
BASE_TX = "BaseTx",
|
|
4157
4348
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4349
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4350
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4351
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4352
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4353
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
4158
4354
|
UNKNOWN = "UNKNOWN",
|
|
4159
4355
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4160
4356
|
OPERATION_TX = "OperationTx"
|
|
@@ -4175,7 +4371,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4175
4371
|
*/
|
|
4176
4372
|
blockchainId: BlockchainId;
|
|
4177
4373
|
/**
|
|
4178
|
-
* Either mainnet or
|
|
4374
|
+
* Either mainnet or testnet/fuji.
|
|
4179
4375
|
*/
|
|
4180
4376
|
network: Network;
|
|
4181
4377
|
/**
|
|
@@ -4193,19 +4389,19 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4193
4389
|
* @returns any Successful response
|
|
4194
4390
|
* @throws ApiError
|
|
4195
4391
|
*/
|
|
4196
|
-
listLatestPrimaryNetworkTransactions({
|
|
4197
|
-
/**
|
|
4198
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4199
|
-
*/
|
|
4200
|
-
addresses: string;
|
|
4392
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4201
4393
|
/**
|
|
4202
4394
|
* A primary network blockchain id or alias.
|
|
4203
4395
|
*/
|
|
4204
4396
|
blockchainId: BlockchainId;
|
|
4205
4397
|
/**
|
|
4206
|
-
* Either mainnet or
|
|
4398
|
+
* Either mainnet or testnet/fuji.
|
|
4207
4399
|
*/
|
|
4208
4400
|
network: Network;
|
|
4401
|
+
/**
|
|
4402
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4403
|
+
*/
|
|
4404
|
+
addresses?: string;
|
|
4209
4405
|
/**
|
|
4210
4406
|
* Query param for filtering items based on transaction types.
|
|
4211
4407
|
*/
|
|
@@ -4243,7 +4439,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4243
4439
|
*/
|
|
4244
4440
|
blockchainId: PChainId;
|
|
4245
4441
|
/**
|
|
4246
|
-
* Either mainnet or
|
|
4442
|
+
* Either mainnet or testnet/fuji.
|
|
4247
4443
|
*/
|
|
4248
4444
|
network: Network;
|
|
4249
4445
|
/**
|
|
@@ -4287,7 +4483,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4287
4483
|
*/
|
|
4288
4484
|
blockchainId: XChainId;
|
|
4289
4485
|
/**
|
|
4290
|
-
* Either mainnet or
|
|
4486
|
+
* Either mainnet or testnet/fuji.
|
|
4291
4487
|
*/
|
|
4292
4488
|
network: Network;
|
|
4293
4489
|
/**
|
|
@@ -4350,7 +4546,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4350
4546
|
*/
|
|
4351
4547
|
blockchainId: BlockchainId;
|
|
4352
4548
|
/**
|
|
4353
|
-
* Either mainnet or
|
|
4549
|
+
* Either mainnet or testnet/fuji.
|
|
4354
4550
|
*/
|
|
4355
4551
|
network: Network;
|
|
4356
4552
|
/**
|
|
@@ -4415,7 +4611,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4415
4611
|
*/
|
|
4416
4612
|
blockchainId: XChainId;
|
|
4417
4613
|
/**
|
|
4418
|
-
* Either mainnet or
|
|
4614
|
+
* Either mainnet or testnet/fuji.
|
|
4419
4615
|
*/
|
|
4420
4616
|
network: Network;
|
|
4421
4617
|
/**
|
|
@@ -4443,7 +4639,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4443
4639
|
*/
|
|
4444
4640
|
blockchainId: XChainId;
|
|
4445
4641
|
/**
|
|
4446
|
-
* Either mainnet or
|
|
4642
|
+
* Either mainnet or testnet/fuji.
|
|
4447
4643
|
*/
|
|
4448
4644
|
network: Network;
|
|
4449
4645
|
}): CancelablePromise<XChainVertex>;
|
|
@@ -4463,7 +4659,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4463
4659
|
*/
|
|
4464
4660
|
blockchainId: XChainId;
|
|
4465
4661
|
/**
|
|
4466
|
-
* Either mainnet or
|
|
4662
|
+
* Either mainnet or testnet/fuji.
|
|
4467
4663
|
*/
|
|
4468
4664
|
network: Network;
|
|
4469
4665
|
/**
|
|
@@ -4481,47 +4677,35 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4481
4677
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4482
4678
|
}
|
|
4483
4679
|
|
|
4484
|
-
type
|
|
4485
|
-
|
|
4486
|
-
message: string;
|
|
4487
|
-
data?: Record<string, any>;
|
|
4488
|
-
};
|
|
4489
|
-
|
|
4490
|
-
type RpcErrorResponseDto = {
|
|
4491
|
-
jsonrpc: string;
|
|
4492
|
-
id?: (string | number);
|
|
4493
|
-
error: RpcErrorDto;
|
|
4494
|
-
};
|
|
4495
|
-
|
|
4496
|
-
type RpcRequestBodyDto = {
|
|
4497
|
-
method: string;
|
|
4498
|
-
params?: Record<string, any>;
|
|
4499
|
-
id?: (string | number);
|
|
4500
|
-
jsonrpc?: string;
|
|
4680
|
+
type SignatureAggregationResponse = {
|
|
4681
|
+
signedMessage: string;
|
|
4501
4682
|
};
|
|
4502
4683
|
|
|
4503
|
-
type
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4684
|
+
type SignatureAggregatorRequest = {
|
|
4685
|
+
/**
|
|
4686
|
+
* Must be defined if justification is not defined
|
|
4687
|
+
*/
|
|
4688
|
+
message?: string;
|
|
4689
|
+
/**
|
|
4690
|
+
* Must be defined if message is not defined
|
|
4691
|
+
*/
|
|
4692
|
+
justification?: string;
|
|
4693
|
+
signingSubnetId?: string;
|
|
4694
|
+
quorumPercentage?: number;
|
|
4507
4695
|
};
|
|
4508
4696
|
|
|
4509
|
-
declare class
|
|
4697
|
+
declare class SignatureAggregatorService {
|
|
4510
4698
|
readonly httpRequest: BaseHttpRequest;
|
|
4511
4699
|
constructor(httpRequest: BaseHttpRequest);
|
|
4512
4700
|
/**
|
|
4513
|
-
*
|
|
4514
|
-
*
|
|
4515
|
-
* @returns
|
|
4701
|
+
* Aggregate Signatures
|
|
4702
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
4703
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4516
4704
|
* @throws ApiError
|
|
4517
4705
|
*/
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
*/
|
|
4522
|
-
chainId: string;
|
|
4523
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4524
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4706
|
+
aggregateSignatures({ requestBody, }: {
|
|
4707
|
+
requestBody: SignatureAggregatorRequest;
|
|
4708
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4525
4709
|
}
|
|
4526
4710
|
|
|
4527
4711
|
type TeleporterDestinationTransaction = {
|
|
@@ -4709,9 +4893,9 @@ declare class TeleporterService {
|
|
|
4709
4893
|
*/
|
|
4710
4894
|
from?: string;
|
|
4711
4895
|
/**
|
|
4712
|
-
* mainnet or testnet.
|
|
4896
|
+
* Either mainnet or testnet/fuji.
|
|
4713
4897
|
*/
|
|
4714
|
-
network?:
|
|
4898
|
+
network?: Network;
|
|
4715
4899
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4716
4900
|
/**
|
|
4717
4901
|
* List teleporter messages by address
|
|
@@ -4733,9 +4917,9 @@ declare class TeleporterService {
|
|
|
4733
4917
|
*/
|
|
4734
4918
|
pageSize?: number;
|
|
4735
4919
|
/**
|
|
4736
|
-
* mainnet or testnet.
|
|
4920
|
+
* Either mainnet or testnet/fuji.
|
|
4737
4921
|
*/
|
|
4738
|
-
network?:
|
|
4922
|
+
network?: Network;
|
|
4739
4923
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4740
4924
|
}
|
|
4741
4925
|
|
|
@@ -4971,13 +5155,13 @@ declare class WebhooksService {
|
|
|
4971
5155
|
|
|
4972
5156
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4973
5157
|
declare class Glacier {
|
|
5158
|
+
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4974
5159
|
readonly default: DefaultService;
|
|
4975
5160
|
readonly evmBalances: EvmBalancesService;
|
|
4976
5161
|
readonly evmBlocks: EvmBlocksService;
|
|
4977
5162
|
readonly evmChains: EvmChainsService;
|
|
4978
5163
|
readonly evmContracts: EvmContractsService;
|
|
4979
5164
|
readonly evmTransactions: EvmTransactionsService;
|
|
4980
|
-
readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
|
|
4981
5165
|
readonly healthCheck: HealthCheckService;
|
|
4982
5166
|
readonly nfTs: NfTsService;
|
|
4983
5167
|
readonly operations: OperationsService;
|
|
@@ -4988,7 +5172,7 @@ declare class Glacier {
|
|
|
4988
5172
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4989
5173
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4990
5174
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4991
|
-
readonly
|
|
5175
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4992
5176
|
readonly teleporter: TeleporterService;
|
|
4993
5177
|
readonly webhooks: WebhooksService;
|
|
4994
5178
|
readonly request: BaseHttpRequest;
|
|
@@ -5143,4 +5327,4 @@ type Unauthorized = {
|
|
|
5143
5327
|
error: string;
|
|
5144
5328
|
};
|
|
5145
5329
|
|
|
5146
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier,
|
|
5330
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetValidatorManagerDetails, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|