@avalabs/glacier-sdk 3.1.0-canary.f0648cd.0 → 3.1.0-canary.f0743b0.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.
Files changed (35) hide show
  1. package/dist/index.d.ts +394 -146
  2. package/dist/index.js +1 -1
  3. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  4. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  5. package/esm/generated/models/EvmBlock.d.ts +4 -0
  6. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  7. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  8. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  9. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  10. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  11. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  12. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  13. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  14. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  15. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  16. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
  17. package/esm/generated/models/Subnet.d.ts +4 -0
  18. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  19. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  20. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  21. package/esm/generated/services/DataApiUsageMetricsService.d.ts +72 -22
  22. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  23. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  24. package/esm/generated/services/EvmBlocksService.js +1 -1
  25. package/esm/generated/services/EvmChainsService.d.ts +67 -2
  26. package/esm/generated/services/EvmChainsService.js +1 -1
  27. package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
  28. package/esm/generated/services/EvmTransactionsService.js +1 -1
  29. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  30. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  31. package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
  32. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  33. package/esm/index.d.ts +4 -1
  34. package/esm/index.js +1 -1
  35. package/package.json +2 -2
@@ -38,11 +38,22 @@ type Erc20TokenBalance = {
38
38
  * The monetary value of the balance, if a price is available for the token.
39
39
  */
40
40
  balanceValue?: Money;
41
+ /**
42
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
43
+ */
44
+ tokenReputation: Erc20TokenBalance.tokenReputation | null;
41
45
  };
42
46
  declare namespace Erc20TokenBalance {
43
47
  enum ercType {
44
48
  ERC_20 = "ERC-20"
45
49
  }
50
+ /**
51
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
52
+ */
53
+ enum tokenReputation {
54
+ MALICIOUS = "Malicious",
55
+ BENIGN = "Benign"
56
+ }
46
57
  }
47
58
 
48
59
  export { Erc20TokenBalance };
