@avalabs/glacier-sdk 3.1.0-canary.efe2f7b.0 → 3.1.0-canary.f28fe03.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +916 -470
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -4
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/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/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
- package/esm/generated/models/InternalServerError.d.ts +16 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +14 -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/PChainTransaction.d.ts +13 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/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/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/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/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/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +154 -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 +4 -4
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +21 -8
- 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 +24 -24
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +6 -6
- package/esm/generated/services/NfTsService.js +1 -1
- 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 +6 -6
- 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 +51 -18
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +9 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +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 +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +34 -6
- package/esm/generated/services/TeleporterService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +10 -10
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +23 -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
|
@@ -21,7 +21,7 @@ declare class PrimaryNetworkService {
|
|
|
21
21
|
/**
|
|
22
22
|
* Get asset details
|
|
23
23
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
24
|
-
* @returns XChainAssetDetails
|
|
24
|
+
* @returns XChainAssetDetails Successful response
|
|
25
25
|
* @throws ApiError
|
|
26
26
|
*/
|
|
27
27
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -30,7 +30,7 @@ declare class PrimaryNetworkService {
|
|
|
30
30
|
*/
|
|
31
31
|
blockchainId: XChainId;
|
|
32
32
|
/**
|
|
33
|
-
* Either mainnet or
|
|
33
|
+
* Either mainnet or testnet/fuji.
|
|
34
34
|
*/
|
|
35
35
|
network: Network;
|
|
36
36
|
/**
|
|
@@ -41,7 +41,7 @@ declare class PrimaryNetworkService {
|
|
|
41
41
|
/**
|
|
42
42
|
* Get chain interactions for addresses
|
|
43
43
|
* 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.
|
|
44
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
44
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
45
45
|
* @throws ApiError
|
|
46
46
|
*/
|
|
47
47
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -50,31 +50,31 @@ declare class PrimaryNetworkService {
|
|
|
50
50
|
*/
|
|
51
51
|
addresses: string;
|
|
52
52
|
/**
|
|
53
|
-
* Either mainnet or
|
|
53
|
+
* Either mainnet or testnet/fuji.
|
|
54
54
|
*/
|
|
55
55
|
network: Network;
|
|
56
56
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
57
57
|
/**
|
|
58
58
|
* Get network details
|
|
59
59
|
* Gets network details such as validator and delegator stats.
|
|
60
|
-
* @returns GetNetworkDetailsResponse
|
|
60
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
61
61
|
* @throws ApiError
|
|
62
62
|
*/
|
|
63
63
|
getNetworkDetails({ network, }: {
|
|
64
64
|
/**
|
|
65
|
-
* Either mainnet or
|
|
65
|
+
* Either mainnet or testnet/fuji.
|
|
66
66
|
*/
|
|
67
67
|
network: Network;
|
|
68
68
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
69
69
|
/**
|
|
70
70
|
* List blockchains
|
|
71
71
|
* Lists all blockchains registered on the network.
|
|
72
|
-
* @returns ListBlockchainsResponse
|
|
72
|
+
* @returns ListBlockchainsResponse Successful response
|
|
73
73
|
* @throws ApiError
|
|
74
74
|
*/
|
|
75
75
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
76
76
|
/**
|
|
77
|
-
* Either mainnet or
|
|
77
|
+
* Either mainnet or testnet/fuji.
|
|
78
78
|
*/
|
|
79
79
|
network: Network;
|
|
80
80
|
/**
|
|
@@ -93,12 +93,12 @@ declare class PrimaryNetworkService {
|
|
|
93
93
|
/**
|
|
94
94
|
* List subnets
|
|
95
95
|
* Lists all subnets registered on the network.
|
|
96
|
-
* @returns ListSubnetsResponse
|
|
96
|
+
* @returns ListSubnetsResponse Successful response
|
|
97
97
|
* @throws ApiError
|
|
98
98
|
*/
|
|
99
99
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
100
100
|
/**
|
|
101
|
-
* Either mainnet or
|
|
101
|
+
* Either mainnet or testnet/fuji.
|
|
102
102
|
*/
|
|
103
103
|
network: Network;
|
|
104
104
|
/**
|
|
@@ -117,12 +117,12 @@ declare class PrimaryNetworkService {
|
|
|
117
117
|
/**
|
|
118
118
|
* Get Subnet details by ID
|
|
119
119
|
* Get details of the Subnet registered on the network.
|
|
120
|
-
* @returns Subnet
|
|
120
|
+
* @returns Subnet Successful response
|
|
121
121
|
* @throws ApiError
|
|
122
122
|
*/
|
|
123
123
|
getSubnetById({ network, subnetId, }: {
|
|
124
124
|
/**
|
|
125
|
-
* Either mainnet or
|
|
125
|
+
* Either mainnet or testnet/fuji.
|
|
126
126
|
*/
|
|
127
127
|
network: Network;
|
|
128
128
|
/**
|
|
@@ -133,12 +133,12 @@ declare class PrimaryNetworkService {
|
|
|
133
133
|
/**
|
|
134
134
|
* List validators
|
|
135
135
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
136
|
-
* @returns ListValidatorDetailsResponse
|
|
136
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
137
137
|
* @throws ApiError
|
|
138
138
|
*/
|
|
139
139
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
140
140
|
/**
|
|
141
|
-
* Either mainnet or
|
|
141
|
+
* Either mainnet or testnet/fuji.
|
|
142
142
|
*/
|
|
143
143
|
network: Network;
|
|
144
144
|
/**
|
|
@@ -207,12 +207,12 @@ declare class PrimaryNetworkService {
|
|
|
207
207
|
/**
|
|
208
208
|
* Get single validator details
|
|
209
209
|
* List validator details for a single validator. Filterable by validation status.
|
|
210
|
-
* @returns ListValidatorDetailsResponse
|
|
210
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
211
211
|
* @throws ApiError
|
|
212
212
|
*/
|
|
213
213
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
214
214
|
/**
|
|
215
|
-
* Either mainnet or
|
|
215
|
+
* Either mainnet or testnet/fuji.
|
|
216
216
|
*/
|
|
217
217
|
network: Network;
|
|
218
218
|
/**
|
|
@@ -239,12 +239,12 @@ declare class PrimaryNetworkService {
|
|
|
239
239
|
/**
|
|
240
240
|
* List delegators
|
|
241
241
|
* Lists details for delegators.
|
|
242
|
-
* @returns ListDelegatorDetailsResponse
|
|
242
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
243
243
|
* @throws ApiError
|
|
244
244
|
*/
|
|
245
245
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
246
246
|
/**
|
|
247
|
-
* Either mainnet or
|
|
247
|
+
* Either mainnet or testnet/fuji.
|
|
248
248
|
*/
|
|
249
249
|
network: Network;
|
|
250
250
|
/**
|
|
@@ -272,6 +272,39 @@ declare class PrimaryNetworkService {
|
|
|
272
272
|
*/
|
|
273
273
|
nodeIds?: string;
|
|
274
274
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
275
|
+
/**
|
|
276
|
+
* List subnet-only validators
|
|
277
|
+
* Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id.
|
|
278
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
279
|
+
* @throws ApiError
|
|
280
|
+
*/
|
|
281
|
+
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
|
|
282
|
+
/**
|
|
283
|
+
* Either mainnet or testnet/fuji.
|
|
284
|
+
*/
|
|
285
|
+
network: Network;
|
|
286
|
+
/**
|
|
287
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
288
|
+
*/
|
|
289
|
+
pageToken?: string;
|
|
290
|
+
/**
|
|
291
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
292
|
+
*/
|
|
293
|
+
pageSize?: number;
|
|
294
|
+
/**
|
|
295
|
+
* The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
|
|
296
|
+
*/
|
|
297
|
+
sovValidationId?: any;
|
|
298
|
+
includeInactiveSovs?: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
301
|
+
*/
|
|
302
|
+
nodeId?: string;
|
|
303
|
+
/**
|
|
304
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
305
|
+
*/
|
|
306
|
+
subnetId?: any;
|
|
307
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
275
308
|
}
|
|
276
309
|
|
|
277
310
|
export { PrimaryNetworkService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:t,assetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:t,assetId:r}})}getChainIdsForAddresses({addresses:e,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:t},query:{addresses:e}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e}})}listBlockchains({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}listSubnets({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}getSubnetById({network:e,subnetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:t}})}listValidators({network:e,pageToken:t,pageSize:r=10,nodeIds:s,sortBy:n,sortOrder:a,validationStatus:o,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:u,maxTimeRemaining:k,minFeePercentage:p,maxFeePercentage:h,minUptimePerformance:g,maxUptimePerformance:l,subnetId:m}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:t,pageSize:r,nodeIds:s,sortBy:n,sortOrder:a,validationStatus:o,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:u,maxTimeRemaining:k,minFeePercentage:p,maxFeePercentage:h,minUptimePerformance:g,maxUptimePerformance:l,subnetId:m}})}getSingleValidatorDetails({network:e,nodeId:t,pageToken:r,pageSize:s=10,validationStatus:n,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:t},query:{pageToken:r,pageSize:s,validationStatus:n,sortOrder:a}})}listDelegators({network:e,pageToken:t,pageSize:r=10,rewardAddresses:s,sortOrder:n,delegationStatus:a,nodeIds:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:t,pageSize:r,rewardAddresses:s,sortOrder:n,delegationStatus:a,nodeIds:o}})}}export{e as PrimaryNetworkService};
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listBlockchains({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnetOnlyValidators({network:e,pageToken:r,pageSize:t=10,sovValidationId:n,includeInactiveSovs:s,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnetOnlyValidators",path:{network:e},query:{pageToken:r,pageSize:t,sovValidationId:n,includeInactiveSovs:s,nodeId:a,subnetId:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkService};
|
|
@@ -21,7 +21,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
21
21
|
/**
|
|
22
22
|
* Get transaction
|
|
23
23
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
24
|
-
* @returns any
|
|
24
|
+
* @returns any Successful response
|
|
25
25
|
* @throws ApiError
|
|
26
26
|
*/
|
|
27
27
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -30,7 +30,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
30
30
|
*/
|
|
31
31
|
blockchainId: BlockchainId;
|
|
32
32
|
/**
|
|
33
|
-
* Either mainnet or
|
|
33
|
+
* Either mainnet or testnet/fuji.
|
|
34
34
|
*/
|
|
35
35
|
network: Network;
|
|
36
36
|
/**
|
|
@@ -45,7 +45,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
45
45
|
* 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.
|
|
46
46
|
*
|
|
47
47
|
* 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.
|
|
48
|
-
* @returns any
|
|
48
|
+
* @returns any Successful response
|
|
49
49
|
* @throws ApiError
|
|
50
50
|
*/
|
|
51
51
|
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -54,11 +54,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
54
54
|
*/
|
|
55
55
|
blockchainId: BlockchainId;
|
|
56
56
|
/**
|
|
57
|
-
* Either mainnet or
|
|
57
|
+
* Either mainnet or testnet/fuji.
|
|
58
58
|
*/
|
|
59
59
|
network: Network;
|
|
60
60
|
/**
|
|
61
|
-
* 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".
|
|
61
|
+
* 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.
|
|
62
62
|
*/
|
|
63
63
|
addresses?: string;
|
|
64
64
|
/**
|
|
@@ -89,7 +89,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
89
89
|
/**
|
|
90
90
|
* List staking transactions
|
|
91
91
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
92
|
-
* @returns ListPChainTransactionsResponse
|
|
92
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
93
93
|
* @throws ApiError
|
|
94
94
|
*/
|
|
95
95
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -98,7 +98,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
98
98
|
*/
|
|
99
99
|
blockchainId: PChainId;
|
|
100
100
|
/**
|
|
101
|
-
* Either mainnet or
|
|
101
|
+
* Either mainnet or testnet/fuji.
|
|
102
102
|
*/
|
|
103
103
|
network: Network;
|
|
104
104
|
/**
|
|
@@ -133,7 +133,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
133
133
|
/**
|
|
134
134
|
* List asset transactions
|
|
135
135
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
136
|
-
* @returns ListXChainTransactionsResponse
|
|
136
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
137
137
|
* @throws ApiError
|
|
138
138
|
*/
|
|
139
139
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -142,7 +142,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
142
142
|
*/
|
|
143
143
|
blockchainId: XChainId;
|
|
144
144
|
/**
|
|
145
|
-
* Either mainnet or
|
|
145
|
+
* Either mainnet or testnet/fuji.
|
|
146
146
|
*/
|
|
147
147
|
network: Network;
|
|
148
148
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getTxByHash({blockchainId:e,network:t,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:e,network:t,txHash:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listLatestPrimaryNetworkTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o,sortOrder:h},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listActivePrimaryNetworkStakingTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o,sortOrder:h},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listAssetTransactions({blockchainId:e,network:t,assetId:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",path:{blockchainId:e,network:t,assetId:r},query:{txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkTransactionsService};
|
|
@@ -12,7 +12,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
12
12
|
/**
|
|
13
13
|
* List UTXOs
|
|
14
14
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
15
|
-
* @returns any
|
|
15
|
+
* @returns any Successful response
|
|
16
16
|
* @throws ApiError
|
|
17
17
|
*/
|
|
18
18
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -21,7 +21,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
21
21
|
*/
|
|
22
22
|
blockchainId: BlockchainId;
|
|
23
23
|
/**
|
|
24
|
-
* Either mainnet or
|
|
24
|
+
* Either mainnet or testnet/fuji.
|
|
25
25
|
*/
|
|
26
26
|
network: Network;
|
|
27
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:s,pageSize:n=10,assetId:a,includeSpent:i,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{addresses:t,pageToken:s,pageSize:n,assetId:a,includeSpent:i,sortOrder:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkUtxOsService};
|
|
@@ -12,7 +12,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
12
12
|
/**
|
|
13
13
|
* List vertices
|
|
14
14
|
* Lists latest vertices on the X-Chain.
|
|
15
|
-
* @returns ListXChainVerticesResponse
|
|
15
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
16
16
|
* @throws ApiError
|
|
17
17
|
*/
|
|
18
18
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -21,7 +21,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
21
21
|
*/
|
|
22
22
|
blockchainId: XChainId;
|
|
23
23
|
/**
|
|
24
|
-
* Either mainnet or
|
|
24
|
+
* Either mainnet or testnet/fuji.
|
|
25
25
|
*/
|
|
26
26
|
network: Network;
|
|
27
27
|
/**
|
|
@@ -36,7 +36,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
36
36
|
/**
|
|
37
37
|
* Get vertex
|
|
38
38
|
* Gets a single vertex on the X-Chain.
|
|
39
|
-
* @returns XChainVertex
|
|
39
|
+
* @returns XChainVertex Successful response
|
|
40
40
|
* @throws ApiError
|
|
41
41
|
*/
|
|
42
42
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -49,14 +49,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
49
49
|
*/
|
|
50
50
|
blockchainId: XChainId;
|
|
51
51
|
/**
|
|
52
|
-
* Either mainnet or
|
|
52
|
+
* Either mainnet or testnet/fuji.
|
|
53
53
|
*/
|
|
54
54
|
network: Network;
|
|
55
55
|
}): CancelablePromise<XChainVertex>;
|
|
56
56
|
/**
|
|
57
57
|
* List vertices by height
|
|
58
58
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
59
|
-
* @returns ListXChainVerticesResponse
|
|
59
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
60
60
|
* @throws ApiError
|
|
61
61
|
*/
|
|
62
62
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -69,7 +69,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
69
69
|
*/
|
|
70
70
|
blockchainId: XChainId;
|
|
71
71
|
/**
|
|
72
|
-
* Either mainnet or
|
|
72
|
+
* Either mainnet or testnet/fuji.
|
|
73
73
|
*/
|
|
74
74
|
network: Network;
|
|
75
75
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}listLatestXChainVertices({blockchainId:e,network:
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}listLatestXChainVertices({blockchainId:e,network:r,pageToken:t,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices",path:{blockchainId:e,network:r},query:{pageToken:t,pageSize:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getVertexByHash({vertexHash:e,blockchainId:r,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}",path:{vertexHash:e,blockchainId:r,network:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getVertexByHeight({vertexHeight:e,blockchainId:r,network:t,pageToken:n,pageSize:s=10,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight",path:{blockchainId:r,network:t},query:{vertexHeight:e,pageToken:n,pageSize:s,sortOrder:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkVerticesService};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SignatureAggregationResponse } from '../models/SignatureAggregationResponse.js';
|
|
2
|
+
import { SignatureAggregatorRequest } from '../models/SignatureAggregatorRequest.js';
|
|
3
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
5
|
+
|
|
6
|
+
declare class SignatureAggregatorService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* Aggregate Signatures
|
|
11
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
12
|
+
* @returns SignatureAggregationResponse Successful response
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
aggregateSignatures({ requestBody, }: {
|
|
16
|
+
requestBody: SignatureAggregatorRequest;
|
|
17
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { SignatureAggregatorService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}aggregateSignatures({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/signatureAggregator/aggregateSignatures",body:e,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as SignatureAggregatorService};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeliveredSourceNotIndexedTeleporterMessage } from '../models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
2
2
|
import { DeliveredTeleporterMessage } from '../models/DeliveredTeleporterMessage.js';
|
|
3
3
|
import { ListTeleporterMessagesResponse } from '../models/ListTeleporterMessagesResponse.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Network } from '../models/Network.js';
|
|
5
5
|
import { PendingTeleporterMessage } from '../models/PendingTeleporterMessage.js';
|
|
6
6
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
7
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
@@ -12,7 +12,7 @@ declare class TeleporterService {
|
|
|
12
12
|
/**
|
|
13
13
|
* Get a teleporter message
|
|
14
14
|
* Gets a teleporter message by message ID.
|
|
15
|
-
* @returns any
|
|
15
|
+
* @returns any Successful response
|
|
16
16
|
* @throws ApiError
|
|
17
17
|
*/
|
|
18
18
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -24,10 +24,10 @@ declare class TeleporterService {
|
|
|
24
24
|
/**
|
|
25
25
|
* List teleporter messages
|
|
26
26
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
27
|
-
* @returns ListTeleporterMessagesResponse
|
|
27
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
30
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
31
31
|
/**
|
|
32
32
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
33
33
|
*/
|
|
@@ -44,6 +44,10 @@ declare class TeleporterService {
|
|
|
44
44
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
45
45
|
*/
|
|
46
46
|
destinationBlockchainId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
49
|
+
*/
|
|
50
|
+
blockchainId?: string;
|
|
47
51
|
/**
|
|
48
52
|
* The address of the recipient of the teleporter message.
|
|
49
53
|
*/
|
|
@@ -53,9 +57,33 @@ declare class TeleporterService {
|
|
|
53
57
|
*/
|
|
54
58
|
from?: string;
|
|
55
59
|
/**
|
|
56
|
-
* mainnet or testnet.
|
|
60
|
+
* Either mainnet or testnet/fuji.
|
|
61
|
+
*/
|
|
62
|
+
network?: Network;
|
|
63
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* List teleporter messages by address
|
|
66
|
+
* Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
67
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
71
|
+
/**
|
|
72
|
+
* An EVM address.
|
|
73
|
+
*/
|
|
74
|
+
address: string;
|
|
75
|
+
/**
|
|
76
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
77
|
+
*/
|
|
78
|
+
pageToken?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
81
|
+
*/
|
|
82
|
+
pageSize?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Either mainnet or testnet/fuji.
|
|
57
85
|
*/
|
|
58
|
-
network?:
|
|
86
|
+
network?: Network;
|
|
59
87
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
60
88
|
}
|
|
61
89
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e}})}listTeleporterMessages({pageToken:e,pageSize:
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTeleporterMessages({pageToken:e,pageSize:r=10,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:r,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTeleporterMessagesByAddress({address:e,pageToken:r,pageSize:t=10,network:s}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/addresses/{address}/messages",path:{address:e},query:{pageToken:r,pageSize:t,network:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as TeleporterService};
|
|
@@ -15,7 +15,7 @@ declare class WebhooksService {
|
|
|
15
15
|
/**
|
|
16
16
|
* Create a webhook
|
|
17
17
|
* Create a new webhook.
|
|
18
|
-
* @returns WebhookResponse
|
|
18
|
+
* @returns WebhookResponse Successful response
|
|
19
19
|
* @throws ApiError
|
|
20
20
|
*/
|
|
21
21
|
createWebhook({ requestBody, }: {
|
|
@@ -24,7 +24,7 @@ declare class WebhooksService {
|
|
|
24
24
|
/**
|
|
25
25
|
* List webhooks
|
|
26
26
|
* Lists webhooks for the user.
|
|
27
|
-
* @returns ListWebhooksResponse
|
|
27
|
+
* @returns ListWebhooksResponse Successful response
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
30
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -44,7 +44,7 @@ declare class WebhooksService {
|
|
|
44
44
|
/**
|
|
45
45
|
* Get a webhook by ID
|
|
46
46
|
* Retrieves a webhook by ID.
|
|
47
|
-
* @returns WebhookResponse
|
|
47
|
+
* @returns WebhookResponse Successful response
|
|
48
48
|
* @throws ApiError
|
|
49
49
|
*/
|
|
50
50
|
getWebhook({ id, }: {
|
|
@@ -56,7 +56,7 @@ declare class WebhooksService {
|
|
|
56
56
|
/**
|
|
57
57
|
* Deactivate a webhook
|
|
58
58
|
* Deactivates a webhook by ID.
|
|
59
|
-
* @returns WebhookResponse
|
|
59
|
+
* @returns WebhookResponse Successful response
|
|
60
60
|
* @throws ApiError
|
|
61
61
|
*/
|
|
62
62
|
deactivateWebhook({ id, }: {
|
|
@@ -68,7 +68,7 @@ declare class WebhooksService {
|
|
|
68
68
|
/**
|
|
69
69
|
* Update a webhook
|
|
70
70
|
* Updates an existing webhook.
|
|
71
|
-
* @returns WebhookResponse
|
|
71
|
+
* @returns WebhookResponse Successful response
|
|
72
72
|
* @throws ApiError
|
|
73
73
|
*/
|
|
74
74
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -81,21 +81,21 @@ declare class WebhooksService {
|
|
|
81
81
|
/**
|
|
82
82
|
* Generate a shared secret
|
|
83
83
|
* Generates a new shared secret.
|
|
84
|
-
* @returns SharedSecretsResponse
|
|
84
|
+
* @returns SharedSecretsResponse Successful response
|
|
85
85
|
* @throws ApiError
|
|
86
86
|
*/
|
|
87
87
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
88
88
|
/**
|
|
89
89
|
* Get a shared secret
|
|
90
90
|
* Get a previously generated shared secret.
|
|
91
|
-
* @returns SharedSecretsResponse
|
|
91
|
+
* @returns SharedSecretsResponse Successful response
|
|
92
92
|
* @throws ApiError
|
|
93
93
|
*/
|
|
94
94
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
95
95
|
/**
|
|
96
96
|
* Add addresses to webhook
|
|
97
97
|
* Add addresses to webhook.
|
|
98
|
-
* @returns WebhookResponse
|
|
98
|
+
* @returns WebhookResponse Successful response
|
|
99
99
|
* @throws ApiError
|
|
100
100
|
*/
|
|
101
101
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -108,7 +108,7 @@ declare class WebhooksService {
|
|
|
108
108
|
/**
|
|
109
109
|
* Remove addresses from webhook
|
|
110
110
|
* Remove addresses from webhook.
|
|
111
|
-
* @returns WebhookResponse
|
|
111
|
+
* @returns WebhookResponse Successful response
|
|
112
112
|
* @throws ApiError
|
|
113
113
|
*/
|
|
114
114
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -121,7 +121,7 @@ declare class WebhooksService {
|
|
|
121
121
|
/**
|
|
122
122
|
* List adresses by webhook
|
|
123
123
|
* List adresses by webhook.
|
|
124
|
-
* @returns ListWebhookAddressesResponse
|
|
124
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
125
125
|
* @throws ApiError
|
|
126
126
|
*/
|
|
127
127
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|