@avalabs/glacier-sdk 3.1.0-alpha.4 → 3.1.0-alpha.41
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 +1781 -476
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +8 -4
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/ApiFeature.d.ts +7 -0
- package/esm/generated/models/ApiFeature.js +1 -0
- package/esm/generated/models/BadGateway.d.ts +16 -0
- package/esm/generated/models/BadRequest.d.ts +16 -0
- package/esm/generated/models/BalanceOwner.d.ts +6 -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/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/InternalServerError.d.ts +16 -0
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/Network.d.ts +3 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +33 -7
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +27 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- 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/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RequestType.d.ts +2 -2
- package/esm/generated/models/RequestType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -0
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.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/DataApiUsageMetricsService.d.ts +253 -0
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +10 -10
- package/esm/generated/services/EvmBalancesService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +25 -4
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +88 -10
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +4 -4
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NfTsService.d.ts +6 -6
- package/esm/generated/services/NfTsService.js +1 -1
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/OperationsService.d.ts +2 -2
- package/esm/generated/services/OperationsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +39 -9
- package/esm/generated/services/TeleporterService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +13 -13
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +50 -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/GlacierApiUsageMetricsService.d.ts +0 -85
- package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,572 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type LogsFormatMetadata = {
|
|
58
|
+
/**
|
|
59
|
+
* The IP address of the client that made the request.
|
|
60
|
+
*/
|
|
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
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The type of request made by the client.
|
|
74
|
+
*/
|
|
75
|
+
declare enum RequestType {
|
|
76
|
+
DATA = "data",
|
|
77
|
+
RPC = "rpc"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type LogsFormat = {
|
|
81
|
+
/**
|
|
82
|
+
* The organization id of the request.
|
|
83
|
+
*/
|
|
84
|
+
orgId: string;
|
|
85
|
+
/**
|
|
86
|
+
* The unique log id of the request.
|
|
87
|
+
*/
|
|
88
|
+
logId: string;
|
|
89
|
+
/**
|
|
90
|
+
* The timestamp of the request.
|
|
91
|
+
*/
|
|
92
|
+
eventTimestamp: number;
|
|
93
|
+
/**
|
|
94
|
+
* The apiKey used to make the request.
|
|
95
|
+
*/
|
|
96
|
+
apiKeyId: string;
|
|
97
|
+
/**
|
|
98
|
+
* The alias of the apiKey used to make the request.
|
|
99
|
+
*/
|
|
100
|
+
apiKeyAlias: string;
|
|
101
|
+
/**
|
|
102
|
+
* The region of the host for the request made by the client.
|
|
103
|
+
*/
|
|
104
|
+
hostRegion: string;
|
|
105
|
+
requestType: RequestType;
|
|
106
|
+
/**
|
|
107
|
+
* The path of the request made by the client.
|
|
108
|
+
*/
|
|
109
|
+
requestPath: string;
|
|
110
|
+
/**
|
|
111
|
+
* The number of API credits consumed by the request.
|
|
112
|
+
*/
|
|
113
|
+
apiCreditsConsumed: number;
|
|
114
|
+
/**
|
|
115
|
+
* The duration of the request in milliseconds.
|
|
116
|
+
*/
|
|
117
|
+
requestDurationMsecs: number;
|
|
118
|
+
/**
|
|
119
|
+
* The response code of the request.
|
|
120
|
+
*/
|
|
121
|
+
responseCode: number;
|
|
122
|
+
/**
|
|
123
|
+
* The chain id of the request.
|
|
124
|
+
*/
|
|
125
|
+
chainId?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The rpc method of the request.
|
|
128
|
+
*/
|
|
129
|
+
rpcMethod?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The metadata of the request.
|
|
132
|
+
*/
|
|
133
|
+
metadata: LogsFormatMetadata;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
type LogsResponseDTO = {
|
|
137
|
+
/**
|
|
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.
|
|
139
|
+
*/
|
|
140
|
+
nextPageToken?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The organization id of the request.
|
|
143
|
+
*/
|
|
144
|
+
orgId: string;
|
|
145
|
+
/**
|
|
146
|
+
* An array of logs representing the requests made by clients.
|
|
147
|
+
*/
|
|
148
|
+
logs: Array<LogsFormat>;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet",
|
|
155
|
+
DEVNET = "devnet"
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
159
|
+
RPC_METHOD = "rpcMethod",
|
|
160
|
+
REQUEST_PATH = "requestPath",
|
|
161
|
+
RESPONSE_CODE = "responseCode",
|
|
162
|
+
COUNTRY = "country",
|
|
163
|
+
CONTINENT = "continent",
|
|
164
|
+
USER_AGENT = "userAgent"
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
168
|
+
HOURLY = "hourly",
|
|
169
|
+
DAILY = "daily",
|
|
170
|
+
WEEKLY = "weekly",
|
|
171
|
+
MONTHLY = "monthly"
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
type RpcUsageMetricsValueAggregated = {
|
|
175
|
+
/**
|
|
176
|
+
* The total number of requests
|
|
177
|
+
*/
|
|
178
|
+
totalRequests: number;
|
|
179
|
+
/**
|
|
180
|
+
* The number of API credits used
|
|
181
|
+
*/
|
|
182
|
+
apiCreditsUsed: number;
|
|
183
|
+
/**
|
|
184
|
+
* The number of requests per second
|
|
185
|
+
*/
|
|
186
|
+
requestsPerSecond: number;
|
|
187
|
+
/**
|
|
188
|
+
* The success rate percentage
|
|
189
|
+
*/
|
|
190
|
+
successRatePercent: number;
|
|
191
|
+
/**
|
|
192
|
+
* The median response time in milliseconds
|
|
193
|
+
*/
|
|
194
|
+
medianResponseTimeMsecs: number;
|
|
195
|
+
/**
|
|
196
|
+
* The number of invalid requests
|
|
197
|
+
*/
|
|
198
|
+
invalidRequests: number;
|
|
199
|
+
/**
|
|
200
|
+
* The number of API credits wasted on invalid requests
|
|
201
|
+
*/
|
|
202
|
+
apiCreditsWasted: number;
|
|
203
|
+
/**
|
|
204
|
+
* Column name used for data aggregation
|
|
205
|
+
*/
|
|
206
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
207
|
+
/**
|
|
208
|
+
* The value of the column used for data aggregation
|
|
209
|
+
*/
|
|
210
|
+
groupValue?: (string | number);
|
|
211
|
+
};
|
|
212
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
213
|
+
/**
|
|
214
|
+
* Column name used for data aggregation
|
|
215
|
+
*/
|
|
216
|
+
enum groupedBy {
|
|
217
|
+
RPC_METHOD = "rpcMethod",
|
|
218
|
+
RESPONSE_CODE = "responseCode",
|
|
219
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
220
|
+
REQUEST_PATH = "requestPath",
|
|
221
|
+
COUNTRY = "country",
|
|
222
|
+
CONTINENT = "continent",
|
|
223
|
+
USER_AGENT = "userAgent",
|
|
224
|
+
NONE = "None"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
type RpcMetrics = {
|
|
229
|
+
/**
|
|
230
|
+
* The timestamp of the metrics value
|
|
231
|
+
*/
|
|
232
|
+
timestamp: number;
|
|
233
|
+
/**
|
|
234
|
+
* The metrics values for the timestamp
|
|
235
|
+
*/
|
|
236
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
240
|
+
/**
|
|
241
|
+
* Duration in which the metrics value is aggregated
|
|
242
|
+
*/
|
|
243
|
+
aggregateDuration: string;
|
|
244
|
+
/**
|
|
245
|
+
* Metrics values
|
|
246
|
+
*/
|
|
247
|
+
metrics: Array<RpcMetrics>;
|
|
248
|
+
/**
|
|
249
|
+
* Network type for which the metrics are aggregated
|
|
250
|
+
*/
|
|
251
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
252
|
+
};
|
|
253
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
254
|
+
/**
|
|
255
|
+
* Network type for which the metrics are aggregated
|
|
256
|
+
*/
|
|
257
|
+
enum network {
|
|
258
|
+
MAINNET = "mainnet",
|
|
259
|
+
TESTNET = "testnet"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
264
|
+
RPC_METHOD = "rpcMethod",
|
|
265
|
+
RESPONSE_CODE = "responseCode",
|
|
266
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
270
|
+
HOURLY = "hourly",
|
|
271
|
+
DAILY = "daily",
|
|
272
|
+
WEEKLY = "weekly",
|
|
273
|
+
MONTHLY = "monthly"
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
277
|
+
/**
|
|
278
|
+
* Duration in which the metrics value is aggregated
|
|
279
|
+
*/
|
|
280
|
+
aggregateDuration: string;
|
|
281
|
+
/**
|
|
282
|
+
* Metrics values
|
|
283
|
+
*/
|
|
284
|
+
metrics: Array<RpcMetrics>;
|
|
285
|
+
/**
|
|
286
|
+
* ChainId for which the metrics are aggregated
|
|
287
|
+
*/
|
|
288
|
+
chainId: string;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
declare enum TimeIntervalGranularityExtended {
|
|
292
|
+
MINUTE = "minute",
|
|
293
|
+
HOURLY = "hourly",
|
|
294
|
+
DAILY = "daily",
|
|
295
|
+
WEEKLY = "weekly",
|
|
296
|
+
MONTHLY = "monthly"
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare enum UsageMetricsGroupByEnum {
|
|
300
|
+
REQUEST_PATH = "requestPath",
|
|
301
|
+
RESPONSE_CODE = "responseCode",
|
|
302
|
+
CHAIN_ID = "chainId",
|
|
303
|
+
API_KEY_ID = "apiKeyId",
|
|
304
|
+
REQUEST_TYPE = "requestType"
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
type UsageMetricsValueDTO = {
|
|
308
|
+
/**
|
|
309
|
+
* Column name used for data aggregation
|
|
310
|
+
*/
|
|
311
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
312
|
+
/**
|
|
313
|
+
* The value of the column used for data aggregation
|
|
314
|
+
*/
|
|
315
|
+
groupValue?: (string | number);
|
|
316
|
+
/**
|
|
317
|
+
* The total number of requests
|
|
318
|
+
*/
|
|
319
|
+
totalRequests: number;
|
|
320
|
+
/**
|
|
321
|
+
* The number of requests per second
|
|
322
|
+
*/
|
|
323
|
+
requestsPerSecond: number;
|
|
324
|
+
/**
|
|
325
|
+
* The success rate percentage
|
|
326
|
+
*/
|
|
327
|
+
successRatePercent: number;
|
|
328
|
+
/**
|
|
329
|
+
* The median response time in milliseconds
|
|
330
|
+
*/
|
|
331
|
+
medianResponseTimeMsecs: number;
|
|
332
|
+
/**
|
|
333
|
+
* The number of invalid requests
|
|
334
|
+
*/
|
|
335
|
+
invalidRequests: number;
|
|
336
|
+
/**
|
|
337
|
+
* The number of API credits used
|
|
338
|
+
*/
|
|
339
|
+
apiCreditsUsed: number;
|
|
340
|
+
/**
|
|
341
|
+
* The number of API credits wasted on invalid requests
|
|
342
|
+
*/
|
|
343
|
+
apiCreditsWasted: number;
|
|
344
|
+
};
|
|
345
|
+
declare namespace UsageMetricsValueDTO {
|
|
346
|
+
/**
|
|
347
|
+
* Column name used for data aggregation
|
|
348
|
+
*/
|
|
349
|
+
enum groupedBy {
|
|
350
|
+
REQUEST_PATH = "requestPath",
|
|
351
|
+
RESPONSE_CODE = "responseCode",
|
|
352
|
+
CHAIN_ID = "chainId",
|
|
353
|
+
API_KEY_ID = "apiKeyId",
|
|
354
|
+
REQUEST_TYPE = "requestType",
|
|
355
|
+
NONE = "None"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
type Metric = {
|
|
360
|
+
/**
|
|
361
|
+
* The timestamp of the metrics value
|
|
362
|
+
*/
|
|
363
|
+
timestamp: number;
|
|
364
|
+
/**
|
|
365
|
+
* The metrics values for the timestamp
|
|
366
|
+
*/
|
|
367
|
+
values: Array<UsageMetricsValueDTO>;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
type UsageMetricsResponseDTO = {
|
|
371
|
+
/**
|
|
372
|
+
* Duration in which the metrics value is aggregated
|
|
373
|
+
*/
|
|
374
|
+
aggregateDuration: string;
|
|
375
|
+
/**
|
|
376
|
+
* Org ID for which the metrics are aggregated
|
|
377
|
+
*/
|
|
378
|
+
orgId: string;
|
|
379
|
+
/**
|
|
380
|
+
* Metrics values
|
|
381
|
+
*/
|
|
382
|
+
metrics: Array<Metric>;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
declare class DataApiUsageMetricsService {
|
|
386
|
+
readonly httpRequest: BaseHttpRequest;
|
|
387
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
388
|
+
/**
|
|
389
|
+
* Get usage metrics for the Data API
|
|
390
|
+
* Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
391
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
392
|
+
* @throws ApiError
|
|
393
|
+
*/
|
|
394
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
395
|
+
/**
|
|
396
|
+
* Organization ID to fetch usage metrics for
|
|
397
|
+
*/
|
|
398
|
+
orgId?: string;
|
|
399
|
+
/**
|
|
400
|
+
* 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.
|
|
401
|
+
*/
|
|
402
|
+
startTimestamp?: number;
|
|
403
|
+
/**
|
|
404
|
+
* 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.
|
|
405
|
+
*/
|
|
406
|
+
endTimestamp?: number;
|
|
407
|
+
/**
|
|
408
|
+
* Time interval granularity for data aggregation
|
|
409
|
+
*/
|
|
410
|
+
timeInterval?: TimeIntervalGranularityExtended;
|
|
411
|
+
/**
|
|
412
|
+
* Query param for the criterion used for grouping metrics
|
|
413
|
+
*/
|
|
414
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
415
|
+
/**
|
|
416
|
+
* Filter data by chain ID.
|
|
417
|
+
*/
|
|
418
|
+
chainId?: string;
|
|
419
|
+
/**
|
|
420
|
+
* Filter data by response status code.
|
|
421
|
+
*/
|
|
422
|
+
responseCode?: string;
|
|
423
|
+
/**
|
|
424
|
+
* Filter data by request type.
|
|
425
|
+
*/
|
|
426
|
+
requestType?: 'data' | 'rpc';
|
|
427
|
+
/**
|
|
428
|
+
* Filter data by API key ID.
|
|
429
|
+
*/
|
|
430
|
+
apiKeyId?: string;
|
|
431
|
+
/**
|
|
432
|
+
* Filter data by request path.
|
|
433
|
+
*/
|
|
434
|
+
requestPath?: string;
|
|
435
|
+
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
436
|
+
/**
|
|
437
|
+
* Get logs for requests made by client
|
|
438
|
+
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
439
|
+
* @returns LogsResponseDTO Successful response
|
|
440
|
+
* @throws ApiError
|
|
441
|
+
*/
|
|
442
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
443
|
+
/**
|
|
444
|
+
* Organization ID to fetch usage metrics for
|
|
445
|
+
*/
|
|
446
|
+
orgId?: string;
|
|
447
|
+
/**
|
|
448
|
+
* 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.
|
|
449
|
+
*/
|
|
450
|
+
startTimestamp?: number;
|
|
451
|
+
/**
|
|
452
|
+
* 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.
|
|
453
|
+
*/
|
|
454
|
+
endTimestamp?: number;
|
|
455
|
+
/**
|
|
456
|
+
* Filter data by chain ID.
|
|
457
|
+
*/
|
|
458
|
+
chainId?: string;
|
|
459
|
+
/**
|
|
460
|
+
* Filter data by response status code.
|
|
461
|
+
*/
|
|
462
|
+
responseCode?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Filter data by request type.
|
|
465
|
+
*/
|
|
466
|
+
requestType?: 'data' | 'rpc';
|
|
467
|
+
/**
|
|
468
|
+
* Filter data by API key ID.
|
|
469
|
+
*/
|
|
470
|
+
apiKeyId?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Filter data by request path.
|
|
473
|
+
*/
|
|
474
|
+
requestPath?: string;
|
|
475
|
+
/**
|
|
476
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
477
|
+
*/
|
|
478
|
+
pageToken?: string;
|
|
479
|
+
/**
|
|
480
|
+
* The maximum number of items to return.
|
|
481
|
+
*/
|
|
482
|
+
pageSize?: number;
|
|
483
|
+
}): CancelablePromise<LogsResponseDTO>;
|
|
484
|
+
/**
|
|
485
|
+
* Get usage metrics for the Subnet RPC
|
|
486
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
487
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
488
|
+
* @throws ApiError
|
|
489
|
+
*/
|
|
490
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
491
|
+
/**
|
|
492
|
+
* Time interval granularity for data aggregation for subnet
|
|
493
|
+
* rpc metrics
|
|
494
|
+
*/
|
|
495
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
496
|
+
/**
|
|
497
|
+
* 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.
|
|
498
|
+
*/
|
|
499
|
+
startTimestamp?: number;
|
|
500
|
+
/**
|
|
501
|
+
* 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.
|
|
502
|
+
*/
|
|
503
|
+
endTimestamp?: number;
|
|
504
|
+
/**
|
|
505
|
+
* Query param for the criterion used for grouping metrics
|
|
506
|
+
*/
|
|
507
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
508
|
+
/**
|
|
509
|
+
* Filter data by chain ID.
|
|
510
|
+
*/
|
|
511
|
+
chainId?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Filter data by response status code.
|
|
514
|
+
*/
|
|
515
|
+
responseCode?: string;
|
|
516
|
+
/**
|
|
517
|
+
* Filter data by RPC method.
|
|
518
|
+
*/
|
|
519
|
+
rpcMethod?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Filter data by Rl Bypass API Token.
|
|
522
|
+
*/
|
|
523
|
+
rlBypassApiToken?: string;
|
|
524
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
525
|
+
/**
|
|
526
|
+
* @deprecated
|
|
527
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
528
|
+
*
|
|
529
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
530
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
531
|
+
* @throws ApiError
|
|
532
|
+
*/
|
|
533
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
534
|
+
/**
|
|
535
|
+
* Time interval granularity for data aggregation for subnet
|
|
536
|
+
* rpc metrics
|
|
537
|
+
*/
|
|
538
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
539
|
+
/**
|
|
540
|
+
* 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.
|
|
541
|
+
*/
|
|
542
|
+
startTimestamp?: number;
|
|
543
|
+
/**
|
|
544
|
+
* 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.
|
|
545
|
+
*/
|
|
546
|
+
endTimestamp?: number;
|
|
547
|
+
/**
|
|
548
|
+
* Query param for the criterion used for grouping metrics
|
|
549
|
+
*/
|
|
550
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
551
|
+
/**
|
|
552
|
+
* Filter data by chain ID.
|
|
553
|
+
*/
|
|
554
|
+
chainId?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Filter data by response status code.
|
|
557
|
+
*/
|
|
558
|
+
responseCode?: string;
|
|
559
|
+
/**
|
|
560
|
+
* Filter data by RPC method.
|
|
561
|
+
*/
|
|
562
|
+
rpcMethod?: string;
|
|
563
|
+
/**
|
|
564
|
+
* Filter data by Rl Bypass API Token.
|
|
565
|
+
*/
|
|
566
|
+
rlBypassApiToken?: string;
|
|
567
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
568
|
+
/**
|
|
569
|
+
* Get usage metrics for the Primary Network RPC
|
|
570
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
571
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
572
|
+
* @throws ApiError
|
|
573
|
+
*/
|
|
574
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
575
|
+
/**
|
|
576
|
+
* Either mainnet or testnet/fuji.
|
|
577
|
+
*/
|
|
578
|
+
network: Network;
|
|
579
|
+
/**
|
|
580
|
+
* Time interval granularity for data aggregation for subnet
|
|
581
|
+
* rpc metrics
|
|
582
|
+
*/
|
|
583
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
584
|
+
/**
|
|
585
|
+
* 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.
|
|
586
|
+
*/
|
|
587
|
+
startTimestamp?: number;
|
|
588
|
+
/**
|
|
589
|
+
* 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.
|
|
590
|
+
*/
|
|
591
|
+
endTimestamp?: number;
|
|
592
|
+
/**
|
|
593
|
+
* Query param for the criterion used for grouping metrics
|
|
594
|
+
*/
|
|
595
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
596
|
+
/**
|
|
597
|
+
* Filter data by response status code.
|
|
598
|
+
*/
|
|
599
|
+
responseCode?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Filter data by request path.
|
|
602
|
+
*/
|
|
603
|
+
requestPath?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
606
|
+
*/
|
|
607
|
+
country?: string;
|
|
608
|
+
/**
|
|
609
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
610
|
+
*/
|
|
611
|
+
continent?: string;
|
|
612
|
+
/**
|
|
613
|
+
* Filter data by User Agent.
|
|
614
|
+
*/
|
|
615
|
+
userAgent?: string;
|
|
616
|
+
/**
|
|
617
|
+
* Filter data by RPC method.
|
|
618
|
+
*/
|
|
619
|
+
rpcMethod?: string;
|
|
620
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
621
|
+
}
|
|
622
|
+
|
|
57
623
|
declare class DefaultService {
|
|
58
624
|
readonly httpRequest: BaseHttpRequest;
|
|
59
625
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -250,6 +816,10 @@ type ListErc1155BalancesResponse = {
|
|
|
250
816
|
* 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.
|
|
251
817
|
*/
|
|
252
818
|
nextPageToken?: string;
|
|
819
|
+
/**
|
|
820
|
+
* The native token balance for the address.
|
|
821
|
+
*/
|
|
822
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
253
823
|
/**
|
|
254
824
|
* The list of ERC-1155 token balances for the address.
|
|
255
825
|
*/
|
|
@@ -294,11 +864,22 @@ type Erc20TokenBalance = {
|
|
|
294
864
|
* The monetary value of the balance, if a price is available for the token.
|
|
295
865
|
*/
|
|
296
866
|
balanceValue?: Money;
|
|
867
|
+
/**
|
|
868
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
869
|
+
*/
|
|
870
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
297
871
|
};
|
|
298
872
|
declare namespace Erc20TokenBalance {
|
|
299
873
|
enum ercType {
|
|
300
874
|
ERC_20 = "ERC-20"
|
|
301
875
|
}
|
|
876
|
+
/**
|
|
877
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
878
|
+
*/
|
|
879
|
+
enum tokenReputation {
|
|
880
|
+
MALICIOUS = "Malicious",
|
|
881
|
+
BENIGN = "Benign"
|
|
882
|
+
}
|
|
302
883
|
}
|
|
303
884
|
|
|
304
885
|
type ListErc20BalancesResponse = {
|
|
@@ -306,6 +887,10 @@ type ListErc20BalancesResponse = {
|
|
|
306
887
|
* 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.
|
|
307
888
|
*/
|
|
308
889
|
nextPageToken?: string;
|
|
890
|
+
/**
|
|
891
|
+
* The native token balance for the address.
|
|
892
|
+
*/
|
|
893
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
309
894
|
/**
|
|
310
895
|
* The list of ERC-20 token balances for the address.
|
|
311
896
|
*/
|
|
@@ -317,6 +902,10 @@ type ListErc721BalancesResponse = {
|
|
|
317
902
|
* 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.
|
|
318
903
|
*/
|
|
319
904
|
nextPageToken?: string;
|
|
905
|
+
/**
|
|
906
|
+
* The native token balance for the address.
|
|
907
|
+
*/
|
|
908
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
320
909
|
/**
|
|
321
910
|
* The list of ERC-721 token balances for the address.
|
|
322
911
|
*/
|
|
@@ -331,12 +920,12 @@ declare class EvmBalancesService {
|
|
|
331
920
|
* Gets native token balance of a wallet address.
|
|
332
921
|
*
|
|
333
922
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
334
|
-
* @returns GetNativeBalanceResponse
|
|
923
|
+
* @returns GetNativeBalanceResponse Successful response
|
|
335
924
|
* @throws ApiError
|
|
336
925
|
*/
|
|
337
926
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
338
927
|
/**
|
|
339
|
-
* A supported evm chain id
|
|
928
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
340
929
|
*/
|
|
341
930
|
chainId: string;
|
|
342
931
|
/**
|
|
@@ -359,12 +948,12 @@ declare class EvmBalancesService {
|
|
|
359
948
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
360
949
|
*
|
|
361
950
|
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
362
|
-
* @returns ListErc20BalancesResponse
|
|
951
|
+
* @returns ListErc20BalancesResponse Successful response
|
|
363
952
|
* @throws ApiError
|
|
364
953
|
*/
|
|
365
954
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
366
955
|
/**
|
|
367
|
-
* A supported evm chain id
|
|
956
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
368
957
|
*/
|
|
369
958
|
chainId: string;
|
|
370
959
|
/**
|
|
@@ -401,12 +990,12 @@ declare class EvmBalancesService {
|
|
|
401
990
|
* Lists ERC-721 token balances of a wallet address.
|
|
402
991
|
*
|
|
403
992
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
404
|
-
* @returns ListErc721BalancesResponse
|
|
993
|
+
* @returns ListErc721BalancesResponse Successful response
|
|
405
994
|
* @throws ApiError
|
|
406
995
|
*/
|
|
407
996
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
408
997
|
/**
|
|
409
|
-
* A supported evm chain id
|
|
998
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
410
999
|
*/
|
|
411
1000
|
chainId: string;
|
|
412
1001
|
/**
|
|
@@ -433,12 +1022,12 @@ declare class EvmBalancesService {
|
|
|
433
1022
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
434
1023
|
*
|
|
435
1024
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
436
|
-
* @returns ListErc1155BalancesResponse
|
|
1025
|
+
* @returns ListErc1155BalancesResponse Successful response
|
|
437
1026
|
* @throws ApiError
|
|
438
1027
|
*/
|
|
439
1028
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
440
1029
|
/**
|
|
441
|
-
* A supported evm chain id
|
|
1030
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
442
1031
|
*/
|
|
443
1032
|
chainId: string;
|
|
444
1033
|
/**
|
|
@@ -467,12 +1056,12 @@ declare class EvmBalancesService {
|
|
|
467
1056
|
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
468
1057
|
*
|
|
469
1058
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
470
|
-
* @returns ListCollectibleBalancesResponse
|
|
1059
|
+
* @returns ListCollectibleBalancesResponse Successful response
|
|
471
1060
|
* @throws ApiError
|
|
472
1061
|
*/
|
|
473
1062
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
474
1063
|
/**
|
|
475
|
-
* A supported evm chain id
|
|
1064
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
476
1065
|
*/
|
|
477
1066
|
chainId: string;
|
|
478
1067
|
/**
|
|
@@ -495,6 +1084,10 @@ declare class EvmBalancesService {
|
|
|
495
1084
|
}
|
|
496
1085
|
|
|
497
1086
|
type GetEvmBlockResponse = {
|
|
1087
|
+
/**
|
|
1088
|
+
* The EVM chain ID on which the block was created.
|
|
1089
|
+
*/
|
|
1090
|
+
chainId: string;
|
|
498
1091
|
/**
|
|
499
1092
|
* The block number on the chain.
|
|
500
1093
|
*/
|
|
@@ -539,6 +1132,10 @@ type GetEvmBlockResponse = {
|
|
|
539
1132
|
};
|
|
540
1133
|
|
|
541
1134
|
type EvmBlock = {
|
|
1135
|
+
/**
|
|
1136
|
+
* The EVM chain ID on which the block was created.
|
|
1137
|
+
*/
|
|
1138
|
+
chainId: string;
|
|
542
1139
|
/**
|
|
543
1140
|
* The block number on the chain.
|
|
544
1141
|
*/
|
|
@@ -593,15 +1190,35 @@ type ListEvmBlocksResponse = {
|
|
|
593
1190
|
declare class EvmBlocksService {
|
|
594
1191
|
readonly httpRequest: BaseHttpRequest;
|
|
595
1192
|
constructor(httpRequest: BaseHttpRequest);
|
|
1193
|
+
/**
|
|
1194
|
+
* List latest blocks across all supported EVM chains
|
|
1195
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1196
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1197
|
+
* @throws ApiError
|
|
1198
|
+
*/
|
|
1199
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1200
|
+
/**
|
|
1201
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1202
|
+
*/
|
|
1203
|
+
pageToken?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1206
|
+
*/
|
|
1207
|
+
pageSize?: number;
|
|
1208
|
+
/**
|
|
1209
|
+
* Either mainnet or testnet/fuji.
|
|
1210
|
+
*/
|
|
1211
|
+
network?: Network;
|
|
1212
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
596
1213
|
/**
|
|
597
1214
|
* List latest blocks
|
|
598
1215
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
599
|
-
* @returns ListEvmBlocksResponse
|
|
1216
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
600
1217
|
* @throws ApiError
|
|
601
1218
|
*/
|
|
602
1219
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
603
1220
|
/**
|
|
604
|
-
* A supported evm chain id
|
|
1221
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
605
1222
|
*/
|
|
606
1223
|
chainId: string;
|
|
607
1224
|
/**
|
|
@@ -616,12 +1233,12 @@ declare class EvmBlocksService {
|
|
|
616
1233
|
/**
|
|
617
1234
|
* Get block
|
|
618
1235
|
* Gets the details of an individual block on the EVM-compatible chain.
|
|
619
|
-
* @returns GetEvmBlockResponse
|
|
1236
|
+
* @returns GetEvmBlockResponse Successful response
|
|
620
1237
|
* @throws ApiError
|
|
621
1238
|
*/
|
|
622
1239
|
getBlock({ chainId, blockId, }: {
|
|
623
1240
|
/**
|
|
624
|
-
* A supported evm chain id
|
|
1241
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
1242
|
*/
|
|
626
1243
|
chainId: string;
|
|
627
1244
|
/**
|
|
@@ -631,6 +1248,12 @@ declare class EvmBlocksService {
|
|
|
631
1248
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
632
1249
|
}
|
|
633
1250
|
|
|
1251
|
+
declare enum ApiFeature {
|
|
1252
|
+
NFT_INDEXING = "nftIndexing",
|
|
1253
|
+
WEBHOOKS = "webhooks",
|
|
1254
|
+
TELEPORTER = "teleporter"
|
|
1255
|
+
}
|
|
1256
|
+
|
|
634
1257
|
/**
|
|
635
1258
|
* 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
1259
|
*/
|
|
@@ -686,14 +1309,9 @@ type GetChainResponse = {
|
|
|
686
1309
|
networkToken: NetworkToken;
|
|
687
1310
|
chainLogoUri?: string;
|
|
688
1311
|
private?: boolean;
|
|
689
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1312
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
690
1313
|
};
|
|
691
1314
|
|
|
692
|
-
declare enum GlacierApiFeature {
|
|
693
|
-
NFT_INDEXING = "nftIndexing",
|
|
694
|
-
WEBHOOKS = "webhooks"
|
|
695
|
-
}
|
|
696
|
-
|
|
697
1315
|
type ChainInfo = {
|
|
698
1316
|
chainId: string;
|
|
699
1317
|
status: ChainStatus;
|
|
@@ -711,49 +1329,235 @@ type ChainInfo = {
|
|
|
711
1329
|
networkToken: NetworkToken;
|
|
712
1330
|
chainLogoUri?: string;
|
|
713
1331
|
private?: boolean;
|
|
714
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1332
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
type ListAddressChainsResponse = {
|
|
1336
|
+
indexedChains?: Array<ChainInfo>;
|
|
1337
|
+
unindexedChains?: Array<string>;
|
|
715
1338
|
};
|
|
716
1339
|
|
|
717
1340
|
type ListChainsResponse = {
|
|
718
1341
|
chains: Array<ChainInfo>;
|
|
719
1342
|
};
|
|
720
1343
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
1344
|
+
/**
|
|
1345
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1346
|
+
*/
|
|
1347
|
+
declare enum TransactionMethodType {
|
|
1348
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1349
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1350
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
type Method = {
|
|
1354
|
+
callType: TransactionMethodType;
|
|
1355
|
+
/**
|
|
1356
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1357
|
+
*/
|
|
1358
|
+
methodHash: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1361
|
+
*/
|
|
1362
|
+
methodName?: string;
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
type RichAddress = {
|
|
1366
|
+
/**
|
|
1367
|
+
* The contract name.
|
|
1368
|
+
*/
|
|
1369
|
+
name?: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* The contract symbol.
|
|
1372
|
+
*/
|
|
1373
|
+
symbol?: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1376
|
+
*/
|
|
1377
|
+
decimals?: number;
|
|
1378
|
+
/**
|
|
1379
|
+
* The logo uri for the address.
|
|
1380
|
+
*/
|
|
1381
|
+
logoUri?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1384
|
+
*/
|
|
1385
|
+
address: string;
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
type NativeTransaction = {
|
|
1389
|
+
/**
|
|
1390
|
+
* The block number on the chain.
|
|
1391
|
+
*/
|
|
1392
|
+
blockNumber: string;
|
|
1393
|
+
/**
|
|
1394
|
+
* The block finality timestamp.
|
|
1395
|
+
*/
|
|
1396
|
+
blockTimestamp: number;
|
|
1397
|
+
/**
|
|
1398
|
+
* The block hash identifier.
|
|
1399
|
+
*/
|
|
1400
|
+
blockHash: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* The EVM chain ID on which the transaction occured.
|
|
1403
|
+
*/
|
|
1404
|
+
chainId: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1407
|
+
*/
|
|
1408
|
+
blockIndex: number;
|
|
1409
|
+
/**
|
|
1410
|
+
* The transaction hash identifier.
|
|
1411
|
+
*/
|
|
1412
|
+
txHash: string;
|
|
1413
|
+
/**
|
|
1414
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1415
|
+
*/
|
|
1416
|
+
txStatus: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* The transaction type.
|
|
1419
|
+
*/
|
|
1420
|
+
txType: number;
|
|
1421
|
+
/**
|
|
1422
|
+
* The gas limit set for the transaction.
|
|
1423
|
+
*/
|
|
1424
|
+
gasLimit: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* The amount of gas used.
|
|
1427
|
+
*/
|
|
1428
|
+
gasUsed: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1431
|
+
*/
|
|
1432
|
+
gasPrice: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* The nonce used by the sender of the transaction.
|
|
1435
|
+
*/
|
|
1436
|
+
nonce: string;
|
|
1437
|
+
from: RichAddress;
|
|
1438
|
+
to: RichAddress;
|
|
1439
|
+
method?: Method;
|
|
1440
|
+
value: string;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
type ListNativeTransactionsResponse = {
|
|
1444
|
+
/**
|
|
1445
|
+
* 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.
|
|
1446
|
+
*/
|
|
1447
|
+
nextPageToken?: string;
|
|
1448
|
+
transactions: Array<NativeTransaction>;
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
declare enum TransactionStatus {
|
|
1452
|
+
FAILED = "failed",
|
|
1453
|
+
SUCCESS = "success"
|
|
724
1454
|
}
|
|
725
1455
|
|
|
726
1456
|
declare class EvmChainsService {
|
|
727
1457
|
readonly httpRequest: BaseHttpRequest;
|
|
728
1458
|
constructor(httpRequest: BaseHttpRequest);
|
|
1459
|
+
/**
|
|
1460
|
+
* List all chains associated with a given address
|
|
1461
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1462
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1463
|
+
* @throws ApiError
|
|
1464
|
+
*/
|
|
1465
|
+
listAddressChains({ address, }: {
|
|
1466
|
+
/**
|
|
1467
|
+
* A wallet address.
|
|
1468
|
+
*/
|
|
1469
|
+
address: string;
|
|
1470
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
729
1471
|
/**
|
|
730
1472
|
* List chains
|
|
731
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
732
|
-
* @returns ListChainsResponse
|
|
1473
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1474
|
+
* @returns ListChainsResponse Successful response
|
|
1475
|
+
* @throws ApiError
|
|
1476
|
+
*/
|
|
1477
|
+
supportedChains({ network, feature, }: {
|
|
1478
|
+
/**
|
|
1479
|
+
* Either mainnet or testnet/fuji.
|
|
1480
|
+
*/
|
|
1481
|
+
network?: Network;
|
|
1482
|
+
/**
|
|
1483
|
+
* Filter by feature.
|
|
1484
|
+
*/
|
|
1485
|
+
feature?: ApiFeature;
|
|
1486
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1487
|
+
/**
|
|
1488
|
+
* Get chain information
|
|
1489
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1490
|
+
* @returns GetChainResponse Successful response
|
|
1491
|
+
* @throws ApiError
|
|
1492
|
+
*/
|
|
1493
|
+
getChainInfo({ chainId, }: {
|
|
1494
|
+
/**
|
|
1495
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1496
|
+
*/
|
|
1497
|
+
chainId: string;
|
|
1498
|
+
}): CancelablePromise<GetChainResponse>;
|
|
1499
|
+
/**
|
|
1500
|
+
* @deprecated
|
|
1501
|
+
* **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1502
|
+
*
|
|
1503
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1504
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1505
|
+
* @throws ApiError
|
|
1506
|
+
*/
|
|
1507
|
+
getAddressChains({ address, }: {
|
|
1508
|
+
/**
|
|
1509
|
+
* A wallet address.
|
|
1510
|
+
*/
|
|
1511
|
+
address: string;
|
|
1512
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1513
|
+
/**
|
|
1514
|
+
* @deprecated
|
|
1515
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1516
|
+
*
|
|
1517
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1518
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
733
1519
|
* @throws ApiError
|
|
734
1520
|
*/
|
|
735
|
-
|
|
1521
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
736
1522
|
/**
|
|
737
|
-
*
|
|
1523
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
738
1524
|
*/
|
|
739
|
-
|
|
1525
|
+
pageToken?: string;
|
|
740
1526
|
/**
|
|
741
|
-
*
|
|
1527
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
742
1528
|
*/
|
|
743
|
-
|
|
744
|
-
|
|
1529
|
+
pageSize?: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* Either mainnet or testnet/fuji.
|
|
1532
|
+
*/
|
|
1533
|
+
network?: Network;
|
|
1534
|
+
/**
|
|
1535
|
+
* A status filter for listed transactions.
|
|
1536
|
+
*/
|
|
1537
|
+
status?: TransactionStatus;
|
|
1538
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
745
1539
|
/**
|
|
746
|
-
*
|
|
747
|
-
*
|
|
748
|
-
*
|
|
1540
|
+
* @deprecated
|
|
1541
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1542
|
+
*
|
|
1543
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1544
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
749
1545
|
* @throws ApiError
|
|
750
1546
|
*/
|
|
751
|
-
|
|
1547
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
752
1548
|
/**
|
|
753
|
-
* A
|
|
1549
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
754
1550
|
*/
|
|
755
|
-
|
|
756
|
-
|
|
1551
|
+
pageToken?: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1554
|
+
*/
|
|
1555
|
+
pageSize?: number;
|
|
1556
|
+
/**
|
|
1557
|
+
* Either mainnet or testnet/fuji.
|
|
1558
|
+
*/
|
|
1559
|
+
network?: Network;
|
|
1560
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
757
1561
|
}
|
|
758
1562
|
|
|
759
1563
|
type ImageAsset = {
|
|
@@ -1040,12 +1844,12 @@ declare class EvmContractsService {
|
|
|
1040
1844
|
/**
|
|
1041
1845
|
* Get contract metadata
|
|
1042
1846
|
* Gets metadata about the contract at the given address.
|
|
1043
|
-
* @returns any
|
|
1847
|
+
* @returns any Successful response
|
|
1044
1848
|
* @throws ApiError
|
|
1045
1849
|
*/
|
|
1046
1850
|
getContractMetadata({ chainId, address, }: {
|
|
1047
1851
|
/**
|
|
1048
|
-
* A supported evm chain id
|
|
1852
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
1853
|
*/
|
|
1050
1854
|
chainId: string;
|
|
1051
1855
|
/**
|
|
@@ -1056,12 +1860,12 @@ declare class EvmContractsService {
|
|
|
1056
1860
|
/**
|
|
1057
1861
|
* Update contract information
|
|
1058
1862
|
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1059
|
-
* @returns UpdateContractResponse
|
|
1863
|
+
* @returns UpdateContractResponse Successful response
|
|
1060
1864
|
* @throws ApiError
|
|
1061
1865
|
*/
|
|
1062
1866
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1063
1867
|
/**
|
|
1064
|
-
* A supported evm chain id
|
|
1868
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
1869
|
*/
|
|
1066
1870
|
chainId: string;
|
|
1067
1871
|
/**
|
|
@@ -1088,29 +1892,6 @@ declare namespace Erc1155Token {
|
|
|
1088
1892
|
}
|
|
1089
1893
|
}
|
|
1090
1894
|
|
|
1091
|
-
type RichAddress = {
|
|
1092
|
-
/**
|
|
1093
|
-
* The contract name.
|
|
1094
|
-
*/
|
|
1095
|
-
name?: string;
|
|
1096
|
-
/**
|
|
1097
|
-
* The contract symbol.
|
|
1098
|
-
*/
|
|
1099
|
-
symbol?: string;
|
|
1100
|
-
/**
|
|
1101
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1102
|
-
*/
|
|
1103
|
-
decimals?: number;
|
|
1104
|
-
/**
|
|
1105
|
-
* The logo uri for the address.
|
|
1106
|
-
*/
|
|
1107
|
-
logoUri?: string;
|
|
1108
|
-
/**
|
|
1109
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1110
|
-
*/
|
|
1111
|
-
address: string;
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
1895
|
type Erc1155TransferDetails = {
|
|
1115
1896
|
from: RichAddress;
|
|
1116
1897
|
to: RichAddress;
|
|
@@ -1195,27 +1976,6 @@ type Erc721TransferDetails = {
|
|
|
1195
1976
|
erc721Token: Erc721Token;
|
|
1196
1977
|
};
|
|
1197
1978
|
|
|
1198
|
-
/**
|
|
1199
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1200
|
-
*/
|
|
1201
|
-
declare enum TransactionMethodType {
|
|
1202
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1203
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1204
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
type Method = {
|
|
1208
|
-
callType: TransactionMethodType;
|
|
1209
|
-
/**
|
|
1210
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1211
|
-
*/
|
|
1212
|
-
methodHash: string;
|
|
1213
|
-
/**
|
|
1214
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1215
|
-
*/
|
|
1216
|
-
methodName?: string;
|
|
1217
|
-
};
|
|
1218
|
-
|
|
1219
1979
|
type FullNativeTransactionDetails = {
|
|
1220
1980
|
/**
|
|
1221
1981
|
* The block number on the chain.
|
|
@@ -1229,6 +1989,10 @@ type FullNativeTransactionDetails = {
|
|
|
1229
1989
|
* The block hash identifier.
|
|
1230
1990
|
*/
|
|
1231
1991
|
blockHash: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* The EVM chain ID on which the transaction occured.
|
|
1994
|
+
*/
|
|
1995
|
+
chainId: string;
|
|
1232
1996
|
/**
|
|
1233
1997
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1234
1998
|
*/
|
|
@@ -1309,6 +2073,24 @@ type NetworkTokenDetails = {
|
|
|
1309
2073
|
historicalPrice?: Money;
|
|
1310
2074
|
};
|
|
1311
2075
|
|
|
2076
|
+
declare enum TransactionDirectionType {
|
|
2077
|
+
SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
|
|
2078
|
+
DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
type TeleporterMessageInfo = {
|
|
2082
|
+
teleporterMessageId: string;
|
|
2083
|
+
direction: TransactionDirectionType;
|
|
2084
|
+
/**
|
|
2085
|
+
* chain id of the source chain. valid only for destination transactions
|
|
2086
|
+
*/
|
|
2087
|
+
sourceChainId?: Record<string, any>;
|
|
2088
|
+
/**
|
|
2089
|
+
* chain id of the destination chain. valid only for source transactions
|
|
2090
|
+
*/
|
|
2091
|
+
destinationChainId?: Record<string, any>;
|
|
2092
|
+
};
|
|
2093
|
+
|
|
1312
2094
|
type GetTransactionResponse = {
|
|
1313
2095
|
/**
|
|
1314
2096
|
* The list of ERC-20 transfers.
|
|
@@ -1328,6 +2110,10 @@ type GetTransactionResponse = {
|
|
|
1328
2110
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1329
2111
|
networkTokenDetails: NetworkTokenDetails;
|
|
1330
2112
|
nativeTransaction: FullNativeTransactionDetails;
|
|
2113
|
+
/**
|
|
2114
|
+
* Corresponding teleporter message info if available.
|
|
2115
|
+
*/
|
|
2116
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
1331
2117
|
};
|
|
1332
2118
|
|
|
1333
2119
|
type ListContractsResponse = {
|
|
@@ -1470,65 +2256,6 @@ type ListInternalTransactionsResponse = {
|
|
|
1470
2256
|
transactions: Array<InternalTransaction>;
|
|
1471
2257
|
};
|
|
1472
2258
|
|
|
1473
|
-
type NativeTransaction = {
|
|
1474
|
-
/**
|
|
1475
|
-
* The block number on the chain.
|
|
1476
|
-
*/
|
|
1477
|
-
blockNumber: string;
|
|
1478
|
-
/**
|
|
1479
|
-
* The block finality timestamp.
|
|
1480
|
-
*/
|
|
1481
|
-
blockTimestamp: number;
|
|
1482
|
-
/**
|
|
1483
|
-
* The block hash identifier.
|
|
1484
|
-
*/
|
|
1485
|
-
blockHash: string;
|
|
1486
|
-
/**
|
|
1487
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1488
|
-
*/
|
|
1489
|
-
blockIndex: number;
|
|
1490
|
-
/**
|
|
1491
|
-
* The transaction hash identifier.
|
|
1492
|
-
*/
|
|
1493
|
-
txHash: string;
|
|
1494
|
-
/**
|
|
1495
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1496
|
-
*/
|
|
1497
|
-
txStatus: string;
|
|
1498
|
-
/**
|
|
1499
|
-
* The transaction type.
|
|
1500
|
-
*/
|
|
1501
|
-
txType: number;
|
|
1502
|
-
/**
|
|
1503
|
-
* The gas limit set for the transaction.
|
|
1504
|
-
*/
|
|
1505
|
-
gasLimit: string;
|
|
1506
|
-
/**
|
|
1507
|
-
* The amount of gas used.
|
|
1508
|
-
*/
|
|
1509
|
-
gasUsed: string;
|
|
1510
|
-
/**
|
|
1511
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1512
|
-
*/
|
|
1513
|
-
gasPrice: string;
|
|
1514
|
-
/**
|
|
1515
|
-
* The nonce used by the sender of the transaction.
|
|
1516
|
-
*/
|
|
1517
|
-
nonce: string;
|
|
1518
|
-
from: RichAddress;
|
|
1519
|
-
to: RichAddress;
|
|
1520
|
-
method?: Method;
|
|
1521
|
-
value: string;
|
|
1522
|
-
};
|
|
1523
|
-
|
|
1524
|
-
type ListNativeTransactionsResponse = {
|
|
1525
|
-
/**
|
|
1526
|
-
* 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.
|
|
1527
|
-
*/
|
|
1528
|
-
nextPageToken?: string;
|
|
1529
|
-
transactions: Array<NativeTransaction>;
|
|
1530
|
-
};
|
|
1531
|
-
|
|
1532
2259
|
type TransactionDetails = {
|
|
1533
2260
|
/**
|
|
1534
2261
|
* The native (top-level) transaction details.
|
|
@@ -1573,23 +2300,42 @@ declare enum SortOrder {
|
|
|
1573
2300
|
DESC = "desc"
|
|
1574
2301
|
}
|
|
1575
2302
|
|
|
1576
|
-
declare enum TransactionStatus {
|
|
1577
|
-
FAILED = "failed",
|
|
1578
|
-
SUCCESS = "success"
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
2303
|
declare class EvmTransactionsService {
|
|
1582
2304
|
readonly httpRequest: BaseHttpRequest;
|
|
1583
2305
|
constructor(httpRequest: BaseHttpRequest);
|
|
2306
|
+
/**
|
|
2307
|
+
* List the latest transactions across all supported EVM chains
|
|
2308
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2309
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2310
|
+
* @throws ApiError
|
|
2311
|
+
*/
|
|
2312
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2313
|
+
/**
|
|
2314
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2315
|
+
*/
|
|
2316
|
+
pageToken?: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2319
|
+
*/
|
|
2320
|
+
pageSize?: number;
|
|
2321
|
+
/**
|
|
2322
|
+
* Either mainnet or testnet/fuji.
|
|
2323
|
+
*/
|
|
2324
|
+
network?: Network;
|
|
2325
|
+
/**
|
|
2326
|
+
* A status filter for listed transactions.
|
|
2327
|
+
*/
|
|
2328
|
+
status?: TransactionStatus;
|
|
2329
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1584
2330
|
/**
|
|
1585
2331
|
* Get deployment transaction
|
|
1586
2332
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
2333
|
+
* @returns GetTransactionResponse Successful response
|
|
1588
2334
|
* @throws ApiError
|
|
1589
2335
|
*/
|
|
1590
2336
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1591
2337
|
/**
|
|
1592
|
-
* A supported evm chain id
|
|
2338
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
2339
|
*/
|
|
1594
2340
|
chainId: string;
|
|
1595
2341
|
/**
|
|
@@ -1604,12 +2350,12 @@ declare class EvmTransactionsService {
|
|
|
1604
2350
|
/**
|
|
1605
2351
|
* List deployed contracts
|
|
1606
2352
|
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
2353
|
+
* @returns ListContractsResponse Successful response
|
|
1608
2354
|
* @throws ApiError
|
|
1609
2355
|
*/
|
|
1610
2356
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1611
2357
|
/**
|
|
1612
|
-
* A supported evm chain id
|
|
2358
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
2359
|
*/
|
|
1614
2360
|
chainId: string;
|
|
1615
2361
|
/**
|
|
@@ -1628,12 +2374,12 @@ declare class EvmTransactionsService {
|
|
|
1628
2374
|
/**
|
|
1629
2375
|
* List ERC transfers
|
|
1630
2376
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
2377
|
+
* @returns ListTransfersResponse Successful response
|
|
1632
2378
|
* @throws ApiError
|
|
1633
2379
|
*/
|
|
1634
2380
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1635
2381
|
/**
|
|
1636
|
-
* A supported evm chain id
|
|
2382
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
2383
|
*/
|
|
1638
2384
|
chainId: string;
|
|
1639
2385
|
/**
|
|
@@ -1662,12 +2408,12 @@ declare class EvmTransactionsService {
|
|
|
1662
2408
|
* 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.
|
|
1663
2409
|
*
|
|
1664
2410
|
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
2411
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1666
2412
|
* @throws ApiError
|
|
1667
2413
|
*/
|
|
1668
2414
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1669
2415
|
/**
|
|
1670
|
-
* A supported evm chain id
|
|
2416
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
2417
|
*/
|
|
1672
2418
|
chainId: string;
|
|
1673
2419
|
/**
|
|
@@ -1698,12 +2444,12 @@ declare class EvmTransactionsService {
|
|
|
1698
2444
|
/**
|
|
1699
2445
|
* List native transactions
|
|
1700
2446
|
* Lists native transactions for an address. Filterable by block range.
|
|
1701
|
-
* @returns ListNativeTransactionsResponse
|
|
2447
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1702
2448
|
* @throws ApiError
|
|
1703
2449
|
*/
|
|
1704
2450
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1705
2451
|
/**
|
|
1706
|
-
* A supported evm chain id
|
|
2452
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
2453
|
*/
|
|
1708
2454
|
chainId: string;
|
|
1709
2455
|
/**
|
|
@@ -1730,12 +2476,12 @@ declare class EvmTransactionsService {
|
|
|
1730
2476
|
/**
|
|
1731
2477
|
* List ERC-20 transfers
|
|
1732
2478
|
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1733
|
-
* @returns ListErc20TransactionsResponse
|
|
2479
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1734
2480
|
* @throws ApiError
|
|
1735
2481
|
*/
|
|
1736
2482
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
2483
|
/**
|
|
1738
|
-
* A supported evm chain id
|
|
2484
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
2485
|
*/
|
|
1740
2486
|
chainId: string;
|
|
1741
2487
|
/**
|
|
@@ -1762,12 +2508,12 @@ declare class EvmTransactionsService {
|
|
|
1762
2508
|
/**
|
|
1763
2509
|
* List ERC-721 transfers
|
|
1764
2510
|
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1765
|
-
* @returns ListErc721TransactionsResponse
|
|
2511
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
1766
2512
|
* @throws ApiError
|
|
1767
2513
|
*/
|
|
1768
2514
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1769
2515
|
/**
|
|
1770
|
-
* A supported evm chain id
|
|
2516
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
2517
|
*/
|
|
1772
2518
|
chainId: string;
|
|
1773
2519
|
/**
|
|
@@ -1794,12 +2540,12 @@ declare class EvmTransactionsService {
|
|
|
1794
2540
|
/**
|
|
1795
2541
|
* List ERC-1155 transfers
|
|
1796
2542
|
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1797
|
-
* @returns ListErc1155TransactionsResponse
|
|
2543
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
1798
2544
|
* @throws ApiError
|
|
1799
2545
|
*/
|
|
1800
2546
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1801
2547
|
/**
|
|
1802
|
-
* A supported evm chain id
|
|
2548
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
2549
|
*/
|
|
1804
2550
|
chainId: string;
|
|
1805
2551
|
/**
|
|
@@ -1828,12 +2574,12 @@ declare class EvmTransactionsService {
|
|
|
1828
2574
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
1829
2575
|
*
|
|
1830
2576
|
* 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.
|
|
1831
|
-
* @returns ListInternalTransactionsResponse
|
|
2577
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
1832
2578
|
* @throws ApiError
|
|
1833
2579
|
*/
|
|
1834
2580
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1835
2581
|
/**
|
|
1836
|
-
* A supported evm chain id
|
|
2582
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
2583
|
*/
|
|
1838
2584
|
chainId: string;
|
|
1839
2585
|
/**
|
|
@@ -1860,12 +2606,12 @@ declare class EvmTransactionsService {
|
|
|
1860
2606
|
/**
|
|
1861
2607
|
* Get transaction
|
|
1862
2608
|
* Gets the details of a single transaction.
|
|
1863
|
-
* @returns GetTransactionResponse
|
|
2609
|
+
* @returns GetTransactionResponse Successful response
|
|
1864
2610
|
* @throws ApiError
|
|
1865
2611
|
*/
|
|
1866
2612
|
getTransaction({ chainId, txHash, }: {
|
|
1867
2613
|
/**
|
|
1868
|
-
* A supported evm chain id
|
|
2614
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
2615
|
*/
|
|
1870
2616
|
chainId: string;
|
|
1871
2617
|
/**
|
|
@@ -1876,28 +2622,36 @@ declare class EvmTransactionsService {
|
|
|
1876
2622
|
/**
|
|
1877
2623
|
* List transactions for a block
|
|
1878
2624
|
* Lists the transactions that occured in a given block.
|
|
1879
|
-
* @returns ListNativeTransactionsResponse
|
|
2625
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1880
2626
|
* @throws ApiError
|
|
1881
2627
|
*/
|
|
1882
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2628
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
1883
2629
|
/**
|
|
1884
|
-
* A supported evm chain id
|
|
2630
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1885
2631
|
*/
|
|
1886
2632
|
chainId: string;
|
|
1887
2633
|
/**
|
|
1888
2634
|
* A block identifier which is either a block number or the block hash.
|
|
1889
2635
|
*/
|
|
1890
2636
|
blockId: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2639
|
+
*/
|
|
2640
|
+
pageToken?: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2643
|
+
*/
|
|
2644
|
+
pageSize?: number;
|
|
1891
2645
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1892
2646
|
/**
|
|
1893
2647
|
* List latest transactions
|
|
1894
2648
|
* Lists the latest transactions. Filterable by status.
|
|
1895
|
-
* @returns ListNativeTransactionsResponse
|
|
2649
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1896
2650
|
* @throws ApiError
|
|
1897
2651
|
*/
|
|
1898
2652
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1899
2653
|
/**
|
|
1900
|
-
* A supported evm chain id
|
|
2654
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
2655
|
*/
|
|
1902
2656
|
chainId: string;
|
|
1903
2657
|
/**
|
|
@@ -1915,221 +2669,261 @@ declare class EvmTransactionsService {
|
|
|
1915
2669
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1916
2670
|
}
|
|
1917
2671
|
|
|
1918
|
-
type
|
|
1919
|
-
/**
|
|
1920
|
-
* The IP address of the client that made the request.
|
|
1921
|
-
*/
|
|
1922
|
-
ipAddress: string;
|
|
2672
|
+
type HealthIndicatorResultDto = {
|
|
1923
2673
|
/**
|
|
1924
|
-
*
|
|
2674
|
+
* Status of the health indicator.
|
|
1925
2675
|
*/
|
|
1926
|
-
|
|
2676
|
+
status?: HealthIndicatorResultDto.status;
|
|
2677
|
+
};
|
|
2678
|
+
declare namespace HealthIndicatorResultDto {
|
|
1927
2679
|
/**
|
|
1928
|
-
*
|
|
2680
|
+
* Status of the health indicator.
|
|
1929
2681
|
*/
|
|
1930
|
-
|
|
1931
|
-
|
|
2682
|
+
enum status {
|
|
2683
|
+
UP = "up",
|
|
2684
|
+
DOWN = "down"
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
1932
2687
|
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
2688
|
+
type HealthCheckResultDto = {
|
|
2689
|
+
status?: HealthCheckResultDto.status;
|
|
2690
|
+
info?: any | null;
|
|
2691
|
+
error?: any | null;
|
|
2692
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2693
|
+
};
|
|
2694
|
+
declare namespace HealthCheckResultDto {
|
|
2695
|
+
enum status {
|
|
2696
|
+
ERROR = "error",
|
|
2697
|
+
OK = "ok",
|
|
2698
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2699
|
+
}
|
|
1939
2700
|
}
|
|
1940
2701
|
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
*/
|
|
1945
|
-
orgId: string;
|
|
1946
|
-
/**
|
|
1947
|
-
* The unique log id of the request.
|
|
1948
|
-
*/
|
|
1949
|
-
logId: string;
|
|
1950
|
-
/**
|
|
1951
|
-
* The timestamp of the request.
|
|
1952
|
-
*/
|
|
1953
|
-
eventTimestamp: number;
|
|
1954
|
-
/**
|
|
1955
|
-
* The apiKey used to make the request.
|
|
1956
|
-
*/
|
|
1957
|
-
apiKeyId: string;
|
|
1958
|
-
/**
|
|
1959
|
-
* The alias of the apiKey used to make the request.
|
|
1960
|
-
*/
|
|
1961
|
-
apiKeyAlias: string;
|
|
1962
|
-
/**
|
|
1963
|
-
* The region of the host for the request made by the client.
|
|
1964
|
-
*/
|
|
1965
|
-
hostRegion: string;
|
|
1966
|
-
requestType: RequestType;
|
|
1967
|
-
/**
|
|
1968
|
-
* The path of the request made by the client.
|
|
1969
|
-
*/
|
|
1970
|
-
requestPath: string;
|
|
1971
|
-
/**
|
|
1972
|
-
* The number of API credits consumed by the request.
|
|
1973
|
-
*/
|
|
1974
|
-
apiCreditsConsumed: number;
|
|
1975
|
-
/**
|
|
1976
|
-
* The duration of the request in milliseconds.
|
|
1977
|
-
*/
|
|
1978
|
-
requestDurationMsecs: number;
|
|
2702
|
+
declare class HealthCheckService {
|
|
2703
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2704
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1979
2705
|
/**
|
|
1980
|
-
*
|
|
2706
|
+
* Get the health of the service
|
|
2707
|
+
* Check the health of the service.
|
|
2708
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2709
|
+
* @throws ApiError
|
|
1981
2710
|
*/
|
|
1982
|
-
|
|
2711
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
type IcmDestinationTransaction = {
|
|
2715
|
+
txHash: string;
|
|
2716
|
+
timestamp: number;
|
|
2717
|
+
gasSpent: string;
|
|
2718
|
+
rewardRedeemer: string;
|
|
2719
|
+
delivererAddress: string;
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
type IcmReceipt = {
|
|
2723
|
+
receivedMessageNonce: string;
|
|
2724
|
+
relayerRewardAddress: string;
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
type IcmRewardDetails = {
|
|
1983
2728
|
/**
|
|
1984
|
-
*
|
|
2729
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1985
2730
|
*/
|
|
1986
|
-
|
|
2731
|
+
address: string;
|
|
1987
2732
|
/**
|
|
1988
|
-
* The
|
|
2733
|
+
* The contract name.
|
|
1989
2734
|
*/
|
|
1990
|
-
|
|
2735
|
+
name: string;
|
|
1991
2736
|
/**
|
|
1992
|
-
* The
|
|
2737
|
+
* The contract symbol.
|
|
1993
2738
|
*/
|
|
1994
|
-
|
|
1995
|
-
};
|
|
1996
|
-
|
|
1997
|
-
type LogsResponseDTO = {
|
|
2739
|
+
symbol: string;
|
|
1998
2740
|
/**
|
|
1999
|
-
*
|
|
2741
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2000
2742
|
*/
|
|
2001
|
-
|
|
2743
|
+
decimals: number;
|
|
2002
2744
|
/**
|
|
2003
|
-
* The
|
|
2745
|
+
* The logo uri for the address.
|
|
2004
2746
|
*/
|
|
2005
|
-
|
|
2747
|
+
logoUri?: string;
|
|
2748
|
+
ercType: IcmRewardDetails.ercType;
|
|
2006
2749
|
/**
|
|
2007
|
-
*
|
|
2750
|
+
* The token price, if available.
|
|
2008
2751
|
*/
|
|
2009
|
-
|
|
2752
|
+
price?: Money;
|
|
2753
|
+
value: string;
|
|
2010
2754
|
};
|
|
2755
|
+
declare namespace IcmRewardDetails {
|
|
2756
|
+
enum ercType {
|
|
2757
|
+
ERC_20 = "ERC-20"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2011
2760
|
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2761
|
+
type IcmSourceTransaction = {
|
|
2762
|
+
txHash: string;
|
|
2763
|
+
timestamp: number;
|
|
2764
|
+
gasSpent: string;
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
type DeliveredIcmMessage = {
|
|
2768
|
+
messageId: string;
|
|
2769
|
+
icmContractAddress: string;
|
|
2770
|
+
sourceBlockchainId: string;
|
|
2771
|
+
destinationBlockchainId: string;
|
|
2772
|
+
sourceEvmChainId: string;
|
|
2773
|
+
destinationEvmChainId: string;
|
|
2774
|
+
messageNonce: string;
|
|
2775
|
+
from: string;
|
|
2776
|
+
to: string;
|
|
2777
|
+
data?: string;
|
|
2778
|
+
messageExecuted: boolean;
|
|
2779
|
+
receipts: Array<IcmReceipt>;
|
|
2780
|
+
receiptDelivered: boolean;
|
|
2781
|
+
rewardDetails: IcmRewardDetails;
|
|
2782
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2783
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2784
|
+
status: DeliveredIcmMessage.status;
|
|
2785
|
+
};
|
|
2786
|
+
declare namespace DeliveredIcmMessage {
|
|
2787
|
+
enum status {
|
|
2788
|
+
DELIVERED = "delivered"
|
|
2789
|
+
}
|
|
2018
2790
|
}
|
|
2019
2791
|
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2792
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2793
|
+
messageId: string;
|
|
2794
|
+
icmContractAddress: string;
|
|
2795
|
+
sourceBlockchainId: string;
|
|
2796
|
+
destinationBlockchainId: string;
|
|
2797
|
+
sourceEvmChainId: string;
|
|
2798
|
+
destinationEvmChainId: string;
|
|
2799
|
+
messageNonce: string;
|
|
2800
|
+
from: string;
|
|
2801
|
+
to: string;
|
|
2802
|
+
data?: string;
|
|
2803
|
+
messageExecuted: boolean;
|
|
2804
|
+
receipts: Array<IcmReceipt>;
|
|
2805
|
+
receiptDelivered: boolean;
|
|
2806
|
+
rewardDetails: IcmRewardDetails;
|
|
2807
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2808
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2809
|
+
};
|
|
2810
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2811
|
+
enum status {
|
|
2812
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2813
|
+
}
|
|
2025
2814
|
}
|
|
2026
2815
|
|
|
2027
|
-
type
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2816
|
+
type PendingIcmMessage = {
|
|
2817
|
+
messageId: string;
|
|
2818
|
+
icmContractAddress: string;
|
|
2819
|
+
sourceBlockchainId: string;
|
|
2820
|
+
destinationBlockchainId: string;
|
|
2821
|
+
sourceEvmChainId: string;
|
|
2822
|
+
destinationEvmChainId: string;
|
|
2823
|
+
messageNonce: string;
|
|
2824
|
+
from: string;
|
|
2825
|
+
to: string;
|
|
2826
|
+
data?: string;
|
|
2827
|
+
messageExecuted: boolean;
|
|
2828
|
+
receipts: Array<IcmReceipt>;
|
|
2829
|
+
receiptDelivered: boolean;
|
|
2830
|
+
rewardDetails: IcmRewardDetails;
|
|
2831
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2832
|
+
status: PendingIcmMessage.status;
|
|
2833
|
+
};
|
|
2834
|
+
declare namespace PendingIcmMessage {
|
|
2835
|
+
enum status {
|
|
2836
|
+
PENDING = "pending"
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
type ListIcmMessagesResponse = {
|
|
2036
2841
|
/**
|
|
2037
|
-
*
|
|
2842
|
+
* 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.
|
|
2038
2843
|
*/
|
|
2039
|
-
|
|
2844
|
+
nextPageToken?: string;
|
|
2845
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2040
2846
|
};
|
|
2041
2847
|
|
|
2042
|
-
declare class
|
|
2848
|
+
declare class InterchainMessagingService {
|
|
2043
2849
|
readonly httpRequest: BaseHttpRequest;
|
|
2044
2850
|
constructor(httpRequest: BaseHttpRequest);
|
|
2045
2851
|
/**
|
|
2046
|
-
* Get
|
|
2047
|
-
* Gets
|
|
2048
|
-
* @returns
|
|
2852
|
+
* Get an ICM message
|
|
2853
|
+
* Gets an ICM message by message ID.
|
|
2854
|
+
* @returns any Successful response
|
|
2049
2855
|
* @throws ApiError
|
|
2050
2856
|
*/
|
|
2051
|
-
|
|
2857
|
+
getIcmMessage({ messageId, }: {
|
|
2052
2858
|
/**
|
|
2053
|
-
*
|
|
2859
|
+
* The message ID of the ICM message.
|
|
2054
2860
|
*/
|
|
2055
|
-
|
|
2861
|
+
messageId: string;
|
|
2862
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2863
|
+
/**
|
|
2864
|
+
* List ICM messages
|
|
2865
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2866
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2867
|
+
* @throws ApiError
|
|
2868
|
+
*/
|
|
2869
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2056
2870
|
/**
|
|
2057
|
-
*
|
|
2871
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2058
2872
|
*/
|
|
2059
|
-
|
|
2873
|
+
pageToken?: string;
|
|
2060
2874
|
/**
|
|
2061
|
-
*
|
|
2875
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2062
2876
|
*/
|
|
2063
|
-
|
|
2877
|
+
pageSize?: number;
|
|
2064
2878
|
/**
|
|
2065
|
-
*
|
|
2879
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2066
2880
|
*/
|
|
2067
|
-
|
|
2881
|
+
sourceBlockchainId?: string;
|
|
2068
2882
|
/**
|
|
2069
|
-
*
|
|
2883
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2070
2884
|
*/
|
|
2071
|
-
|
|
2885
|
+
destinationBlockchainId?: string;
|
|
2072
2886
|
/**
|
|
2073
|
-
*
|
|
2887
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2074
2888
|
*/
|
|
2075
|
-
|
|
2889
|
+
blockchainId?: string;
|
|
2076
2890
|
/**
|
|
2077
|
-
*
|
|
2891
|
+
* The address of the recipient of the ICM message.
|
|
2078
2892
|
*/
|
|
2079
|
-
|
|
2893
|
+
to?: string;
|
|
2080
2894
|
/**
|
|
2081
|
-
*
|
|
2895
|
+
* The address of the sender of the ICM message.
|
|
2082
2896
|
*/
|
|
2083
|
-
|
|
2897
|
+
from?: string;
|
|
2084
2898
|
/**
|
|
2085
|
-
*
|
|
2899
|
+
* Either mainnet or testnet/fuji.
|
|
2086
2900
|
*/
|
|
2087
|
-
|
|
2088
|
-
}): CancelablePromise<
|
|
2901
|
+
network?: Network;
|
|
2902
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2089
2903
|
/**
|
|
2090
|
-
*
|
|
2091
|
-
*
|
|
2092
|
-
* @returns
|
|
2904
|
+
* List ICM messages by address
|
|
2905
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2906
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2093
2907
|
* @throws ApiError
|
|
2094
2908
|
*/
|
|
2095
|
-
|
|
2096
|
-
/**
|
|
2097
|
-
* Organization ID to fetch usage metrics for
|
|
2098
|
-
*/
|
|
2099
|
-
orgId?: string;
|
|
2100
|
-
/**
|
|
2101
|
-
* Query param for retrieving items after a specific timestamp.
|
|
2102
|
-
*/
|
|
2103
|
-
startTimestamp?: number;
|
|
2909
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2104
2910
|
/**
|
|
2105
|
-
*
|
|
2911
|
+
* An EVM address.
|
|
2106
2912
|
*/
|
|
2107
|
-
|
|
2913
|
+
address: string;
|
|
2108
2914
|
/**
|
|
2109
2915
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2110
2916
|
*/
|
|
2111
2917
|
pageToken?: string;
|
|
2112
2918
|
/**
|
|
2113
|
-
* The maximum number of items to return.
|
|
2919
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2114
2920
|
*/
|
|
2115
2921
|
pageSize?: number;
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2122
|
-
/**
|
|
2123
|
-
* Get the health of the service
|
|
2124
|
-
* @returns any The Health Check is successful
|
|
2125
|
-
* @throws ApiError
|
|
2126
|
-
*/
|
|
2127
|
-
healthCheck(): CancelablePromise<{
|
|
2128
|
-
status?: string;
|
|
2129
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2130
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2131
|
-
details?: Record<string, Record<string, string>>;
|
|
2132
|
-
}>;
|
|
2922
|
+
/**
|
|
2923
|
+
* Either mainnet or testnet/fuji.
|
|
2924
|
+
*/
|
|
2925
|
+
network?: Network;
|
|
2926
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2133
2927
|
}
|
|
2134
2928
|
|
|
2135
2929
|
type ListNftTokens = {
|
|
@@ -2146,12 +2940,12 @@ declare class NfTsService {
|
|
|
2146
2940
|
/**
|
|
2147
2941
|
* Reindex NFT metadata
|
|
2148
2942
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2149
|
-
* @returns any
|
|
2943
|
+
* @returns any Successful response
|
|
2150
2944
|
* @throws ApiError
|
|
2151
2945
|
*/
|
|
2152
2946
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2153
2947
|
/**
|
|
2154
|
-
* A supported evm chain id
|
|
2948
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2155
2949
|
*/
|
|
2156
2950
|
chainId: string;
|
|
2157
2951
|
/**
|
|
@@ -2166,12 +2960,12 @@ declare class NfTsService {
|
|
|
2166
2960
|
/**
|
|
2167
2961
|
* List tokens
|
|
2168
2962
|
* Lists tokens for an NFT contract.
|
|
2169
|
-
* @returns ListNftTokens
|
|
2963
|
+
* @returns ListNftTokens Successful response
|
|
2170
2964
|
* @throws ApiError
|
|
2171
2965
|
*/
|
|
2172
2966
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2173
2967
|
/**
|
|
2174
|
-
* A supported evm chain id
|
|
2968
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2175
2969
|
*/
|
|
2176
2970
|
chainId: string;
|
|
2177
2971
|
/**
|
|
@@ -2190,12 +2984,12 @@ declare class NfTsService {
|
|
|
2190
2984
|
/**
|
|
2191
2985
|
* Get token details
|
|
2192
2986
|
* Gets token details for a specific token of an NFT contract.
|
|
2193
|
-
* @returns any
|
|
2987
|
+
* @returns any Successful response
|
|
2194
2988
|
* @throws ApiError
|
|
2195
2989
|
*/
|
|
2196
2990
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2197
2991
|
/**
|
|
2198
|
-
* A supported evm chain id
|
|
2992
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2199
2993
|
*/
|
|
2200
2994
|
chainId: string;
|
|
2201
2995
|
/**
|
|
@@ -2209,6 +3003,108 @@ declare class NfTsService {
|
|
|
2209
3003
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2210
3004
|
}
|
|
2211
3005
|
|
|
3006
|
+
type AccessRequest = {
|
|
3007
|
+
/**
|
|
3008
|
+
* The email address to send the access token to
|
|
3009
|
+
*/
|
|
3010
|
+
email: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* The captcha to verify the user
|
|
3013
|
+
*/
|
|
3014
|
+
captcha: string;
|
|
3015
|
+
};
|
|
3016
|
+
|
|
3017
|
+
type NotificationsResponse = {
|
|
3018
|
+
message: string;
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
type SubscribeRequest = {
|
|
3022
|
+
/**
|
|
3023
|
+
* The access token to use for authentication
|
|
3024
|
+
*/
|
|
3025
|
+
accessToken: string;
|
|
3026
|
+
/**
|
|
3027
|
+
* The node ID to subscribe to
|
|
3028
|
+
*/
|
|
3029
|
+
nodeId: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3032
|
+
*/
|
|
3033
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
type SubscriptionsRequest = {
|
|
3037
|
+
/**
|
|
3038
|
+
* The access token to use for authentication
|
|
3039
|
+
*/
|
|
3040
|
+
accessToken: string;
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
type SubscriptionsResponse = {
|
|
3044
|
+
/**
|
|
3045
|
+
* The email address of the user
|
|
3046
|
+
*/
|
|
3047
|
+
email: string;
|
|
3048
|
+
/**
|
|
3049
|
+
* The subscriptions of the user
|
|
3050
|
+
*/
|
|
3051
|
+
subscriptions: Record<string, {
|
|
3052
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3053
|
+
}>;
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
type UnsubscribeRequest = {
|
|
3057
|
+
/**
|
|
3058
|
+
* The access token to use for authentication
|
|
3059
|
+
*/
|
|
3060
|
+
accessToken: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* The node ID to subscribe to
|
|
3063
|
+
*/
|
|
3064
|
+
nodeId: string;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
declare class NotificationsService {
|
|
3068
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3069
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3070
|
+
/**
|
|
3071
|
+
* Access Notifications
|
|
3072
|
+
* Access notifications.
|
|
3073
|
+
* @returns NotificationsResponse Successful response
|
|
3074
|
+
* @throws ApiError
|
|
3075
|
+
*/
|
|
3076
|
+
access({ requestBody, }: {
|
|
3077
|
+
requestBody: AccessRequest;
|
|
3078
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3079
|
+
/**
|
|
3080
|
+
* Subscribe to Notifications
|
|
3081
|
+
* Subscribe to receive notifications.
|
|
3082
|
+
* @returns NotificationsResponse Successful response
|
|
3083
|
+
* @throws ApiError
|
|
3084
|
+
*/
|
|
3085
|
+
subscribe({ requestBody, }: {
|
|
3086
|
+
requestBody: SubscribeRequest;
|
|
3087
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Unsubscribe from Notifications
|
|
3090
|
+
* Unsubscribe from receiving notifications.
|
|
3091
|
+
* @returns NotificationsResponse Successful response
|
|
3092
|
+
* @throws ApiError
|
|
3093
|
+
*/
|
|
3094
|
+
unsubscribe({ requestBody, }: {
|
|
3095
|
+
requestBody: UnsubscribeRequest;
|
|
3096
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3097
|
+
/**
|
|
3098
|
+
* Get Subscriptions
|
|
3099
|
+
* Get subscriptions.
|
|
3100
|
+
* @returns SubscriptionsResponse Successful response
|
|
3101
|
+
* @throws ApiError
|
|
3102
|
+
*/
|
|
3103
|
+
subscriptions({ requestBody, }: {
|
|
3104
|
+
requestBody: SubscriptionsRequest;
|
|
3105
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
2212
3108
|
type EvmNetworkOptions = {
|
|
2213
3109
|
addresses: Array<string>;
|
|
2214
3110
|
includeChains: Array<string>;
|
|
@@ -2220,16 +3116,16 @@ declare enum EVMOperationType {
|
|
|
2220
3116
|
|
|
2221
3117
|
type CreateEvmTransactionExportRequest = {
|
|
2222
3118
|
type: EVMOperationType;
|
|
2223
|
-
firstDate
|
|
2224
|
-
lastDate
|
|
3119
|
+
firstDate?: string;
|
|
3120
|
+
lastDate?: string;
|
|
2225
3121
|
/**
|
|
2226
3122
|
* @deprecated
|
|
2227
3123
|
*/
|
|
2228
|
-
startDate
|
|
3124
|
+
startDate?: string;
|
|
2229
3125
|
/**
|
|
2230
3126
|
* @deprecated
|
|
2231
3127
|
*/
|
|
2232
|
-
endDate
|
|
3128
|
+
endDate?: string;
|
|
2233
3129
|
options: EvmNetworkOptions;
|
|
2234
3130
|
};
|
|
2235
3131
|
|
|
@@ -2242,21 +3138,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2242
3138
|
type PrimaryNetworkOptions = {
|
|
2243
3139
|
addresses?: Array<string>;
|
|
2244
3140
|
cChainEvmAddresses?: Array<string>;
|
|
2245
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
3141
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2246
3142
|
};
|
|
2247
3143
|
|
|
2248
3144
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2249
3145
|
type: PrimaryNetworkOperationType;
|
|
2250
|
-
firstDate
|
|
2251
|
-
lastDate
|
|
3146
|
+
firstDate?: string;
|
|
3147
|
+
lastDate?: string;
|
|
2252
3148
|
/**
|
|
2253
3149
|
* @deprecated
|
|
2254
3150
|
*/
|
|
2255
|
-
startDate
|
|
3151
|
+
startDate?: string;
|
|
2256
3152
|
/**
|
|
2257
3153
|
* @deprecated
|
|
2258
3154
|
*/
|
|
2259
|
-
endDate
|
|
3155
|
+
endDate?: string;
|
|
2260
3156
|
options: PrimaryNetworkOptions;
|
|
2261
3157
|
};
|
|
2262
3158
|
|
|
@@ -2297,7 +3193,7 @@ type OperationStatusResponse = {
|
|
|
2297
3193
|
operationType: OperationType;
|
|
2298
3194
|
operationStatus: OperationStatus;
|
|
2299
3195
|
message?: string;
|
|
2300
|
-
metadata
|
|
3196
|
+
metadata?: TransactionExportMetadata;
|
|
2301
3197
|
createdAtTimestamp: number;
|
|
2302
3198
|
updatedAtTimestamp: number;
|
|
2303
3199
|
};
|
|
@@ -2308,7 +3204,7 @@ declare class OperationsService {
|
|
|
2308
3204
|
/**
|
|
2309
3205
|
* Get operation
|
|
2310
3206
|
* Gets operation details for the given operation id.
|
|
2311
|
-
* @returns OperationStatusResponse
|
|
3207
|
+
* @returns OperationStatusResponse Successful response
|
|
2312
3208
|
* @throws ApiError
|
|
2313
3209
|
*/
|
|
2314
3210
|
getOperationResult({ operationId, }: {
|
|
@@ -2322,7 +3218,7 @@ declare class OperationsService {
|
|
|
2322
3218
|
* Trigger a transaction export operation with given parameters.
|
|
2323
3219
|
*
|
|
2324
3220
|
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2325
|
-
* @returns OperationStatusResponse
|
|
3221
|
+
* @returns OperationStatusResponse Successful response
|
|
2326
3222
|
* @throws ApiError
|
|
2327
3223
|
*/
|
|
2328
3224
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2334,8 +3230,10 @@ declare enum BlockchainIds {
|
|
|
2334
3230
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2335
3231
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2336
3232
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3233
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2337
3234
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2338
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3235
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3236
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2339
3237
|
}
|
|
2340
3238
|
|
|
2341
3239
|
type ChainAddressChainIdMap = {
|
|
@@ -2359,16 +3257,31 @@ type DelegatorsDetails = {
|
|
|
2359
3257
|
};
|
|
2360
3258
|
|
|
2361
3259
|
type StakingDistribution = {
|
|
3260
|
+
/**
|
|
3261
|
+
* AvalancheGo version for the validator node.
|
|
3262
|
+
*/
|
|
2362
3263
|
version: string;
|
|
3264
|
+
/**
|
|
3265
|
+
* The total amount staked by validators using this version.
|
|
3266
|
+
*/
|
|
2363
3267
|
amountStaked: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* The number of validators using this version.
|
|
3270
|
+
*/
|
|
2364
3271
|
validatorCount: number;
|
|
2365
3272
|
};
|
|
2366
3273
|
|
|
2367
3274
|
type ValidatorsDetails = {
|
|
2368
3275
|
validatorCount: number;
|
|
2369
3276
|
totalAmountStaked: string;
|
|
3277
|
+
/**
|
|
3278
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3279
|
+
*/
|
|
2370
3280
|
estimatedAnnualStakingReward: string;
|
|
2371
3281
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3282
|
+
/**
|
|
3283
|
+
* Ratio of total active stake amount to the current supply.
|
|
3284
|
+
*/
|
|
2372
3285
|
stakingRatio: string;
|
|
2373
3286
|
};
|
|
2374
3287
|
|
|
@@ -2420,7 +3333,13 @@ type CompletedDelegatorDetails = {
|
|
|
2420
3333
|
delegationFee: string;
|
|
2421
3334
|
startTimestamp: number;
|
|
2422
3335
|
endTimestamp: number;
|
|
3336
|
+
/**
|
|
3337
|
+
* Total rewards distributed for the successful delegation.
|
|
3338
|
+
*/
|
|
2423
3339
|
grossReward: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3342
|
+
*/
|
|
2424
3343
|
netReward: string;
|
|
2425
3344
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2426
3345
|
};
|
|
@@ -2438,31 +3357,88 @@ type PendingDelegatorDetails = {
|
|
|
2438
3357
|
delegationFee: string;
|
|
2439
3358
|
startTimestamp: number;
|
|
2440
3359
|
endTimestamp: number;
|
|
3360
|
+
/**
|
|
3361
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3362
|
+
*/
|
|
2441
3363
|
estimatedGrossReward: string;
|
|
3364
|
+
/**
|
|
3365
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3366
|
+
*/
|
|
2442
3367
|
estimatedNetReward: string;
|
|
2443
3368
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2444
3369
|
};
|
|
2445
|
-
declare namespace PendingDelegatorDetails {
|
|
2446
|
-
enum delegationStatus {
|
|
2447
|
-
PENDING = "pending"
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
3370
|
+
declare namespace PendingDelegatorDetails {
|
|
3371
|
+
enum delegationStatus {
|
|
3372
|
+
PENDING = "pending"
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
type ListDelegatorDetailsResponse = {
|
|
3377
|
+
/**
|
|
3378
|
+
* 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.
|
|
3379
|
+
*/
|
|
3380
|
+
nextPageToken?: string;
|
|
3381
|
+
/**
|
|
3382
|
+
* The list of Delegator Details.
|
|
3383
|
+
*/
|
|
3384
|
+
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
3385
|
+
};
|
|
3386
|
+
|
|
3387
|
+
type BalanceOwner = {
|
|
3388
|
+
addresses: Array<string>;
|
|
3389
|
+
threshold: number;
|
|
3390
|
+
};
|
|
3391
|
+
|
|
3392
|
+
type L1ValidatorDetailsFull = {
|
|
3393
|
+
/**
|
|
3394
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3395
|
+
*/
|
|
3396
|
+
validationId: string;
|
|
3397
|
+
nodeId: string;
|
|
3398
|
+
subnetId: string;
|
|
3399
|
+
/**
|
|
3400
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
3401
|
+
*/
|
|
3402
|
+
weight: number;
|
|
3403
|
+
/**
|
|
3404
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3405
|
+
*/
|
|
3406
|
+
remainingBalance: number;
|
|
3407
|
+
/**
|
|
3408
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3409
|
+
*/
|
|
3410
|
+
creationTimestamp: number;
|
|
3411
|
+
blsCredentials: Record<string, any>;
|
|
3412
|
+
/**
|
|
3413
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3414
|
+
*/
|
|
3415
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3416
|
+
/**
|
|
3417
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3418
|
+
*/
|
|
3419
|
+
deactivationOwner: BalanceOwner;
|
|
3420
|
+
};
|
|
2450
3421
|
|
|
2451
|
-
type
|
|
3422
|
+
type ListL1ValidatorsResponse = {
|
|
2452
3423
|
/**
|
|
2453
3424
|
* 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.
|
|
2454
3425
|
*/
|
|
2455
3426
|
nextPageToken?: string;
|
|
2456
3427
|
/**
|
|
2457
|
-
* The list of
|
|
3428
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2458
3429
|
*/
|
|
2459
|
-
|
|
3430
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2460
3431
|
};
|
|
2461
3432
|
|
|
2462
3433
|
type BlockchainInfo = {
|
|
2463
3434
|
blockchainId: string;
|
|
2464
3435
|
};
|
|
2465
3436
|
|
|
3437
|
+
type L1ValidatorManagerDetails = {
|
|
3438
|
+
blockchainId: string;
|
|
3439
|
+
contractAddress: string;
|
|
3440
|
+
};
|
|
3441
|
+
|
|
2466
3442
|
type SubnetOwnershipInfo = {
|
|
2467
3443
|
/**
|
|
2468
3444
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2501,6 +3477,18 @@ type Subnet = {
|
|
|
2501
3477
|
* Latest subnet owner details for this Subnet.
|
|
2502
3478
|
*/
|
|
2503
3479
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
3480
|
+
/**
|
|
3481
|
+
* Whether the subnet is an L1 or not.
|
|
3482
|
+
*/
|
|
3483
|
+
isL1: boolean;
|
|
3484
|
+
/**
|
|
3485
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3486
|
+
*/
|
|
3487
|
+
l1ConversionTransactionHash?: string;
|
|
3488
|
+
/**
|
|
3489
|
+
* L1 validator manager details.
|
|
3490
|
+
*/
|
|
3491
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2504
3492
|
blockchains: Array<BlockchainInfo>;
|
|
2505
3493
|
};
|
|
2506
3494
|
|
|
@@ -2548,6 +3536,9 @@ type ActiveValidatorDetails = {
|
|
|
2548
3536
|
nodeId: string;
|
|
2549
3537
|
subnetId: string;
|
|
2550
3538
|
amountStaked: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3541
|
+
*/
|
|
2551
3542
|
delegationFee?: string;
|
|
2552
3543
|
startTimestamp: number;
|
|
2553
3544
|
endTimestamp: number;
|
|
@@ -2555,12 +3546,30 @@ type ActiveValidatorDetails = {
|
|
|
2555
3546
|
* Present for AddPermissionlessValidatorTx
|
|
2556
3547
|
*/
|
|
2557
3548
|
blsCredentials?: BlsCredentials;
|
|
3549
|
+
/**
|
|
3550
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3551
|
+
*/
|
|
2558
3552
|
stakePercentage: number;
|
|
3553
|
+
/**
|
|
3554
|
+
* The number of delegators linked to the validator.
|
|
3555
|
+
*/
|
|
2559
3556
|
delegatorCount: number;
|
|
3557
|
+
/**
|
|
3558
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3559
|
+
*/
|
|
2560
3560
|
amountDelegated?: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3563
|
+
*/
|
|
2561
3564
|
uptimePerformance: number;
|
|
2562
3565
|
avalancheGoVersion?: string;
|
|
3566
|
+
/**
|
|
3567
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3568
|
+
*/
|
|
2563
3569
|
delegationCapacity?: string;
|
|
3570
|
+
/**
|
|
3571
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3572
|
+
*/
|
|
2564
3573
|
potentialRewards: Rewards;
|
|
2565
3574
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2566
3575
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2576,6 +3585,9 @@ type CompletedValidatorDetails = {
|
|
|
2576
3585
|
nodeId: string;
|
|
2577
3586
|
subnetId: string;
|
|
2578
3587
|
amountStaked: string;
|
|
3588
|
+
/**
|
|
3589
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3590
|
+
*/
|
|
2579
3591
|
delegationFee?: string;
|
|
2580
3592
|
startTimestamp: number;
|
|
2581
3593
|
endTimestamp: number;
|
|
@@ -2584,6 +3596,7 @@ type CompletedValidatorDetails = {
|
|
|
2584
3596
|
*/
|
|
2585
3597
|
blsCredentials?: BlsCredentials;
|
|
2586
3598
|
delegatorCount: number;
|
|
3599
|
+
amountDelegated?: string;
|
|
2587
3600
|
rewards: Rewards;
|
|
2588
3601
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2589
3602
|
};
|
|
@@ -2598,6 +3611,9 @@ type PendingValidatorDetails = {
|
|
|
2598
3611
|
nodeId: string;
|
|
2599
3612
|
subnetId: string;
|
|
2600
3613
|
amountStaked: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3616
|
+
*/
|
|
2601
3617
|
delegationFee?: string;
|
|
2602
3618
|
startTimestamp: number;
|
|
2603
3619
|
endTimestamp: number;
|
|
@@ -2618,6 +3634,9 @@ type RemovedValidatorDetails = {
|
|
|
2618
3634
|
nodeId: string;
|
|
2619
3635
|
subnetId: string;
|
|
2620
3636
|
amountStaked: string;
|
|
3637
|
+
/**
|
|
3638
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3639
|
+
*/
|
|
2621
3640
|
delegationFee?: string;
|
|
2622
3641
|
startTimestamp: number;
|
|
2623
3642
|
endTimestamp: number;
|
|
@@ -2625,7 +3644,13 @@ type RemovedValidatorDetails = {
|
|
|
2625
3644
|
* Present for AddPermissionlessValidatorTx
|
|
2626
3645
|
*/
|
|
2627
3646
|
blsCredentials?: BlsCredentials;
|
|
3647
|
+
/**
|
|
3648
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3649
|
+
*/
|
|
2628
3650
|
removeTxHash: string;
|
|
3651
|
+
/**
|
|
3652
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3653
|
+
*/
|
|
2629
3654
|
removeTimestamp: number;
|
|
2630
3655
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2631
3656
|
};
|
|
@@ -2646,11 +3671,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2646
3671
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2647
3672
|
};
|
|
2648
3673
|
|
|
2649
|
-
declare enum Network {
|
|
2650
|
-
MAINNET = "mainnet",
|
|
2651
|
-
FUJI = "fuji"
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2654
3674
|
declare enum SortByOption {
|
|
2655
3675
|
BLOCK_INDEX = "blockIndex",
|
|
2656
3676
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2710,6 +3730,7 @@ type XChainAssetDetails = {
|
|
|
2710
3730
|
declare enum XChainId {
|
|
2711
3731
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2712
3732
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3733
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2713
3734
|
X_CHAIN = "x-chain"
|
|
2714
3735
|
}
|
|
2715
3736
|
|
|
@@ -2719,7 +3740,7 @@ declare class PrimaryNetworkService {
|
|
|
2719
3740
|
/**
|
|
2720
3741
|
* Get asset details
|
|
2721
3742
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2722
|
-
* @returns XChainAssetDetails
|
|
3743
|
+
* @returns XChainAssetDetails Successful response
|
|
2723
3744
|
* @throws ApiError
|
|
2724
3745
|
*/
|
|
2725
3746
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2728,7 +3749,7 @@ declare class PrimaryNetworkService {
|
|
|
2728
3749
|
*/
|
|
2729
3750
|
blockchainId: XChainId;
|
|
2730
3751
|
/**
|
|
2731
|
-
* Either mainnet or
|
|
3752
|
+
* Either mainnet or testnet/fuji.
|
|
2732
3753
|
*/
|
|
2733
3754
|
network: Network;
|
|
2734
3755
|
/**
|
|
@@ -2739,7 +3760,7 @@ declare class PrimaryNetworkService {
|
|
|
2739
3760
|
/**
|
|
2740
3761
|
* Get chain interactions for addresses
|
|
2741
3762
|
* Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
|
|
2742
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
3763
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2743
3764
|
* @throws ApiError
|
|
2744
3765
|
*/
|
|
2745
3766
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2748,31 +3769,31 @@ declare class PrimaryNetworkService {
|
|
|
2748
3769
|
*/
|
|
2749
3770
|
addresses: string;
|
|
2750
3771
|
/**
|
|
2751
|
-
* Either mainnet or
|
|
3772
|
+
* Either mainnet or testnet/fuji.
|
|
2752
3773
|
*/
|
|
2753
3774
|
network: Network;
|
|
2754
3775
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
2755
3776
|
/**
|
|
2756
3777
|
* Get network details
|
|
2757
3778
|
* Gets network details such as validator and delegator stats.
|
|
2758
|
-
* @returns GetNetworkDetailsResponse
|
|
3779
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2759
3780
|
* @throws ApiError
|
|
2760
3781
|
*/
|
|
2761
3782
|
getNetworkDetails({ network, }: {
|
|
2762
3783
|
/**
|
|
2763
|
-
* Either mainnet or
|
|
3784
|
+
* Either mainnet or testnet/fuji.
|
|
2764
3785
|
*/
|
|
2765
3786
|
network: Network;
|
|
2766
3787
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
2767
3788
|
/**
|
|
2768
3789
|
* List blockchains
|
|
2769
3790
|
* Lists all blockchains registered on the network.
|
|
2770
|
-
* @returns ListBlockchainsResponse
|
|
3791
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2771
3792
|
* @throws ApiError
|
|
2772
3793
|
*/
|
|
2773
3794
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2774
3795
|
/**
|
|
2775
|
-
* Either mainnet or
|
|
3796
|
+
* Either mainnet or testnet/fuji.
|
|
2776
3797
|
*/
|
|
2777
3798
|
network: Network;
|
|
2778
3799
|
/**
|
|
@@ -2791,12 +3812,12 @@ declare class PrimaryNetworkService {
|
|
|
2791
3812
|
/**
|
|
2792
3813
|
* List subnets
|
|
2793
3814
|
* Lists all subnets registered on the network.
|
|
2794
|
-
* @returns ListSubnetsResponse
|
|
3815
|
+
* @returns ListSubnetsResponse Successful response
|
|
2795
3816
|
* @throws ApiError
|
|
2796
3817
|
*/
|
|
2797
3818
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2798
3819
|
/**
|
|
2799
|
-
* Either mainnet or
|
|
3820
|
+
* Either mainnet or testnet/fuji.
|
|
2800
3821
|
*/
|
|
2801
3822
|
network: Network;
|
|
2802
3823
|
/**
|
|
@@ -2815,12 +3836,12 @@ declare class PrimaryNetworkService {
|
|
|
2815
3836
|
/**
|
|
2816
3837
|
* Get Subnet details by ID
|
|
2817
3838
|
* Get details of the Subnet registered on the network.
|
|
2818
|
-
* @returns Subnet
|
|
3839
|
+
* @returns Subnet Successful response
|
|
2819
3840
|
* @throws ApiError
|
|
2820
3841
|
*/
|
|
2821
3842
|
getSubnetById({ network, subnetId, }: {
|
|
2822
3843
|
/**
|
|
2823
|
-
* Either mainnet or
|
|
3844
|
+
* Either mainnet or testnet/fuji.
|
|
2824
3845
|
*/
|
|
2825
3846
|
network: Network;
|
|
2826
3847
|
/**
|
|
@@ -2831,12 +3852,12 @@ declare class PrimaryNetworkService {
|
|
|
2831
3852
|
/**
|
|
2832
3853
|
* List validators
|
|
2833
3854
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2834
|
-
* @returns ListValidatorDetailsResponse
|
|
3855
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2835
3856
|
* @throws ApiError
|
|
2836
3857
|
*/
|
|
2837
3858
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2838
3859
|
/**
|
|
2839
|
-
* Either mainnet or
|
|
3860
|
+
* Either mainnet or testnet/fuji.
|
|
2840
3861
|
*/
|
|
2841
3862
|
network: Network;
|
|
2842
3863
|
/**
|
|
@@ -2905,12 +3926,12 @@ declare class PrimaryNetworkService {
|
|
|
2905
3926
|
/**
|
|
2906
3927
|
* Get single validator details
|
|
2907
3928
|
* List validator details for a single validator. Filterable by validation status.
|
|
2908
|
-
* @returns ListValidatorDetailsResponse
|
|
3929
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2909
3930
|
* @throws ApiError
|
|
2910
3931
|
*/
|
|
2911
3932
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2912
3933
|
/**
|
|
2913
|
-
* Either mainnet or
|
|
3934
|
+
* Either mainnet or testnet/fuji.
|
|
2914
3935
|
*/
|
|
2915
3936
|
network: Network;
|
|
2916
3937
|
/**
|
|
@@ -2937,12 +3958,12 @@ declare class PrimaryNetworkService {
|
|
|
2937
3958
|
/**
|
|
2938
3959
|
* List delegators
|
|
2939
3960
|
* Lists details for delegators.
|
|
2940
|
-
* @returns ListDelegatorDetailsResponse
|
|
3961
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2941
3962
|
* @throws ApiError
|
|
2942
3963
|
*/
|
|
2943
3964
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2944
3965
|
/**
|
|
2945
|
-
* Either mainnet or
|
|
3966
|
+
* Either mainnet or testnet/fuji.
|
|
2946
3967
|
*/
|
|
2947
3968
|
network: Network;
|
|
2948
3969
|
/**
|
|
@@ -2970,14 +3991,49 @@ declare class PrimaryNetworkService {
|
|
|
2970
3991
|
*/
|
|
2971
3992
|
nodeIds?: string;
|
|
2972
3993
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3994
|
+
/**
|
|
3995
|
+
* List L1 validators
|
|
3996
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3997
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3998
|
+
* @throws ApiError
|
|
3999
|
+
*/
|
|
4000
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4001
|
+
/**
|
|
4002
|
+
* Either mainnet or testnet/fuji.
|
|
4003
|
+
*/
|
|
4004
|
+
network: Network;
|
|
4005
|
+
/**
|
|
4006
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4007
|
+
*/
|
|
4008
|
+
pageToken?: string;
|
|
4009
|
+
/**
|
|
4010
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4011
|
+
*/
|
|
4012
|
+
pageSize?: number;
|
|
4013
|
+
/**
|
|
4014
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4015
|
+
*/
|
|
4016
|
+
l1ValidationId?: any;
|
|
4017
|
+
includeInactiveL1Validators?: boolean;
|
|
4018
|
+
/**
|
|
4019
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4020
|
+
*/
|
|
4021
|
+
nodeId?: string;
|
|
4022
|
+
/**
|
|
4023
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4024
|
+
*/
|
|
4025
|
+
subnetId?: any;
|
|
4026
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
2973
4027
|
}
|
|
2974
4028
|
|
|
2975
4029
|
declare enum BlockchainId {
|
|
2976
4030
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2977
4031
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2978
4032
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4033
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2979
4034
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2980
4035
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4036
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
2981
4037
|
P_CHAIN = "p-chain",
|
|
2982
4038
|
X_CHAIN = "x-chain",
|
|
2983
4039
|
C_CHAIN = "c-chain"
|
|
@@ -3014,11 +4070,6 @@ type CChainAtomicBalances = {
|
|
|
3014
4070
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3015
4071
|
};
|
|
3016
4072
|
|
|
3017
|
-
declare enum PrimaryNetwork {
|
|
3018
|
-
MAINNET = "mainnet",
|
|
3019
|
-
FUJI = "fuji"
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
4073
|
declare enum PrimaryNetworkChainName {
|
|
3023
4074
|
P_CHAIN = "p-chain",
|
|
3024
4075
|
X_CHAIN = "x-chain",
|
|
@@ -3027,7 +4078,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3027
4078
|
|
|
3028
4079
|
type PrimaryNetworkChainInfo = {
|
|
3029
4080
|
chainName: PrimaryNetworkChainName;
|
|
3030
|
-
network:
|
|
4081
|
+
network: Network;
|
|
3031
4082
|
};
|
|
3032
4083
|
|
|
3033
4084
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3179,7 +4230,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3179
4230
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
3180
4231
|
*
|
|
3181
4232
|
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
3182
|
-
* @returns any
|
|
4233
|
+
* @returns any Successful response
|
|
3183
4234
|
* @throws ApiError
|
|
3184
4235
|
*/
|
|
3185
4236
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -3188,7 +4239,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3188
4239
|
*/
|
|
3189
4240
|
blockchainId: BlockchainId;
|
|
3190
4241
|
/**
|
|
3191
|
-
* Either mainnet or
|
|
4242
|
+
* Either mainnet or testnet/fuji.
|
|
3192
4243
|
*/
|
|
3193
4244
|
network: Network;
|
|
3194
4245
|
/**
|
|
@@ -3219,6 +4270,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3219
4270
|
txCount: number;
|
|
3220
4271
|
transactions: Array<string>;
|
|
3221
4272
|
blockSizeBytes: number;
|
|
4273
|
+
l1ValidatorsAccruedFees?: number;
|
|
4274
|
+
activeL1Validators?: number;
|
|
3222
4275
|
currentSupply?: string;
|
|
3223
4276
|
proposerDetails?: ProposerDetails;
|
|
3224
4277
|
};
|
|
@@ -3232,6 +4285,8 @@ type PrimaryNetworkBlock = {
|
|
|
3232
4285
|
txCount: number;
|
|
3233
4286
|
transactions: Array<string>;
|
|
3234
4287
|
blockSizeBytes: number;
|
|
4288
|
+
l1ValidatorsAccruedFees?: number;
|
|
4289
|
+
activeL1Validators?: number;
|
|
3235
4290
|
currentSupply?: string;
|
|
3236
4291
|
proposerDetails?: ProposerDetails;
|
|
3237
4292
|
};
|
|
@@ -3251,7 +4306,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3251
4306
|
/**
|
|
3252
4307
|
* Get block
|
|
3253
4308
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3254
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
4309
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3255
4310
|
* @throws ApiError
|
|
3256
4311
|
*/
|
|
3257
4312
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3260,7 +4315,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3260
4315
|
*/
|
|
3261
4316
|
blockchainId: BlockchainId;
|
|
3262
4317
|
/**
|
|
3263
|
-
* Either mainnet or
|
|
4318
|
+
* Either mainnet or testnet/fuji.
|
|
3264
4319
|
*/
|
|
3265
4320
|
network: Network;
|
|
3266
4321
|
/**
|
|
@@ -3271,22 +4326,30 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3271
4326
|
/**
|
|
3272
4327
|
* List blocks proposed by node
|
|
3273
4328
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3274
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
4329
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3275
4330
|
* @throws ApiError
|
|
3276
4331
|
*/
|
|
3277
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4332
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3278
4333
|
/**
|
|
3279
4334
|
* A primary network blockchain id or alias.
|
|
3280
4335
|
*/
|
|
3281
4336
|
blockchainId: BlockchainId;
|
|
3282
4337
|
/**
|
|
3283
|
-
* Either mainnet or
|
|
4338
|
+
* Either mainnet or testnet/fuji.
|
|
3284
4339
|
*/
|
|
3285
4340
|
network: Network;
|
|
3286
4341
|
/**
|
|
3287
4342
|
* A primary network (P or X chain) nodeId.
|
|
3288
4343
|
*/
|
|
3289
4344
|
nodeId: string;
|
|
4345
|
+
/**
|
|
4346
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4347
|
+
*/
|
|
4348
|
+
startTimestamp?: number;
|
|
4349
|
+
/**
|
|
4350
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4351
|
+
*/
|
|
4352
|
+
endTimestamp?: number;
|
|
3290
4353
|
/**
|
|
3291
4354
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3292
4355
|
*/
|
|
@@ -3299,18 +4362,26 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3299
4362
|
/**
|
|
3300
4363
|
* List latest blocks
|
|
3301
4364
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3302
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
4365
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3303
4366
|
* @throws ApiError
|
|
3304
4367
|
*/
|
|
3305
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4368
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3306
4369
|
/**
|
|
3307
4370
|
* A primary network blockchain id or alias.
|
|
3308
4371
|
*/
|
|
3309
4372
|
blockchainId: BlockchainId;
|
|
3310
4373
|
/**
|
|
3311
|
-
* Either mainnet or
|
|
4374
|
+
* Either mainnet or testnet/fuji.
|
|
3312
4375
|
*/
|
|
3313
4376
|
network: Network;
|
|
4377
|
+
/**
|
|
4378
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4379
|
+
*/
|
|
4380
|
+
startTimestamp?: number;
|
|
4381
|
+
/**
|
|
4382
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4383
|
+
*/
|
|
4384
|
+
endTimestamp?: number;
|
|
3314
4385
|
/**
|
|
3315
4386
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3316
4387
|
*/
|
|
@@ -3437,12 +4508,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3437
4508
|
/**
|
|
3438
4509
|
* List pending rewards
|
|
3439
4510
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3440
|
-
* @returns ListPendingRewardsResponse
|
|
4511
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3441
4512
|
* @throws ApiError
|
|
3442
4513
|
*/
|
|
3443
4514
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3444
4515
|
/**
|
|
3445
|
-
* Either mainnet or
|
|
4516
|
+
* Either mainnet or testnet/fuji.
|
|
3446
4517
|
*/
|
|
3447
4518
|
network: Network;
|
|
3448
4519
|
/**
|
|
@@ -3469,12 +4540,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3469
4540
|
/**
|
|
3470
4541
|
* List historical rewards
|
|
3471
4542
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3472
|
-
* @returns ListHistoricalRewardsResponse
|
|
4543
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3473
4544
|
* @throws ApiError
|
|
3474
4545
|
*/
|
|
3475
4546
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3476
4547
|
/**
|
|
3477
|
-
* Either mainnet or
|
|
4548
|
+
* Either mainnet or testnet/fuji.
|
|
3478
4549
|
*/
|
|
3479
4550
|
network: Network;
|
|
3480
4551
|
/**
|
|
@@ -3720,6 +4791,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3720
4791
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3721
4792
|
};
|
|
3722
4793
|
|
|
4794
|
+
type L1ValidatorDetailsTransaction = {
|
|
4795
|
+
/**
|
|
4796
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4797
|
+
*/
|
|
4798
|
+
validationId: string;
|
|
4799
|
+
nodeId: string;
|
|
4800
|
+
subnetId: string;
|
|
4801
|
+
/**
|
|
4802
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
4803
|
+
*/
|
|
4804
|
+
weight: number;
|
|
4805
|
+
/**
|
|
4806
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4807
|
+
*/
|
|
4808
|
+
remainingBalance: number;
|
|
4809
|
+
/**
|
|
4810
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4811
|
+
*/
|
|
4812
|
+
balanceChange?: number;
|
|
4813
|
+
blsCredentials?: Record<string, any>;
|
|
4814
|
+
};
|
|
4815
|
+
|
|
3723
4816
|
declare enum PChainTransactionType {
|
|
3724
4817
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3725
4818
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3736,9 +4829,17 @@ declare enum PChainTransactionType {
|
|
|
3736
4829
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3737
4830
|
BASE_TX = "BaseTx",
|
|
3738
4831
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4832
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4833
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4834
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4835
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4836
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3739
4837
|
UNKNOWN = "UNKNOWN"
|
|
3740
4838
|
}
|
|
3741
4839
|
|
|
4840
|
+
/**
|
|
4841
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4842
|
+
*/
|
|
3742
4843
|
declare enum UtxoType {
|
|
3743
4844
|
STAKE = "STAKE",
|
|
3744
4845
|
TRANSFER = "TRANSFER"
|
|
@@ -3776,16 +4877,43 @@ type PChainUtxo = {
|
|
|
3776
4877
|
assetId: string;
|
|
3777
4878
|
blockNumber: string;
|
|
3778
4879
|
blockTimestamp: number;
|
|
4880
|
+
/**
|
|
4881
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4882
|
+
*/
|
|
3779
4883
|
consumingBlockNumber?: string;
|
|
4884
|
+
/**
|
|
4885
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4886
|
+
*/
|
|
3780
4887
|
consumingBlockTimestamp?: number;
|
|
4888
|
+
/**
|
|
4889
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4890
|
+
*/
|
|
3781
4891
|
platformLocktime?: number;
|
|
4892
|
+
/**
|
|
4893
|
+
* The index of the UTXO in the transaction
|
|
4894
|
+
*/
|
|
3782
4895
|
outputIndex: number;
|
|
3783
4896
|
rewardType?: RewardType;
|
|
4897
|
+
/**
|
|
4898
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4899
|
+
*/
|
|
3784
4900
|
stakeableLocktime?: number;
|
|
3785
4901
|
staked?: boolean;
|
|
4902
|
+
/**
|
|
4903
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4904
|
+
*/
|
|
3786
4905
|
threshold?: number;
|
|
4906
|
+
/**
|
|
4907
|
+
* The hash of the transaction that created this UTXO
|
|
4908
|
+
*/
|
|
3787
4909
|
txHash: string;
|
|
4910
|
+
/**
|
|
4911
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4912
|
+
*/
|
|
3788
4913
|
utxoEndTimestamp?: number;
|
|
4914
|
+
/**
|
|
4915
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4916
|
+
*/
|
|
3789
4917
|
utxoStartTimestamp?: number;
|
|
3790
4918
|
utxoType: UtxoType;
|
|
3791
4919
|
};
|
|
@@ -3800,9 +4928,18 @@ type PChainTransaction = {
|
|
|
3800
4928
|
* The block finality timestamp.
|
|
3801
4929
|
*/
|
|
3802
4930
|
blockTimestamp: number;
|
|
4931
|
+
/**
|
|
4932
|
+
* The height of the block in which the transaction was included
|
|
4933
|
+
*/
|
|
3803
4934
|
blockNumber: string;
|
|
3804
4935
|
blockHash: string;
|
|
4936
|
+
/**
|
|
4937
|
+
* The consumed UTXOs of the transaction
|
|
4938
|
+
*/
|
|
3805
4939
|
consumedUtxos: Array<PChainUtxo>;
|
|
4940
|
+
/**
|
|
4941
|
+
* The newly created UTXOs of the transaction
|
|
4942
|
+
*/
|
|
3806
4943
|
emittedUtxos: Array<PChainUtxo>;
|
|
3807
4944
|
/**
|
|
3808
4945
|
* Source chain for an atomic transaction.
|
|
@@ -3813,17 +4950,21 @@ type PChainTransaction = {
|
|
|
3813
4950
|
*/
|
|
3814
4951
|
destinationChain?: string;
|
|
3815
4952
|
/**
|
|
3816
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4953
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
3817
4954
|
*/
|
|
3818
4955
|
value: Array<AssetAmount>;
|
|
3819
4956
|
/**
|
|
3820
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4957
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
3821
4958
|
*/
|
|
3822
4959
|
amountBurned: Array<AssetAmount>;
|
|
3823
4960
|
/**
|
|
3824
4961
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3825
4962
|
*/
|
|
3826
4963
|
amountStaked: Array<AssetAmount>;
|
|
4964
|
+
/**
|
|
4965
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4966
|
+
*/
|
|
4967
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3827
4968
|
/**
|
|
3828
4969
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3829
4970
|
*/
|
|
@@ -3833,11 +4974,11 @@ type PChainTransaction = {
|
|
|
3833
4974
|
*/
|
|
3834
4975
|
endTimestamp?: number;
|
|
3835
4976
|
/**
|
|
3836
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4977
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
3837
4978
|
*/
|
|
3838
4979
|
delegationFeePercent?: string;
|
|
3839
4980
|
/**
|
|
3840
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4981
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3841
4982
|
*/
|
|
3842
4983
|
nodeId?: string;
|
|
3843
4984
|
/**
|
|
@@ -3845,14 +4986,25 @@ type PChainTransaction = {
|
|
|
3845
4986
|
*/
|
|
3846
4987
|
subnetId?: string;
|
|
3847
4988
|
/**
|
|
3848
|
-
* Present for
|
|
4989
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4990
|
+
*/
|
|
4991
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4992
|
+
/**
|
|
4993
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4994
|
+
*/
|
|
4995
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4996
|
+
/**
|
|
4997
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3849
4998
|
*/
|
|
3850
4999
|
estimatedReward?: string;
|
|
5000
|
+
/**
|
|
5001
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5002
|
+
*/
|
|
3851
5003
|
rewardTxHash?: string;
|
|
3852
5004
|
rewardAddresses?: Array<string>;
|
|
3853
5005
|
memo?: string;
|
|
3854
5006
|
/**
|
|
3855
|
-
*
|
|
5007
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
3856
5008
|
*/
|
|
3857
5009
|
stakingTxHash?: string;
|
|
3858
5010
|
/**
|
|
@@ -3860,7 +5012,7 @@ type PChainTransaction = {
|
|
|
3860
5012
|
*/
|
|
3861
5013
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3862
5014
|
/**
|
|
3863
|
-
* Present for AddPermissionlessValidatorTx
|
|
5015
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
3864
5016
|
*/
|
|
3865
5017
|
blsCredentials?: BlsCredentials;
|
|
3866
5018
|
};
|
|
@@ -4045,6 +5197,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4045
5197
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4046
5198
|
BASE_TX = "BaseTx",
|
|
4047
5199
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5200
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5201
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5202
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5203
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5204
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4048
5205
|
UNKNOWN = "UNKNOWN",
|
|
4049
5206
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4050
5207
|
OPERATION_TX = "OperationTx"
|
|
@@ -4056,7 +5213,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4056
5213
|
/**
|
|
4057
5214
|
* Get transaction
|
|
4058
5215
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
4059
|
-
* @returns any
|
|
5216
|
+
* @returns any Successful response
|
|
4060
5217
|
* @throws ApiError
|
|
4061
5218
|
*/
|
|
4062
5219
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -4065,7 +5222,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4065
5222
|
*/
|
|
4066
5223
|
blockchainId: BlockchainId;
|
|
4067
5224
|
/**
|
|
4068
|
-
* Either mainnet or
|
|
5225
|
+
* Either mainnet or testnet/fuji.
|
|
4069
5226
|
*/
|
|
4070
5227
|
network: Network;
|
|
4071
5228
|
/**
|
|
@@ -4079,23 +5236,26 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4079
5236
|
*
|
|
4080
5237
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4081
5238
|
*
|
|
5239
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
5240
|
+
*
|
|
4082
5241
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4083
|
-
* @returns any
|
|
5242
|
+
* @returns any Successful response
|
|
4084
5243
|
* @throws ApiError
|
|
4085
5244
|
*/
|
|
4086
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5245
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4087
5246
|
/**
|
|
4088
5247
|
* A primary network blockchain id or alias.
|
|
4089
5248
|
*/
|
|
4090
5249
|
blockchainId: BlockchainId;
|
|
4091
5250
|
/**
|
|
4092
|
-
* Either mainnet or
|
|
5251
|
+
* Either mainnet or testnet/fuji.
|
|
4093
5252
|
*/
|
|
4094
5253
|
network: Network;
|
|
4095
5254
|
/**
|
|
4096
|
-
* 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".
|
|
5255
|
+
* 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.
|
|
4097
5256
|
*/
|
|
4098
5257
|
addresses?: string;
|
|
5258
|
+
l1ValidationId?: string;
|
|
4099
5259
|
/**
|
|
4100
5260
|
* Query param for filtering items based on transaction types.
|
|
4101
5261
|
*/
|
|
@@ -4124,7 +5284,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4124
5284
|
/**
|
|
4125
5285
|
* List staking transactions
|
|
4126
5286
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
4127
|
-
* @returns ListPChainTransactionsResponse
|
|
5287
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
4128
5288
|
* @throws ApiError
|
|
4129
5289
|
*/
|
|
4130
5290
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4133,7 +5293,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4133
5293
|
*/
|
|
4134
5294
|
blockchainId: PChainId;
|
|
4135
5295
|
/**
|
|
4136
|
-
* Either mainnet or
|
|
5296
|
+
* Either mainnet or testnet/fuji.
|
|
4137
5297
|
*/
|
|
4138
5298
|
network: Network;
|
|
4139
5299
|
/**
|
|
@@ -4168,7 +5328,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4168
5328
|
/**
|
|
4169
5329
|
* List asset transactions
|
|
4170
5330
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
4171
|
-
* @returns ListXChainTransactionsResponse
|
|
5331
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
4172
5332
|
* @throws ApiError
|
|
4173
5333
|
*/
|
|
4174
5334
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -4177,7 +5337,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4177
5337
|
*/
|
|
4178
5338
|
blockchainId: XChainId;
|
|
4179
5339
|
/**
|
|
4180
|
-
* Either mainnet or
|
|
5340
|
+
* Either mainnet or testnet/fuji.
|
|
4181
5341
|
*/
|
|
4182
5342
|
network: Network;
|
|
4183
5343
|
/**
|
|
@@ -4231,7 +5391,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4231
5391
|
/**
|
|
4232
5392
|
* List UTXOs
|
|
4233
5393
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4234
|
-
* @returns any
|
|
5394
|
+
* @returns any Successful response
|
|
4235
5395
|
* @throws ApiError
|
|
4236
5396
|
*/
|
|
4237
5397
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4240,7 +5400,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4240
5400
|
*/
|
|
4241
5401
|
blockchainId: BlockchainId;
|
|
4242
5402
|
/**
|
|
4243
|
-
* Either mainnet or
|
|
5403
|
+
* Either mainnet or testnet/fuji.
|
|
4244
5404
|
*/
|
|
4245
5405
|
network: Network;
|
|
4246
5406
|
/**
|
|
@@ -4296,7 +5456,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4296
5456
|
/**
|
|
4297
5457
|
* List vertices
|
|
4298
5458
|
* Lists latest vertices on the X-Chain.
|
|
4299
|
-
* @returns ListXChainVerticesResponse
|
|
5459
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4300
5460
|
* @throws ApiError
|
|
4301
5461
|
*/
|
|
4302
5462
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4305,7 +5465,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4305
5465
|
*/
|
|
4306
5466
|
blockchainId: XChainId;
|
|
4307
5467
|
/**
|
|
4308
|
-
* Either mainnet or
|
|
5468
|
+
* Either mainnet or testnet/fuji.
|
|
4309
5469
|
*/
|
|
4310
5470
|
network: Network;
|
|
4311
5471
|
/**
|
|
@@ -4320,7 +5480,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4320
5480
|
/**
|
|
4321
5481
|
* Get vertex
|
|
4322
5482
|
* Gets a single vertex on the X-Chain.
|
|
4323
|
-
* @returns XChainVertex
|
|
5483
|
+
* @returns XChainVertex Successful response
|
|
4324
5484
|
* @throws ApiError
|
|
4325
5485
|
*/
|
|
4326
5486
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4333,14 +5493,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4333
5493
|
*/
|
|
4334
5494
|
blockchainId: XChainId;
|
|
4335
5495
|
/**
|
|
4336
|
-
* Either mainnet or
|
|
5496
|
+
* Either mainnet or testnet/fuji.
|
|
4337
5497
|
*/
|
|
4338
5498
|
network: Network;
|
|
4339
5499
|
}): CancelablePromise<XChainVertex>;
|
|
4340
5500
|
/**
|
|
4341
5501
|
* List vertices by height
|
|
4342
5502
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4343
|
-
* @returns ListXChainVerticesResponse
|
|
5503
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4344
5504
|
* @throws ApiError
|
|
4345
5505
|
*/
|
|
4346
5506
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4353,7 +5513,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4353
5513
|
*/
|
|
4354
5514
|
blockchainId: XChainId;
|
|
4355
5515
|
/**
|
|
4356
|
-
* Either mainnet or
|
|
5516
|
+
* Either mainnet or testnet/fuji.
|
|
4357
5517
|
*/
|
|
4358
5518
|
network: Network;
|
|
4359
5519
|
/**
|
|
@@ -4371,47 +5531,33 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4371
5531
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4372
5532
|
}
|
|
4373
5533
|
|
|
4374
|
-
type
|
|
4375
|
-
|
|
4376
|
-
message: string;
|
|
4377
|
-
data?: Record<string, any>;
|
|
4378
|
-
};
|
|
4379
|
-
|
|
4380
|
-
type RpcErrorResponseDto = {
|
|
4381
|
-
jsonrpc: string;
|
|
4382
|
-
id?: (string | number);
|
|
4383
|
-
error: RpcErrorDto;
|
|
4384
|
-
};
|
|
4385
|
-
|
|
4386
|
-
type RpcRequestBodyDto = {
|
|
4387
|
-
method: string;
|
|
4388
|
-
params?: Record<string, any>;
|
|
4389
|
-
id?: (string | number);
|
|
4390
|
-
jsonrpc?: string;
|
|
5534
|
+
type SignatureAggregationResponse = {
|
|
5535
|
+
signedMessage: string;
|
|
4391
5536
|
};
|
|
4392
5537
|
|
|
4393
|
-
type
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
5538
|
+
type SignatureAggregatorRequest = {
|
|
5539
|
+
message: string;
|
|
5540
|
+
justification?: string;
|
|
5541
|
+
signingSubnetId?: string;
|
|
5542
|
+
quorumPercentage?: number;
|
|
4397
5543
|
};
|
|
4398
5544
|
|
|
4399
|
-
declare class
|
|
5545
|
+
declare class SignatureAggregatorService {
|
|
4400
5546
|
readonly httpRequest: BaseHttpRequest;
|
|
4401
5547
|
constructor(httpRequest: BaseHttpRequest);
|
|
4402
5548
|
/**
|
|
4403
|
-
*
|
|
4404
|
-
*
|
|
4405
|
-
* @returns
|
|
5549
|
+
* Aggregate Signatures
|
|
5550
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
5551
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4406
5552
|
* @throws ApiError
|
|
4407
5553
|
*/
|
|
4408
|
-
|
|
5554
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
4409
5555
|
/**
|
|
4410
|
-
*
|
|
5556
|
+
* Either mainnet or testnet/fuji.
|
|
4411
5557
|
*/
|
|
4412
|
-
|
|
4413
|
-
requestBody:
|
|
4414
|
-
}): CancelablePromise<
|
|
5558
|
+
network: Network;
|
|
5559
|
+
requestBody: SignatureAggregatorRequest;
|
|
5560
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4415
5561
|
}
|
|
4416
5562
|
|
|
4417
5563
|
type TeleporterDestinationTransaction = {
|
|
@@ -4552,9 +5698,11 @@ declare class TeleporterService {
|
|
|
4552
5698
|
readonly httpRequest: BaseHttpRequest;
|
|
4553
5699
|
constructor(httpRequest: BaseHttpRequest);
|
|
4554
5700
|
/**
|
|
4555
|
-
*
|
|
4556
|
-
* Gets a teleporter message by message ID.
|
|
4557
|
-
*
|
|
5701
|
+
* @deprecated
|
|
5702
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5703
|
+
*
|
|
5704
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5705
|
+
* @returns any Successful response
|
|
4558
5706
|
* @throws ApiError
|
|
4559
5707
|
*/
|
|
4560
5708
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4564,9 +5712,11 @@ declare class TeleporterService {
|
|
|
4564
5712
|
messageId: string;
|
|
4565
5713
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4566
5714
|
/**
|
|
4567
|
-
*
|
|
4568
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
4569
|
-
*
|
|
5715
|
+
* @deprecated
|
|
5716
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5717
|
+
*
|
|
5718
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5719
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4570
5720
|
* @throws ApiError
|
|
4571
5721
|
*/
|
|
4572
5722
|
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
@@ -4599,9 +5749,35 @@ declare class TeleporterService {
|
|
|
4599
5749
|
*/
|
|
4600
5750
|
from?: string;
|
|
4601
5751
|
/**
|
|
4602
|
-
* mainnet or testnet.
|
|
5752
|
+
* Either mainnet or testnet/fuji.
|
|
5753
|
+
*/
|
|
5754
|
+
network?: Network;
|
|
5755
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5756
|
+
/**
|
|
5757
|
+
* @deprecated
|
|
5758
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5759
|
+
*
|
|
5760
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5761
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
5762
|
+
* @throws ApiError
|
|
5763
|
+
*/
|
|
5764
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
5765
|
+
/**
|
|
5766
|
+
* An EVM address.
|
|
5767
|
+
*/
|
|
5768
|
+
address: string;
|
|
5769
|
+
/**
|
|
5770
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5771
|
+
*/
|
|
5772
|
+
pageToken?: string;
|
|
5773
|
+
/**
|
|
5774
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
5775
|
+
*/
|
|
5776
|
+
pageSize?: number;
|
|
5777
|
+
/**
|
|
5778
|
+
* Either mainnet or testnet/fuji.
|
|
4603
5779
|
*/
|
|
4604
|
-
network?:
|
|
5780
|
+
network?: Network;
|
|
4605
5781
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4606
5782
|
}
|
|
4607
5783
|
|
|
@@ -4609,7 +5785,7 @@ type AddressesChangeRequest = {
|
|
|
4609
5785
|
/**
|
|
4610
5786
|
* Ethereum address(es) for the address_activity event type
|
|
4611
5787
|
*/
|
|
4612
|
-
addresses: Array<
|
|
5788
|
+
addresses: Array<string>;
|
|
4613
5789
|
};
|
|
4614
5790
|
|
|
4615
5791
|
type AddressActivityMetadata = {
|
|
@@ -4635,7 +5811,7 @@ type CreateWebhookRequest = {
|
|
|
4635
5811
|
name?: string;
|
|
4636
5812
|
description?: string;
|
|
4637
5813
|
/**
|
|
4638
|
-
* Whether to include traces in the webhook payload.
|
|
5814
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4639
5815
|
*/
|
|
4640
5816
|
includeInternalTxs?: boolean;
|
|
4641
5817
|
/**
|
|
@@ -4695,6 +5871,9 @@ type UpdateWebhookRequest = {
|
|
|
4695
5871
|
description?: string;
|
|
4696
5872
|
url?: string;
|
|
4697
5873
|
status?: WebhookStatusType;
|
|
5874
|
+
/**
|
|
5875
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5876
|
+
*/
|
|
4698
5877
|
includeInternalTxs?: boolean;
|
|
4699
5878
|
includeLogs?: boolean;
|
|
4700
5879
|
};
|
|
@@ -4710,7 +5889,7 @@ declare class WebhooksService {
|
|
|
4710
5889
|
/**
|
|
4711
5890
|
* Create a webhook
|
|
4712
5891
|
* Create a new webhook.
|
|
4713
|
-
* @returns WebhookResponse
|
|
5892
|
+
* @returns WebhookResponse Successful response
|
|
4714
5893
|
* @throws ApiError
|
|
4715
5894
|
*/
|
|
4716
5895
|
createWebhook({ requestBody, }: {
|
|
@@ -4719,7 +5898,7 @@ declare class WebhooksService {
|
|
|
4719
5898
|
/**
|
|
4720
5899
|
* List webhooks
|
|
4721
5900
|
* Lists webhooks for the user.
|
|
4722
|
-
* @returns ListWebhooksResponse
|
|
5901
|
+
* @returns ListWebhooksResponse Successful response
|
|
4723
5902
|
* @throws ApiError
|
|
4724
5903
|
*/
|
|
4725
5904
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4739,7 +5918,7 @@ declare class WebhooksService {
|
|
|
4739
5918
|
/**
|
|
4740
5919
|
* Get a webhook by ID
|
|
4741
5920
|
* Retrieves a webhook by ID.
|
|
4742
|
-
* @returns WebhookResponse
|
|
5921
|
+
* @returns WebhookResponse Successful response
|
|
4743
5922
|
* @throws ApiError
|
|
4744
5923
|
*/
|
|
4745
5924
|
getWebhook({ id, }: {
|
|
@@ -4751,7 +5930,7 @@ declare class WebhooksService {
|
|
|
4751
5930
|
/**
|
|
4752
5931
|
* Deactivate a webhook
|
|
4753
5932
|
* Deactivates a webhook by ID.
|
|
4754
|
-
* @returns WebhookResponse
|
|
5933
|
+
* @returns WebhookResponse Successful response
|
|
4755
5934
|
* @throws ApiError
|
|
4756
5935
|
*/
|
|
4757
5936
|
deactivateWebhook({ id, }: {
|
|
@@ -4763,7 +5942,7 @@ declare class WebhooksService {
|
|
|
4763
5942
|
/**
|
|
4764
5943
|
* Update a webhook
|
|
4765
5944
|
* Updates an existing webhook.
|
|
4766
|
-
* @returns WebhookResponse
|
|
5945
|
+
* @returns WebhookResponse Successful response
|
|
4767
5946
|
* @throws ApiError
|
|
4768
5947
|
*/
|
|
4769
5948
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4774,23 +5953,23 @@ declare class WebhooksService {
|
|
|
4774
5953
|
requestBody: UpdateWebhookRequest;
|
|
4775
5954
|
}): CancelablePromise<WebhookResponse>;
|
|
4776
5955
|
/**
|
|
4777
|
-
* Generate a shared secret
|
|
4778
|
-
* Generates a new shared secret.
|
|
4779
|
-
* @returns SharedSecretsResponse
|
|
5956
|
+
* Generate or rotate a shared secret
|
|
5957
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5958
|
+
* @returns SharedSecretsResponse Successful response
|
|
4780
5959
|
* @throws ApiError
|
|
4781
5960
|
*/
|
|
4782
|
-
|
|
5961
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4783
5962
|
/**
|
|
4784
5963
|
* Get a shared secret
|
|
4785
5964
|
* Get a previously generated shared secret.
|
|
4786
|
-
* @returns SharedSecretsResponse
|
|
5965
|
+
* @returns SharedSecretsResponse Successful response
|
|
4787
5966
|
* @throws ApiError
|
|
4788
5967
|
*/
|
|
4789
5968
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4790
5969
|
/**
|
|
4791
5970
|
* Add addresses to webhook
|
|
4792
5971
|
* Add addresses to webhook.
|
|
4793
|
-
* @returns WebhookResponse
|
|
5972
|
+
* @returns WebhookResponse Successful response
|
|
4794
5973
|
* @throws ApiError
|
|
4795
5974
|
*/
|
|
4796
5975
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4803,7 +5982,7 @@ declare class WebhooksService {
|
|
|
4803
5982
|
/**
|
|
4804
5983
|
* Remove addresses from webhook
|
|
4805
5984
|
* Remove addresses from webhook.
|
|
4806
|
-
* @returns WebhookResponse
|
|
5985
|
+
* @returns WebhookResponse Successful response
|
|
4807
5986
|
* @throws ApiError
|
|
4808
5987
|
*/
|
|
4809
5988
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4816,7 +5995,7 @@ declare class WebhooksService {
|
|
|
4816
5995
|
/**
|
|
4817
5996
|
* List adresses by webhook
|
|
4818
5997
|
* List adresses by webhook.
|
|
4819
|
-
* @returns ListWebhookAddressesResponse
|
|
5998
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4820
5999
|
* @throws ApiError
|
|
4821
6000
|
*/
|
|
4822
6001
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4837,15 +6016,17 @@ declare class WebhooksService {
|
|
|
4837
6016
|
|
|
4838
6017
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4839
6018
|
declare class Glacier {
|
|
6019
|
+
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4840
6020
|
readonly default: DefaultService;
|
|
4841
6021
|
readonly evmBalances: EvmBalancesService;
|
|
4842
6022
|
readonly evmBlocks: EvmBlocksService;
|
|
4843
6023
|
readonly evmChains: EvmChainsService;
|
|
4844
6024
|
readonly evmContracts: EvmContractsService;
|
|
4845
6025
|
readonly evmTransactions: EvmTransactionsService;
|
|
4846
|
-
readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
|
|
4847
6026
|
readonly healthCheck: HealthCheckService;
|
|
6027
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
4848
6028
|
readonly nfTs: NfTsService;
|
|
6029
|
+
readonly notifications: NotificationsService;
|
|
4849
6030
|
readonly operations: OperationsService;
|
|
4850
6031
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
4851
6032
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -4854,7 +6035,7 @@ declare class Glacier {
|
|
|
4854
6035
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4855
6036
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4856
6037
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4857
|
-
readonly
|
|
6038
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4858
6039
|
readonly teleporter: TeleporterService;
|
|
4859
6040
|
readonly webhooks: WebhooksService;
|
|
4860
6041
|
readonly request: BaseHttpRequest;
|
|
@@ -4878,6 +6059,70 @@ declare class ApiError extends Error {
|
|
|
4878
6059
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4879
6060
|
}
|
|
4880
6061
|
|
|
6062
|
+
type BadGateway = {
|
|
6063
|
+
/**
|
|
6064
|
+
* The error message describing the reason for the exception
|
|
6065
|
+
*/
|
|
6066
|
+
message: (string | Array<string>);
|
|
6067
|
+
/**
|
|
6068
|
+
* The HTTP status code of the response
|
|
6069
|
+
*/
|
|
6070
|
+
statusCode: number;
|
|
6071
|
+
/**
|
|
6072
|
+
* The type of error
|
|
6073
|
+
*/
|
|
6074
|
+
error: string;
|
|
6075
|
+
};
|
|
6076
|
+
|
|
6077
|
+
type BadRequest = {
|
|
6078
|
+
/**
|
|
6079
|
+
* The error message describing the reason for the exception
|
|
6080
|
+
*/
|
|
6081
|
+
message: (string | Array<string>);
|
|
6082
|
+
/**
|
|
6083
|
+
* The HTTP status code of the response
|
|
6084
|
+
*/
|
|
6085
|
+
statusCode: number;
|
|
6086
|
+
/**
|
|
6087
|
+
* The type of error
|
|
6088
|
+
*/
|
|
6089
|
+
error: string;
|
|
6090
|
+
};
|
|
6091
|
+
|
|
6092
|
+
type DataListChainsResponse = {
|
|
6093
|
+
chains: Array<ChainInfo>;
|
|
6094
|
+
};
|
|
6095
|
+
|
|
6096
|
+
type Forbidden = {
|
|
6097
|
+
/**
|
|
6098
|
+
* The error message describing the reason for the exception
|
|
6099
|
+
*/
|
|
6100
|
+
message: (string | Array<string>);
|
|
6101
|
+
/**
|
|
6102
|
+
* The HTTP status code of the response
|
|
6103
|
+
*/
|
|
6104
|
+
statusCode: number;
|
|
6105
|
+
/**
|
|
6106
|
+
* The type of error
|
|
6107
|
+
*/
|
|
6108
|
+
error: string;
|
|
6109
|
+
};
|
|
6110
|
+
|
|
6111
|
+
type InternalServerError = {
|
|
6112
|
+
/**
|
|
6113
|
+
* The error message describing the reason for the exception
|
|
6114
|
+
*/
|
|
6115
|
+
message: (string | Array<string>);
|
|
6116
|
+
/**
|
|
6117
|
+
* The HTTP status code of the response
|
|
6118
|
+
*/
|
|
6119
|
+
statusCode: number;
|
|
6120
|
+
/**
|
|
6121
|
+
* The type of error
|
|
6122
|
+
*/
|
|
6123
|
+
error: string;
|
|
6124
|
+
};
|
|
6125
|
+
|
|
4881
6126
|
type NextPageToken = {
|
|
4882
6127
|
/**
|
|
4883
6128
|
* 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.
|
|
@@ -4885,4 +6130,64 @@ type NextPageToken = {
|
|
|
4885
6130
|
nextPageToken?: string;
|
|
4886
6131
|
};
|
|
4887
6132
|
|
|
4888
|
-
|
|
6133
|
+
type NotFound = {
|
|
6134
|
+
/**
|
|
6135
|
+
* The error message describing the reason for the exception
|
|
6136
|
+
*/
|
|
6137
|
+
message: (string | Array<string>);
|
|
6138
|
+
/**
|
|
6139
|
+
* The HTTP status code of the response
|
|
6140
|
+
*/
|
|
6141
|
+
statusCode: number;
|
|
6142
|
+
/**
|
|
6143
|
+
* The type of error
|
|
6144
|
+
*/
|
|
6145
|
+
error: string;
|
|
6146
|
+
};
|
|
6147
|
+
|
|
6148
|
+
type ServiceUnavailable = {
|
|
6149
|
+
/**
|
|
6150
|
+
* The error message describing the reason for the exception
|
|
6151
|
+
*/
|
|
6152
|
+
message: (string | Array<string>);
|
|
6153
|
+
/**
|
|
6154
|
+
* The HTTP status code of the response
|
|
6155
|
+
*/
|
|
6156
|
+
statusCode: number;
|
|
6157
|
+
/**
|
|
6158
|
+
* The type of error
|
|
6159
|
+
*/
|
|
6160
|
+
error: string;
|
|
6161
|
+
};
|
|
6162
|
+
|
|
6163
|
+
type TooManyRequests = {
|
|
6164
|
+
/**
|
|
6165
|
+
* The error message describing the reason for the exception
|
|
6166
|
+
*/
|
|
6167
|
+
message: (string | Array<string>);
|
|
6168
|
+
/**
|
|
6169
|
+
* The HTTP status code of the response
|
|
6170
|
+
*/
|
|
6171
|
+
statusCode: number;
|
|
6172
|
+
/**
|
|
6173
|
+
* The type of error
|
|
6174
|
+
*/
|
|
6175
|
+
error: string;
|
|
6176
|
+
};
|
|
6177
|
+
|
|
6178
|
+
type Unauthorized = {
|
|
6179
|
+
/**
|
|
6180
|
+
* The error message describing the reason for the exception
|
|
6181
|
+
*/
|
|
6182
|
+
message: (string | Array<string>);
|
|
6183
|
+
/**
|
|
6184
|
+
* The HTTP status code of the response
|
|
6185
|
+
*/
|
|
6186
|
+
statusCode: number;
|
|
6187
|
+
/**
|
|
6188
|
+
* The type of error
|
|
6189
|
+
*/
|
|
6190
|
+
error: string;
|
|
6191
|
+
};
|
|
6192
|
+
|
|
6193
|
+
export { AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, 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, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, 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, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, 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, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, 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 };
|