@@ -1 +1 @@
1
- var e,r;((r=e||(e={})).ercType||(r.ercType={})).ERC_20="ERC-20";export{e as Erc20TokenBalance};
1
+ var e,t,n;((t=e||(e={})).ercType||(t.ercType={})).ERC_20="ERC-20",(n=t.tokenReputation||(t.tokenReputation={})).MALICIOUS="Malicious",n.BENIGN="Benign";export{e as Erc20TokenBalance};
@@ -1,4 +1,8 @@
1
1
  type EvmBlock = {
2
+ /**
3
+ * The EVM chain ID on which the block was created.
4
+ */
5
+ chainId: string;
2
6
  /**
3
7
  * The block number on the chain.
4
8
  */
@@ -14,6 +14,10 @@ type FullNativeTransactionDetails = {
14
14
  * The block hash identifier.
15
15
  */
16
16
  blockHash: string;
17
+ /**
18
+ * The EVM chain ID on which the transaction occured.
19
+ */
20
+ chainId: string;
17
21
  /**
18
22
  * The index at which the transaction occured in the block (0-indexed).
19
23
  */
@@ -1,4 +1,8 @@
1
1
  type GetEvmBlockResponse = {
2
+ /**
3
+ * The EVM chain ID on which the block was created.
4
+ */
5
+ chainId: string;
2
6
  /**
3
7
  * The block number on the chain.
4
8
  */
@@ -1,10 +1,15 @@
1
1
  import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc1155BalancesResponse = {
4
5
  /**
5
6
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-1155 token balances for the address.
10
15
  */
@@ -1,10 +1,15 @@
1
1
  import { Erc20TokenBalance } from './Erc20TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc20BalancesResponse = {
4
5
  /**
5
6
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-20 token balances for the address.
10
15
  */
@@ -1,10 +1,15 @@
1
1
  import { Erc721TokenBalance } from './Erc721TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc721BalancesResponse = {
4
5
  /**
5
6
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-721 token balances for the address.
10
15
  */
@@ -14,6 +14,10 @@ type NativeTransaction = {
14
14
  * The block hash identifier.
15
15
  */
16
16
  blockHash: string;
17
+ /**
18
+ * The EVM chain ID on which the transaction occured.
19
+ */
20
+ chainId: string;
17
21
  /**
18
22
  * The index at which the transaction occured in the block (0-indexed).
19
23
  */
@@ -0,0 +1,9 @@
1
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
2
+ REQUEST_PATH = "requestPath",
3
+ RESPONSE_CODE = "responseCode",
4
+ COUNTRY = "country",
5
+ CONTINENT = "continent",
6
+ USER_AGENT = "userAgent"
7
+ }
8
+
9
+ export { PrimaryNetworkRpcMetricsGroupByEnum };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.COUNTRY="country",e.CONTINENT="continent",e.USER_AGENT="userAgent",e))(e||{});export{e as PrimaryNetworkRpcMetricsGroupByEnum};
@@ -0,0 +1,7 @@
1
+ declare enum RpcUsageMetricsGroupByEnum {
2
+ RPC_METHOD = "rpcMethod",
3
+ RESPONSE_CODE = "responseCode",
4
+ RL_BYPASS_TOKEN = "rlBypassToken"
5
+ }
6
+
7
+ export { RpcUsageMetricsGroupByEnum };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.RPC_METHOD="rpcMethod",e.RESPONSE_CODE="responseCode",e.RL_BYPASS_TOKEN="rlBypassToken",e))(e||{});export{e as RpcUsageMetricsGroupByEnum};
@@ -23,6 +23,10 @@ type RpcUsageMetricsValueAggregated = {
23
23
  * The number of invalid requests
24
24
  */
25
25
  invalidRequests: number;
26
+ /**
27
+ * The number of API credits wasted on invalid requests
28
+ */
29
+ apiCreditsWasted: number;
26
30
  /**
27
31
  * Column name used for data aggregation
28
32
  */
@@ -29,6 +29,10 @@ type Subnet = {
29
29
  * Whether the subnet is an L1 or not.
30
30
  */
31
31
  isL1: boolean;
32
+ /**
33
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
34
+ */
35
+ l1ConversionTransactionHash?: string;
32
36
  /**
33
37
  * L1 validator manager details.
34
38
  */
@@ -0,0 +1,8 @@
1
+ declare enum SubnetRpcTimeIntervalGranularity {
2
+ HOURLY = "hourly",
3
+ DAILY = "daily",
4
+ WEEKLY = "weekly",
5
+ MONTHLY = "monthly"
6
+ }
7
+
8
+ export { SubnetRpcTimeIntervalGranularity };
@@ -0,0 +1 @@
1
+ var l=(l=>(l.HOURLY="hourly",l.DAILY="daily",l.WEEKLY="weekly",l.MONTHLY="monthly",l))(l||{});export{l as SubnetRpcTimeIntervalGranularity};
@@ -1,18 +1,18 @@
1
1
  import { RpcMetrics } from './RpcMetrics.js';
2
2
 
3
- type RpcUsageMetricsResponseDTO = {
3
+ type SubnetRpcUsageMetricsResponseDTO = {
4
4
  /**
5
5
  * Duration in which the metrics value is aggregated
6
6
  */
7
7
  aggregateDuration: string;
8
- /**
9
- * ChainId for which the metrics are aggregated
10
- */
11
- chainId: string;
12
8
  /**
13
9
  * Metrics values
14
10
  */
15
11
  metrics: Array<RpcMetrics>;
12
+ /**
13
+ * ChainId for which the metrics are aggregated
14
+ */
15
+ chainId: string;
16
16
  };
17
17
 
18
- export { RpcUsageMetricsResponseDTO };
18
+ export { SubnetRpcUsageMetricsResponseDTO };
@@ -1,5 +1,9 @@
1
1
  import { LogsResponseDTO } from '../models/LogsResponseDTO.js';
2
- import { RpcUsageMetricsResponseDTO } from '../models/RpcUsageMetricsResponseDTO.js';
2
+ import { Network } from '../models/Network.js';
3
+ import { PrimaryNetworkRpcMetricsGroupByEnum } from '../models/PrimaryNetworkRpcMetricsGroupByEnum.js';
4
+ import { RpcUsageMetricsGroupByEnum } from '../models/RpcUsageMetricsGroupByEnum.js';
5
+ import { SubnetRpcTimeIntervalGranularity } from '../models/SubnetRpcTimeIntervalGranularity.js';
6
+ import { SubnetRpcUsageMetricsResponseDTO } from '../models/SubnetRpcUsageMetricsResponseDTO.js';
3
7
  import { TimeIntervalGranularityExtended } from '../models/TimeIntervalGranularityExtended.js';
4
8
  import { UsageMetricsGroupByEnum } from '../models/UsageMetricsGroupByEnum.js';
5
9
  import { UsageMetricsResponseDTO } from '../models/UsageMetricsResponseDTO.js';
@@ -15,7 +19,7 @@ declare class DataApiUsageMetricsService {
15
19
  * @returns UsageMetricsResponseDTO Successful response
16
20
  * @throws ApiError
17
21
  */
18
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
22
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
19
23
  /**
20
24
  * Organization ID to fetch usage metrics for
21
25
  */
@@ -40,10 +44,6 @@ declare class DataApiUsageMetricsService {
40
44
  * Filter data by chain ID.
41
45
  */
42
46
  chainId?: string;
43
- /**
44
- * Filter data by request path.
45
- */
46
- requestPath?: string;
47
47
  /**
48
48
  * Filter data by response status code.
49
49
  */
@@ -56,6 +56,10 @@ declare class DataApiUsageMetricsService {
56
56
  * Filter data by API key ID.
57
57
  */
58
58
  apiKeyId?: string;
59
+ /**
60
+ * Filter data by request path.
61
+ */
62
+ requestPath?: string;
59
63
  }): CancelablePromise<UsageMetricsResponseDTO>;
60
64
  /**
61
65
  * Get logs for requests made by client
@@ -63,7 +67,7 @@ declare class DataApiUsageMetricsService {
63
67
  * @returns LogsResponseDTO Successful response
64
68
  * @throws ApiError
65
69
  */
66
- getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
70
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
67
71
  /**
68
72
  * Organization ID to fetch usage metrics for
69
73
  */
@@ -80,10 +84,6 @@ declare class DataApiUsageMetricsService {
80
84
  * Filter data by chain ID.
81
85
  */
82
86
  chainId?: string;
83
- /**
84
- * Filter data by request path.
85
- */
86
- requestPath?: string;
87
87
  /**
88
88
  * Filter data by response status code.
89
89
  */
@@ -96,6 +96,10 @@ declare class DataApiUsageMetricsService {
96
96
  * Filter data by API key ID.
97
97
  */
98
98
  apiKeyId?: string;
99
+ /**
100
+ * Filter data by request path.
101
+ */
102
+ requestPath?: string;
99
103
  /**
100
104
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
101
105
  */
@@ -107,15 +111,16 @@ declare class DataApiUsageMetricsService {
107
111
  }): CancelablePromise<LogsResponseDTO>;
108
112
  /**
109
113
  * 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
114
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
115
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
112
116
  * @throws ApiError
113
117
  */
114
- getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
118
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
115
119
  /**
116
- * Query param for setting time interval of data aggregation.
120
+ * Time interval granularity for data aggregation for subnet
121
+ * rpc metrics
117
122
  */
118
- timeInterval?: string;
123
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
119
124
  /**
120
125
  * 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
126
  */
@@ -127,15 +132,11 @@ declare class DataApiUsageMetricsService {
127
132
  /**
128
133
  * Query param for the criterion used for grouping metrics
129
134
  */
130
- groupBy?: UsageMetricsGroupByEnum;
135
+ groupBy?: RpcUsageMetricsGroupByEnum;
131
136
  /**
132
137
  * Filter data by chain ID.
133
138
  */
134
139
  chainId?: string;
135
- /**
136
- * Filter data by request path.
137
- */
138
- requestPath?: string;
139
140
  /**
140
141
  * Filter data by response status code.
141
142
  */
@@ -148,7 +149,56 @@ declare class DataApiUsageMetricsService {
148
149
  * Filter data by Rl Bypass API Token.
149
150
  */
150
151
  rlBypassApiToken?: string;
151
- }): CancelablePromise<RpcUsageMetricsResponseDTO>;
152
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
153
+ /**
154
+ * Get usage metrics for the Primary Network RPC
155
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
156
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
157
+ * @throws ApiError
158
+ */
159
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
160
+ /**
161
+ * Either mainnet or testnet/fuji.
162
+ */
163
+ network: Network;
164
+ /**
165
+ * Time interval granularity for data aggregation for subnet
166
+ * rpc metrics
167
+ */
168
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
169
+ /**
170
+ * 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.
171
+ */
172
+ startTimestamp?: number;
173
+ /**
174
+ * 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.
175
+ */
176
+ endTimestamp?: number;
177
+ /**
178
+ * Query param for the criterion used for grouping metrics
179
+ */
180
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
181
+ /**
182
+ * Filter data by response status code.
183
+ */
184
+ responseCode?: string;
185
+ /**
186
+ * Filter data by request path.
187
+ */
188
+ requestPath?: string;
189
+ /**
190
+ * Filter data by Country.
191
+ */
192
+ country?: string;
193
+ /**
194
+ * Filter data by Continent.
195
+ */
196
+ continent?: string;
197
+ /**
198
+ * Filter data by User Agent.
199
+ */
200
+ userAgent?: string;
201
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
152
202
  }
153
203
 
154
204
  export { DataApiUsageMetricsService };
@@ -1 +1 @@
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};
1
+ class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,responseCode:i,requestType:o,apiKeyId:h,requestPath:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,responseCode:i,requestType:o,apiKeyId:h,requestPath: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,responseCode:n,requestType:a,apiKeyId:i,requestPath:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,responseCode:n,requestType:a,apiKeyId:i,requestPath: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,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,responseCode:a,rpcMethod:i,rlBypassApiToken:o}){return this.httpRequest.request({method:"GET",url:"/v1/rpcUsageMetrics",query:{timeInterval:e,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,responseCode:a,rpcMethod:i,rlBypassApiToken: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."}})}getPrimaryNetworkRpcUsageMetrics({network:e,timeInterval:r,startTimestamp:t,endTimestamp:s,groupBy:n,responseCode:a,requestPath:i,country:o,continent:h,userAgent:d}){return this.httpRequest.request({method:"GET",url:"/v1/primaryNetworkRpcUsageMetrics",query:{timeInterval:r,startTimestamp:t,endTimestamp:s,groupBy:n,responseCode:a,requestPath:i,country:o,continent:h,userAgent:d,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."}})}}export{e as DataApiUsageMetricsService};
@@ -1,11 +1,32 @@
1
1
  import { GetEvmBlockResponse } from '../models/GetEvmBlockResponse.js';
