@avalabs/glacier-sdk 3.1.0-canary.b1108b2.0 → 3.1.0-canary.b86a6f6.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 +395 -134
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -2
- package/esm/generated/Glacier.js +1 -1
- 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/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListSubnetOnlyValidatorsResponse.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/PChainTransaction.d.ts +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
- package/esm/generated/models/SoVDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/SovDetailsFull.d.ts +33 -0
- package/esm/generated/models/Subnet.d.ts +9 -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 +63 -18
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.d.ts +2 -2
- package/esm/generated/services/EvmChainsService.d.ts +17 -4
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +43 -9
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
- package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +5 -5
- package/esm/index.d.ts +12 -7
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LogsResponseDTO } from '../models/LogsResponseDTO.js';
|
|
2
|
+
import { RpcUsageMetricsResponseDTO } from '../models/RpcUsageMetricsResponseDTO.js';
|
|
2
3
|
import { TimeIntervalGranularityExtended } from '../models/TimeIntervalGranularityExtended.js';
|
|
3
4
|
import { UsageMetricsGroupByEnum } from '../models/UsageMetricsGroupByEnum.js';
|
|
4
5
|
import { UsageMetricsResponseDTO } from '../models/UsageMetricsResponseDTO.js';
|
|
@@ -14,17 +15,17 @@ declare class DataApiUsageMetricsService {
|
|
|
14
15
|
* @returns UsageMetricsResponseDTO Successful response
|
|
15
16
|
* @throws ApiError
|
|
16
17
|
*/
|
|
17
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
18
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
|
|
18
19
|
/**
|
|
19
20
|
* Organization ID to fetch usage metrics for
|
|
20
21
|
*/
|
|
21
22
|
orgId?: string;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* 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.
|
|
24
25
|
*/
|
|
25
26
|
startTimestamp?: number;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* 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.
|
|
28
29
|
*/
|
|
29
30
|
endTimestamp?: number;
|
|
30
31
|
/**
|
|
@@ -36,21 +37,21 @@ declare class DataApiUsageMetricsService {
|
|
|
36
37
|
*/
|
|
37
38
|
groupBy?: UsageMetricsGroupByEnum;
|
|
38
39
|
/**
|
|
39
|
-
* Filter data by
|
|
40
|
+
* Filter data by chain ID.
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
chainId?: string;
|
|
42
43
|
/**
|
|
43
|
-
* Filter data by request
|
|
44
|
+
* Filter data by request path.
|
|
44
45
|
*/
|
|
45
|
-
|
|
46
|
+
requestPath?: string;
|
|
46
47
|
/**
|
|
47
48
|
* Filter data by response status code.
|
|
48
49
|
*/
|
|
49
50
|
responseCode?: string;
|
|
50
51
|
/**
|
|
51
|
-
* Filter data by
|
|
52
|
+
* Filter data by request type.
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
requestType?: 'data' | 'rpc';
|
|
54
55
|
/**
|
|
55
56
|
* Filter data by API key ID.
|
|
56
57
|
*/
|
|
@@ -62,35 +63,35 @@ declare class DataApiUsageMetricsService {
|
|
|
62
63
|
* @returns LogsResponseDTO Successful response
|
|
63
64
|
* @throws ApiError
|
|
64
65
|
*/
|
|
65
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
66
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
|
|
66
67
|
/**
|
|
67
68
|
* Organization ID to fetch usage metrics for
|
|
68
69
|
*/
|
|
69
70
|
orgId?: string;
|
|
70
71
|
/**
|
|
71
|
-
*
|
|
72
|
+
* 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.
|
|
72
73
|
*/
|
|
73
74
|
startTimestamp?: number;
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* 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.
|
|
76
77
|
*/
|
|
77
78
|
endTimestamp?: number;
|
|
78
79
|
/**
|
|
79
|
-
* Filter data by
|
|
80
|
+
* Filter data by chain ID.
|
|
80
81
|
*/
|
|
81
|
-
|
|
82
|
+
chainId?: string;
|
|
82
83
|
/**
|
|
83
|
-
* Filter data by request
|
|
84
|
+
* Filter data by request path.
|
|
84
85
|
*/
|
|
85
|
-
|
|
86
|
+
requestPath?: string;
|
|
86
87
|
/**
|
|
87
88
|
* Filter data by response status code.
|
|
88
89
|
*/
|
|
89
90
|
responseCode?: string;
|
|
90
91
|
/**
|
|
91
|
-
* Filter data by
|
|
92
|
+
* Filter data by request type.
|
|
92
93
|
*/
|
|
93
|
-
|
|
94
|
+
requestType?: 'data' | 'rpc';
|
|
94
95
|
/**
|
|
95
96
|
* Filter data by API key ID.
|
|
96
97
|
*/
|
|
@@ -104,6 +105,50 @@ declare class DataApiUsageMetricsService {
|
|
|
104
105
|
*/
|
|
105
106
|
pageSize?: number;
|
|
106
107
|
}): CancelablePromise<LogsResponseDTO>;
|
|
108
|
+
/**
|
|
109
|
+
* Get usage metrics for the Subnet RPC
|
|
110
|
+
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
111
|
+
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
115
|
+
/**
|
|
116
|
+
* Query param for setting time interval of data aggregation.
|
|
117
|
+
*/
|
|
118
|
+
timeInterval?: string;
|
|
119
|
+
/**
|
|
120
|
+
* 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.
|
|
121
|
+
*/
|
|
122
|
+
startTimestamp?: number;
|
|
123
|
+
/**
|
|
124
|
+
* 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.
|
|
125
|
+
*/
|
|
126
|
+
endTimestamp?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Query param for the criterion used for grouping metrics
|
|
129
|
+
*/
|
|
130
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
131
|
+
/**
|
|
132
|
+
* Filter data by chain ID.
|
|
133
|
+
*/
|
|
134
|
+
chainId?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Filter data by request path.
|
|
137
|
+
*/
|
|
138
|
+
requestPath?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Filter data by response status code.
|
|
141
|
+
*/
|
|
142
|
+
responseCode?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Filter data by RPC method.
|
|
145
|
+
*/
|
|
146
|
+
rpcMethod?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Filter data by Rl Bypass API Token.
|
|
149
|
+
*/
|
|
150
|
+
rlBypassApiToken?: string;
|
|
151
|
+
}): CancelablePromise<RpcUsageMetricsResponseDTO>;
|
|
107
152
|
}
|
|
108
153
|
|
|
109
154
|
export { DataApiUsageMetricsService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,requestPath:i,responseCode:o,requestType:h,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,requestPath:i,responseCode:o,requestType:h,apiKeyId:d},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."}})}getApiLogs({orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,requestPath:n,responseCode:a,requestType:i,apiKeyId:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,requestPath:n,responseCode:a,requestType:i,apiKeyId:o,pageToken:h,pageSize:d},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."}})}getRpcUsageMetrics({timeInterval:e="day",startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,requestPath:a,responseCode:i,rpcMethod:o,rlBypassApiToken:h}){return this.httpRequest.request({method:"GET",url:"/v1/rpcUsageMetrics",query:{timeInterval:e,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,requestPath:a,responseCode:i,rpcMethod:o,rlBypassApiToken: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."}})}}export{e as DataApiUsageMetricsService};
|
|
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
|
|
|
20
20
|
*/
|
|
21
21
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
22
22
|
/**
|
|
23
|
-
* A supported evm chain id
|
|
23
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
24
24
|
*/
|
|
25
25
|
chainId: string;
|
|
26
26
|
/**
|
|
@@ -48,7 +48,7 @@ declare class EvmBalancesService {
|
|
|
48
48
|
*/
|
|
49
49
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
50
50
|
/**
|
|
51
|
-
* A supported evm chain id
|
|
51
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
52
52
|
*/
|
|
53
53
|
chainId: string;
|
|
54
54
|
/**
|
|
@@ -90,7 +90,7 @@ declare class EvmBalancesService {
|
|
|
90
90
|
*/
|
|
91
91
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
92
92
|
/**
|
|
93
|
-
* A supported evm chain id
|
|
93
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
94
94
|
*/
|
|
95
95
|
chainId: string;
|
|
96
96
|
/**
|
|
@@ -122,7 +122,7 @@ declare class EvmBalancesService {
|
|
|
122
122
|
*/
|
|
123
123
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
124
124
|
/**
|
|
125
|
-
* A supported evm chain id
|
|
125
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
126
126
|
*/
|
|
127
127
|
chainId: string;
|
|
128
128
|
/**
|
|
@@ -156,7 +156,7 @@ declare class EvmBalancesService {
|
|
|
156
156
|
*/
|
|
157
157
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
158
158
|
/**
|
|
159
|
-
* A supported evm chain id
|
|
159
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
160
160
|
*/
|
|
161
161
|
chainId: string;
|
|
162
162
|
/**
|
|
@@ -14,7 +14,7 @@ declare class EvmBlocksService {
|
|
|
14
14
|
*/
|
|
15
15
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
16
16
|
/**
|
|
17
|
-
* A supported evm chain id
|
|
17
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
18
|
*/
|
|
19
19
|
chainId: string;
|
|
20
20
|
/**
|
|
@@ -34,7 +34,7 @@ declare class EvmBlocksService {
|
|
|
34
34
|
*/
|
|
35
35
|
getBlock({ chainId, blockId, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id
|
|
37
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ApiFeature } from '../models/ApiFeature.js';
|
|
2
2
|
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
3
|
+
import { ListAddressChainsResponse } from '../models/ListAddressChainsResponse.js';
|
|
3
4
|
import { ListChainsResponse } from '../models/ListChainsResponse.js';
|
|
4
|
-
import {
|
|
5
|
+
import { Network } from '../models/Network.js';
|
|
5
6
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
7
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
8
|
|
|
@@ -16,9 +17,9 @@ declare class EvmChainsService {
|
|
|
16
17
|
*/
|
|
17
18
|
supportedChains({ network, feature, }: {
|
|
18
19
|
/**
|
|
19
|
-
* mainnet or testnet.
|
|
20
|
+
* Either mainnet or testnet/fuji.
|
|
20
21
|
*/
|
|
21
|
-
network?:
|
|
22
|
+
network?: Network;
|
|
22
23
|
/**
|
|
23
24
|
* Filter by feature.
|
|
24
25
|
*/
|
|
@@ -32,10 +33,22 @@ declare class EvmChainsService {
|
|
|
32
33
|
*/
|
|
33
34
|
getChainInfo({ chainId, }: {
|
|
34
35
|
/**
|
|
35
|
-
* A supported evm chain id
|
|
36
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
36
37
|
*/
|
|
37
38
|
chainId: string;
|
|
38
39
|
}): CancelablePromise<GetChainResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Get chains for address
|
|
42
|
+
* Gets the list of chains an address has interacted with.
|
|
43
|
+
* @returns ListAddressChainsResponse Successful response
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
getAddressChains({ address, }: {
|
|
47
|
+
/**
|
|
48
|
+
* A wallet address.
|
|
49
|
+
*/
|
|
50
|
+
address: string;
|
|
51
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
39
52
|
}
|
|
40
53
|
|
|
41
54
|
export { EvmChainsService };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature: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."}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId: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."}})}}export{e as EvmChainsService};
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature: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."}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId: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."}})}getAddressChains({address:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/address/{address}",path:{address: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."}})}}export{e as EvmChainsService};
|
|
@@ -18,7 +18,7 @@ declare class EvmContractsService {
|
|
|
18
18
|
*/
|
|
19
19
|
getContractMetadata({ chainId, address, }: {
|
|
20
20
|
/**
|
|
21
|
-
* A supported evm chain id
|
|
21
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
22
22
|
*/
|
|
23
23
|
chainId: string;
|
|
24
24
|
/**
|
|
@@ -34,7 +34,7 @@ declare class EvmContractsService {
|
|
|
34
34
|
*/
|
|
35
35
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id
|
|
37
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
|
|
|
24
24
|
*/
|
|
25
25
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
26
26
|
/**
|
|
27
|
-
* A supported evm chain id
|
|
27
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
28
28
|
*/
|
|
29
29
|
chainId: string;
|
|
30
30
|
/**
|
|
@@ -44,7 +44,7 @@ declare class EvmTransactionsService {
|
|
|
44
44
|
*/
|
|
45
45
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
46
46
|
/**
|
|
47
|
-
* A supported evm chain id
|
|
47
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
48
48
|
*/
|
|
49
49
|
chainId: string;
|
|
50
50
|
/**
|
|
@@ -68,7 +68,7 @@ declare class EvmTransactionsService {
|
|
|
68
68
|
*/
|
|
69
69
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
70
70
|
/**
|
|
71
|
-
* A supported evm chain id
|
|
71
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
72
72
|
*/
|
|
73
73
|
chainId: string;
|
|
74
74
|
/**
|
|
@@ -102,7 +102,7 @@ declare class EvmTransactionsService {
|
|
|
102
102
|
*/
|
|
103
103
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
104
104
|
/**
|
|
105
|
-
* A supported evm chain id
|
|
105
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
106
106
|
*/
|
|
107
107
|
chainId: string;
|
|
108
108
|
/**
|
|
@@ -138,7 +138,7 @@ declare class EvmTransactionsService {
|
|
|
138
138
|
*/
|
|
139
139
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
140
140
|
/**
|
|
141
|
-
* A supported evm chain id
|
|
141
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
142
142
|
*/
|
|
143
143
|
chainId: string;
|
|
144
144
|
/**
|
|
@@ -170,7 +170,7 @@ declare class EvmTransactionsService {
|
|
|
170
170
|
*/
|
|
171
171
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
172
172
|
/**
|
|
173
|
-
* A supported evm chain id
|
|
173
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
174
174
|
*/
|
|
175
175
|
chainId: string;
|
|
176
176
|
/**
|
|
@@ -202,7 +202,7 @@ declare class EvmTransactionsService {
|
|
|
202
202
|
*/
|
|
203
203
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
204
204
|
/**
|
|
205
|
-
* A supported evm chain id
|
|
205
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
206
206
|
*/
|
|
207
207
|
chainId: string;
|
|
208
208
|
/**
|
|
@@ -234,7 +234,7 @@ declare class EvmTransactionsService {
|
|
|
234
234
|
*/
|
|
235
235
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
236
236
|
/**
|
|
237
|
-
* A supported evm chain id
|
|
237
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
238
238
|
*/
|
|
239
239
|
chainId: string;
|
|
240
240
|
/**
|
|
@@ -268,7 +268,7 @@ declare class EvmTransactionsService {
|
|
|
268
268
|
*/
|
|
269
269
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
270
270
|
/**
|
|
271
|
-
* A supported evm chain id
|
|
271
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
272
272
|
*/
|
|
273
273
|
chainId: string;
|
|
274
274
|
/**
|
|
@@ -300,7 +300,7 @@ declare class EvmTransactionsService {
|
|
|
300
300
|
*/
|
|
301
301
|
getTransaction({ chainId, txHash, }: {
|
|
302
302
|
/**
|
|
303
|
-
* A supported evm chain id
|
|
303
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
304
304
|
*/
|
|
305
305
|
chainId: string;
|
|
306
306
|
/**
|
|
@@ -316,7 +316,7 @@ declare class EvmTransactionsService {
|
|
|
316
316
|
*/
|
|
317
317
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
318
318
|
/**
|
|
319
|
-
* A supported evm chain id
|
|
319
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
320
320
|
*/
|
|
321
321
|
chainId: string;
|
|
322
322
|
/**
|
|
@@ -332,7 +332,7 @@ declare class EvmTransactionsService {
|
|
|
332
332
|
*/
|
|
333
333
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
334
334
|
/**
|
|
335
|
-
* A supported evm chain id
|
|
335
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
336
336
|
*/
|
|
337
337
|
chainId: string;
|
|
338
338
|
/**
|
|
@@ -15,7 +15,7 @@ declare class NfTsService {
|
|
|
15
15
|
*/
|
|
16
16
|
reindexNft({ chainId, address, tokenId, }: {
|
|
17
17
|
/**
|
|
18
|
-
* A supported evm chain id
|
|
18
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
19
19
|
*/
|
|
20
20
|
chainId: string;
|
|
21
21
|
/**
|
|
@@ -35,7 +35,7 @@ declare class NfTsService {
|
|
|
35
35
|
*/
|
|
36
36
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
37
37
|
/**
|
|
38
|
-
* A supported evm chain id
|
|
38
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
39
|
*/
|
|
40
40
|
chainId: string;
|
|
41
41
|
/**
|
|
@@ -59,7 +59,7 @@ declare class NfTsService {
|
|
|
59
59
|
*/
|
|
60
60
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
61
61
|
/**
|
|
62
|
-
* A supported evm chain id
|
|
62
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
63
63
|
*/
|
|
64
64
|
chainId: string;
|
|
65
65
|
/**
|
|
@@ -20,7 +20,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
20
20
|
*/
|
|
21
21
|
blockchainId: BlockchainId;
|
|
22
22
|
/**
|
|
23
|
-
* Either mainnet or
|
|
23
|
+
* Either mainnet or testnet/fuji.
|
|
24
24
|
*/
|
|
25
25
|
network: Network;
|
|
26
26
|
/**
|
|
@@ -40,7 +40,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
40
40
|
*/
|
|
41
41
|
blockchainId: BlockchainId;
|
|
42
42
|
/**
|
|
43
|
-
* Either mainnet or
|
|
43
|
+
* Either mainnet or testnet/fuji.
|
|
44
44
|
*/
|
|
45
45
|
network: Network;
|
|
46
46
|
/**
|
|
@@ -68,7 +68,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
68
68
|
*/
|
|
69
69
|
blockchainId: BlockchainId;
|
|
70
70
|
/**
|
|
71
|
-
* Either mainnet or
|
|
71
|
+
* Either mainnet or testnet/fuji.
|
|
72
72
|
*/
|
|
73
73
|
network: Network;
|
|
74
74
|
/**
|
|
@@ -17,7 +17,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
17
17
|
*/
|
|
18
18
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
19
19
|
/**
|
|
20
|
-
* Either mainnet or
|
|
20
|
+
* Either mainnet or testnet/fuji.
|
|
21
21
|
*/
|
|
22
22
|
network: Network;
|
|
23
23
|
/**
|
|
@@ -49,7 +49,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
49
49
|
*/
|
|
50
50
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
51
51
|
/**
|
|
52
|
-
* Either mainnet or
|
|
52
|
+
* Either mainnet or testnet/fuji.
|
|
53
53
|
*/
|
|
54
54
|
network: Network;
|
|
55
55
|
/**
|
|
@@ -3,6 +3,7 @@ import { DelegationStatusType } from '../models/DelegationStatusType.js';
|
|
|
3
3
|
import { GetNetworkDetailsResponse } from '../models/GetNetworkDetailsResponse.js';
|
|
4
4
|
import { ListBlockchainsResponse } from '../models/ListBlockchainsResponse.js';
|
|
5
5
|
import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResponse.js';
|
|
6
|
+
import { ListSubnetOnlyValidatorsResponse } from '../models/ListSubnetOnlyValidatorsResponse.js';
|
|
6
7
|
import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
|
|
7
8
|
import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
|
|
8
9
|
import { Network } from '../models/Network.js';
|
|
@@ -30,7 +31,7 @@ declare class PrimaryNetworkService {
|
|
|
30
31
|
*/
|
|
31
32
|
blockchainId: XChainId;
|
|
32
33
|
/**
|
|
33
|
-
* Either mainnet or
|
|
34
|
+
* Either mainnet or testnet/fuji.
|
|
34
35
|
*/
|
|
35
36
|
network: Network;
|
|
36
37
|
/**
|
|
@@ -50,7 +51,7 @@ declare class PrimaryNetworkService {
|
|
|
50
51
|
*/
|
|
51
52
|
addresses: string;
|
|
52
53
|
/**
|
|
53
|
-
* Either mainnet or
|
|
54
|
+
* Either mainnet or testnet/fuji.
|
|
54
55
|
*/
|
|
55
56
|
network: Network;
|
|
56
57
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
@@ -62,7 +63,7 @@ declare class PrimaryNetworkService {
|
|
|
62
63
|
*/
|
|
63
64
|
getNetworkDetails({ network, }: {
|
|
64
65
|
/**
|
|
65
|
-
* Either mainnet or
|
|
66
|
+
* Either mainnet or testnet/fuji.
|
|
66
67
|
*/
|
|
67
68
|
network: Network;
|
|
68
69
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
@@ -74,7 +75,7 @@ declare class PrimaryNetworkService {
|
|
|
74
75
|
*/
|
|
75
76
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
76
77
|
/**
|
|
77
|
-
* Either mainnet or
|
|
78
|
+
* Either mainnet or testnet/fuji.
|
|
78
79
|
*/
|
|
79
80
|
network: Network;
|
|
80
81
|
/**
|
|
@@ -98,7 +99,7 @@ declare class PrimaryNetworkService {
|
|
|
98
99
|
*/
|
|
99
100
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
100
101
|
/**
|
|
101
|
-
* Either mainnet or
|
|
102
|
+
* Either mainnet or testnet/fuji.
|
|
102
103
|
*/
|
|
103
104
|
network: Network;
|
|
104
105
|
/**
|
|
@@ -122,7 +123,7 @@ declare class PrimaryNetworkService {
|
|
|
122
123
|
*/
|
|
123
124
|
getSubnetById({ network, subnetId, }: {
|
|
124
125
|
/**
|
|
125
|
-
* Either mainnet or
|
|
126
|
+
* Either mainnet or testnet/fuji.
|
|
126
127
|
*/
|
|
127
128
|
network: Network;
|
|
128
129
|
/**
|
|
@@ -138,7 +139,7 @@ declare class PrimaryNetworkService {
|
|
|
138
139
|
*/
|
|
139
140
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
140
141
|
/**
|
|
141
|
-
* Either mainnet or
|
|
142
|
+
* Either mainnet or testnet/fuji.
|
|
142
143
|
*/
|
|
143
144
|
network: Network;
|
|
144
145
|
/**
|
|
@@ -212,7 +213,7 @@ declare class PrimaryNetworkService {
|
|
|
212
213
|
*/
|
|
213
214
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
214
215
|
/**
|
|
215
|
-
* Either mainnet or
|
|
216
|
+
* Either mainnet or testnet/fuji.
|
|
216
217
|
*/
|
|
217
218
|
network: Network;
|
|
218
219
|
/**
|
|
@@ -244,7 +245,7 @@ declare class PrimaryNetworkService {
|
|
|
244
245
|
*/
|
|
245
246
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
246
247
|
/**
|
|
247
|
-
* Either mainnet or
|
|
248
|
+
* Either mainnet or testnet/fuji.
|
|
248
249
|
*/
|
|
249
250
|
network: Network;
|
|
250
251
|
/**
|
|
@@ -272,6 +273,39 @@ declare class PrimaryNetworkService {
|
|
|
272
273
|
*/
|
|
273
274
|
nodeIds?: string;
|
|
274
275
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
276
|
+
/**
|
|
277
|
+
* List subnet-only validators
|
|
278
|
+
* 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.
|
|
279
|
+
* @returns ListSubnetOnlyValidatorsResponse Successful response
|
|
280
|
+
* @throws ApiError
|
|
281
|
+
*/
|
|
282
|
+
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
|
|
283
|
+
/**
|
|
284
|
+
* Either mainnet or testnet/fuji.
|
|
285
|
+
*/
|
|
286
|
+
network: Network;
|
|
287
|
+
/**
|
|
288
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
289
|
+
*/
|
|
290
|
+
pageToken?: string;
|
|
291
|
+
/**
|
|
292
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
293
|
+
*/
|
|
294
|
+
pageSize?: number;
|
|
295
|
+
/**
|
|
296
|
+
* The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
|
|
297
|
+
*/
|
|
298
|
+
sovValidationId?: any;
|
|
299
|
+
includeInactiveSovs?: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
302
|
+
*/
|
|
303
|
+
nodeId?: string;
|
|
304
|
+
/**
|
|
305
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
306
|
+
*/
|
|
307
|
+
subnetId?: any;
|
|
308
|
+
}): CancelablePromise<ListSubnetOnlyValidatorsResponse>;
|
|
275
309
|
}
|
|
276
310
|
|
|
277
311
|
export { PrimaryNetworkService };
|