2
2
  import { ListEvmBlocksResponse } from '../models/ListEvmBlocksResponse.js';
3
+ import { Network } from '../models/Network.js';
3
4
  import { CancelablePromise } from '../core/CancelablePromise.js';
4
5
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
6
 
6
7
  declare class EvmBlocksService {
7
8
  readonly httpRequest: BaseHttpRequest;
8
9
  constructor(httpRequest: BaseHttpRequest);
10
+ /**
11
+ * List latest blocks across all supported EVM chains
12
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
13
+ * @returns ListEvmBlocksResponse Successful response
14
+ * @throws ApiError
15
+ */
16
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
17
+ /**
18
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
19
+ */
20
+ pageToken?: string;
21
+ /**
22
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
23
+ */
24
+ pageSize?: number;
25
+ /**
26
+ * Either mainnet or testnet/fuji.
27
+ */
28
+ network?: Network;
29
+ }): CancelablePromise<ListEvmBlocksResponse>;
9
30
  /**
10
31
  * List latest blocks
11
32
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}getLatestBlocks({chainId:e,pageToken:r,pageSize:t=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks",path:{chainId:e},query:{pageToken:r,pageSize: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."}})}getBlock({chainId:e,blockId:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}",path:{chainId:e,blockId: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."}})}}export{e as EvmBlocksService};
1
+ class e{constructor(e){this.httpRequest=e}listLatestBlocksAllChains({pageToken:e,pageSize:r=10,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/blocks",query:{pageToken:e,pageSize: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."}})}getLatestBlocks({chainId:e,pageToken:r,pageSize:t=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks",path:{chainId:e},query:{pageToken:r,pageSize: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."}})}getBlock({chainId:e,blockId:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}",path:{chainId:e,blockId: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."}})}}export{e as EvmBlocksService};
@@ -2,13 +2,28 @@ import { ApiFeature } from '../models/ApiFeature.js';
2
2
  import { GetChainResponse } from '../models/GetChainResponse.js';
3
3
  import { ListAddressChainsResponse } from '../models/ListAddressChainsResponse.js';
4
4
  import { ListChainsResponse } from '../models/ListChainsResponse.js';
5
+ import { ListEvmBlocksResponse } from '../models/ListEvmBlocksResponse.js';
6
+ import { ListNativeTransactionsResponse } from '../models/ListNativeTransactionsResponse.js';
5
7
  import { Network } from '../models/Network.js';
8
+ import { TransactionStatus } from '../models/TransactionStatus.js';
6
9
  import { CancelablePromise } from '../core/CancelablePromise.js';
7
10
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
8
11
 
9
12
  declare class EvmChainsService {
10
13
  readonly httpRequest: BaseHttpRequest;
11
14
  constructor(httpRequest: BaseHttpRequest);
15
+ /**
16
+ * List all chains associated with a given address
17
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
18
+ * @returns ListAddressChainsResponse Successful response
19
+ * @throws ApiError
20
+ */
21
+ listAddressChains({ address, }: {
22
+ /**
23
+ * A wallet address.
24
+ */
25
+ address: string;
26
+ }): CancelablePromise<ListAddressChainsResponse>;
12
27
  /**
13
28
  * List chains
14
29
  * Lists the supported EVM-compatible chains. Filterable by network.
@@ -38,8 +53,10 @@ declare class EvmChainsService {
38
53
  chainId: string;
39
54
  }): CancelablePromise<GetChainResponse>;
40
55
  /**
41
- * Get chains for address
42
- * Gets the list of chains an address has interacted with.
56
+ * @deprecated
57
+ * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
58
+ *
59
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
43
60
  * @returns ListAddressChainsResponse Successful response
44
61
  * @throws ApiError
45
62
  */
@@ -49,6 +66,54 @@ declare class EvmChainsService {
49
66
  */
50
67
  address: string;
51
68
  }): CancelablePromise<ListAddressChainsResponse>;
69
+ /**
70
+ * @deprecated
71
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
72
+ *
73
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
74
+ * @returns ListNativeTransactionsResponse Successful response
75
+ * @throws ApiError
76
+ */
77
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
78
+ /**
79
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
80
+ */
81
+ pageToken?: string;
82
+ /**
83
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
84
+ */
85
+ pageSize?: number;
86
+ /**
87
+ * Either mainnet or testnet/fuji.
88
+ */
89
+ network?: Network;
90
+ /**
91
+ * A status filter for listed transactions.
92
+ */
93
+ status?: TransactionStatus;
94
+ }): CancelablePromise<ListNativeTransactionsResponse>;
95
+ /**
96
+ * @deprecated
97
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
98
+ *
99
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
100
+ * @returns ListEvmBlocksResponse Successful response
101
+ * @throws ApiError
102
+ */
103
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
104
+ /**
105
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
106
+ */
107
+ pageToken?: string;
108
+ /**
109
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
110
+ */
111
+ pageSize?: number;
112
+ /**
113
+ * Either mainnet or testnet/fuji.
114
+ */
115
+ network?: Network;
116
+ }): CancelablePromise<ListEvmBlocksResponse>;
52
117
  }
53
118
 
54
119
  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."}})}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};
1
+ class e{constructor(e){this.httpRequest=e}listAddressChains({address:e}){return this.httpRequest.request({method:"GET",url:"/v1/address/{address}/chains",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."}})}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."}})}listAllLatestTransactions({pageToken:e,pageSize:r=10,network:t,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/allTransactions",query:{pageToken:e,pageSize:r,network:t,status: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."}})}listAllLatestBlocks({pageToken:e,pageSize:r=10,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/allBlocks",query:{pageToken:e,pageSize: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."}})}}export{e as EvmChainsService};