@avalabs/glacier-sdk 3.1.0-canary.9180fa3.0 → 3.1.0-canary.92a00bd.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 (46) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +654 -29
  3. package/esm/generated/Glacier.js +1 -1
  4. package/esm/generated/core/OpenAPI.js +1 -1
  5. package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
  6. package/esm/generated/models/Blockchain.d.ts +5 -3
  7. package/esm/generated/models/BlockchainInfo.d.ts +3 -1
  8. package/esm/generated/models/Erc1155Transfer.d.ts +5 -1
  9. package/esm/generated/models/Erc20TokenV2.d.ts +47 -0
  10. package/esm/generated/models/Erc20TokenV2.js +1 -0
  11. package/esm/generated/models/Erc20Transfer.d.ts +5 -1
  12. package/esm/generated/models/Erc20TransferDetailsV2.d.ts +12 -0
  13. package/esm/generated/models/Erc721Transfer.d.ts +5 -1
  14. package/esm/generated/models/EvmBlock.d.ts +9 -1
  15. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  16. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  17. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  18. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  19. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  20. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  21. package/esm/generated/models/FullNativeTransactionDetails.d.ts +9 -1
  22. package/esm/generated/models/GetEvmBlockResponse.d.ts +9 -1
  23. package/esm/generated/models/InternalTransaction.d.ts +5 -1
  24. package/esm/generated/models/LastActivityTimestamp.d.ts +29 -0
  25. package/esm/generated/models/ListTransactionDetailsResponseV2.d.ts +11 -0
  26. package/esm/generated/models/NativeTransaction.d.ts +9 -1
  27. package/esm/generated/models/PChainTransaction.d.ts +1 -1
  28. package/esm/generated/models/PChainUtxo.d.ts +4 -0
  29. package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
  30. package/esm/generated/models/SignatureAggregatorRequest.d.ts +21 -1
  31. package/esm/generated/models/TransactionDetailsV2.d.ts +30 -0
  32. package/esm/generated/models/Utxo.d.ts +4 -0
  33. package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
  34. package/esm/generated/models/UtxosSortByOption.js +1 -0
  35. package/esm/generated/services/AvaxSupplyService.d.ts +3 -2
  36. package/esm/generated/services/EvmBlocksService.d.ts +1 -1
  37. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  38. package/esm/generated/services/EvmTransactionsService.d.ts +41 -1
  39. package/esm/generated/services/EvmTransactionsService.js +1 -1
  40. package/esm/generated/services/HealthCheckService.d.ts +9 -2
  41. package/esm/generated/services/HealthCheckService.js +1 -1
  42. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +94 -1
  43. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  44. package/esm/index.d.ts +14 -0
  45. package/esm/index.js +1 -1
  46. package/package.json +2 -2
@@ -1,8 +1,28 @@
1
1
  type SignatureAggregatorRequest = {
2
- message: string;
2
+ /**
3
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
4
+ */
5
+ message?: string;
6
+ /**
7
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
8
+ */
3
9
  justification?: string;
10
+ /**
11
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
12
+ */
4
13
  signingSubnetId?: string;
14
+ /**
15
+ * Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
16
+ */
5
17
  quorumPercentage?: number;
18
+ /**
19
+ * Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
20
+ */
21
+ quorumPercentageBuffer?: number;
22
+ /**
23
+ * Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
24
+ */
25
+ pChainHeight?: number;
6
26
  };
7
27
 
8
28
  export type { SignatureAggregatorRequest };
@@ -0,0 +1,30 @@
1
+ import { Erc1155TransferDetails } from './Erc1155TransferDetails.js';
2
+ import { Erc20TransferDetailsV2 } from './Erc20TransferDetailsV2.js';
3
+ import { Erc721TransferDetails } from './Erc721TransferDetails.js';
4
+ import { InternalTransactionDetails } from './InternalTransactionDetails.js';
5
+ import { NativeTransaction } from './NativeTransaction.js';
6
+
7
+ type TransactionDetailsV2 = {
8
+ /**
9
+ * The native (top-level) transaction details.
10
+ */
11
+ nativeTransaction: NativeTransaction;
12
+ /**
13
+ * The list of ERC-20 transfers.
14
+ */
15
+ erc20Transfers?: Array<Erc20TransferDetailsV2>;
16
+ /**
17
+ * The list of ERC-721 transfers.
18
+ */
19
+ erc721Transfers?: Array<Erc721TransferDetails>;
20
+ /**
21
+ * The list of ERC-1155 transfers.
22
+ */
23
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
24
+ /**
25
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
26
+ */
27
+ internalTransactions?: Array<InternalTransactionDetails>;
28
+ };
29
+
30
+ export type { TransactionDetailsV2 };
@@ -23,6 +23,10 @@ type Utxo = {
23
23
  * UTXO ID for this output.
24
24
  */
25
25
  utxoId: string;
26
+ /**
27
+ * The bytes of the UTXO
28
+ */
29
+ utxoBytes?: string;
26
30
  /**
27
31
  * Unix timestamp in seconds at which this output was consumed.
28
32
  */
@@ -0,0 +1,6 @@
1
+ declare enum UtxosSortByOption {
2
+ TIMESTAMP = "timestamp",
3
+ AMOUNT = "amount"
4
+ }
5
+
6
+ export { UtxosSortByOption };
@@ -0,0 +1 @@
1
+ var t=(t=>(t.TIMESTAMP="timestamp",t.AMOUNT="amount",t))(t||{});export{t as UtxosSortByOption};
@@ -1,3 +1,4 @@
1
+ import { AvaxSupplyResponse } from '../models/AvaxSupplyResponse.js';
1
2
  import { CancelablePromise } from '../core/CancelablePromise.js';
2
3
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
3
4
 
@@ -7,10 +8,10 @@ declare class AvaxSupplyService {
7
8
  /**
8
9
  * Get AVAX supply information
9
10
  * Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
10
- * @returns void
11
+ * @returns AvaxSupplyResponse Successful response
11
12
  * @throws ApiError
12
13
  */
13
- getAvaxSupply(): CancelablePromise<void>;
14
+ getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
14
15
  }
15
16
 
16
17
  export { AvaxSupplyService };
@@ -9,7 +9,7 @@ declare class EvmBlocksService {
9
9
  constructor(httpRequest: BaseHttpRequest);
10
10
  /**
11
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.
12
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
13
13
  * @returns ListEvmBlocksResponse Successful response
14
14
  * @throws ApiError
15
15
  */
@@ -14,7 +14,7 @@ declare class EvmChainsService {
14
14
  constructor(httpRequest: BaseHttpRequest);
15
15
  /**
16
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.
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
18
  * @returns ListAddressChainsResponse Successful response
19
19
  * @throws ApiError
20
20
  */
@@ -7,6 +7,7 @@ import { ListErc721TransactionsResponse } from '../models/ListErc721Transactions
7
7
  import { ListInternalTransactionsResponse } from '../models/ListInternalTransactionsResponse.js';
8
8
  import { ListNativeTransactionsResponse } from '../models/ListNativeTransactionsResponse.js';
9
9
  import { ListTransactionDetailsResponse } from '../models/ListTransactionDetailsResponse.js';
10
+ import { ListTransactionDetailsResponseV2 } from '../models/ListTransactionDetailsResponseV2.js';
10
11
  import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
11
12
  import { Network } from '../models/Network.js';
12
13
  import { SortOrder } from '../models/SortOrder.js';
@@ -19,7 +20,7 @@ declare class EvmTransactionsService {
19
20
  constructor(httpRequest: BaseHttpRequest);
20
21
  /**
21
22
  * List the latest transactions across all supported EVM chains
22
- * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
23
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
23
24
  * @returns ListNativeTransactionsResponse Successful response
24
25
  * @throws ApiError
25
26
  */
@@ -155,6 +156,45 @@ declare class EvmTransactionsService {
155
156
  */
156
157
  sortOrder?: SortOrder;
157
158
  }): CancelablePromise<ListTransactionDetailsResponse>;
159
+ /**
160
+ * List transactions v2
161
+ * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers (with token reputation), ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
162
+ *
163
+ * Filterable by block ranges.
164
+ * @returns ListTransactionDetailsResponseV2 Successful response
165
+ * @throws ApiError
166
+ */
167
+ listTransactionsV2({ chainId, address, pageToken, pageSize, startBlock, endBlock, filterSpamTokens, sortOrder, }: {
168
+ /**
169
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
170
+ */
171
+ chainId: string;
172
+ /**
173
+ * A wallet address.
174
+ */
175
+ address: string;
176
+ /**
177
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
178
+ */
179
+ pageToken?: string;
180
+ /**
181
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
182
+ */
183
+ pageSize?: number;
184
+ /**
185
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
186
+ */
187
+ startBlock?: number;
188
+ /**
189
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
190
+ */
191
+ endBlock?: number;
192
+ filterSpamTokens?: boolean;
193
+ /**
194
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
195
+ */
196
+ sortOrder?: SortOrder;
197
+ }): CancelablePromise<ListTransactionDetailsResponseV2>;
158
198
  /**
159
199
  * List native transactions
160
200
  * Lists native transactions for an address. Filterable by block range.
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}listLatestTransactionsAllChains({pageToken:e,pageSize:r=10,network:t,status:n}){return this.httpRequest.request({method:"GET",url:"/v1/transactions",query:{pageToken:e,pageSize:r,network:t,status:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getDeploymentTransaction({chainId:e,address:r,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:r},query:{currency: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."}})}listContractDeployments({chainId:e,address:r,pageToken:t,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:r},query:{pageToken:t,pageSize:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTransfers({chainId:e,address:r,startBlock:t,endBlock:n,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:r},query:{startBlock:t,endBlock:n,pageToken:s,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTransactions({chainId:e,address:r,pageToken:t,pageSize:n=10,startBlock:s,endBlock:a,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:r},query:{pageToken:t,pageSize:n,startBlock:s,endBlock:a,sortOrder:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listNativeTransactions({chainId:e,address:r,startBlock:t,endBlock:n,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:r},query:{startBlock:t,endBlock:n,pageToken:s,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc20Transactions({chainId:e,address:r,startBlock:t,endBlock:n,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:r},query:{startBlock:t,endBlock:n,pageToken:s,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc721Transactions({chainId:e,address:r,startBlock:t,endBlock:n,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:r},query:{startBlock:t,endBlock:n,pageToken:s,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc1155Transactions({chainId:e,address:r,startBlock:t,endBlock:n,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:r},query:{startBlock:t,endBlock:n,pageToken:s,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listInternalTransactions({chainId:e,address:r,startBlock:t,endBlock:n,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:r},query:{startBlock:t,endBlock:n,pageToken:s,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getTransaction({chainId:e,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getTransactionsForBlock({chainId:e,blockId:r,pageToken:t,pageSize:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:r},query:{pageToken:t,pageSize:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listLatestTransactions({chainId:e,pageToken:r,pageSize:t=10,status:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:r,pageSize:t,status:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as EvmTransactionsService};
1
+ class e{constructor(e){this.httpRequest=e}listLatestTransactionsAllChains({pageToken:e,pageSize:r=10,network:t,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/transactions",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."}})}getDeploymentTransaction({chainId:e,address:r,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:r},query:{currency: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."}})}listContractDeployments({chainId:e,address:r,pageToken:t,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:r},query:{pageToken:t,pageSize: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."}})}listTransfers({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTransactions({chainId:e,address:r,pageToken:t,pageSize:s=10,startBlock:n,endBlock:a,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s,startBlock:n,endBlock:a,sortOrder:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTransactionsV2({chainId:e,address:r,pageToken:t,pageSize:s=10,startBlock:n,endBlock:a,filterSpamTokens:i,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v2/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s,startBlock:n,endBlock:a,filterSpamTokens:i,sortOrder:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listNativeTransactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc20Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc721Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc1155Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listInternalTransactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getTransaction({chainId:e,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getTransactionsForBlock({chainId:e,blockId:r,pageToken:t,pageSize:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:r},query:{pageToken:t,pageSize: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."}})}listLatestTransactions({chainId:e,pageToken:r,pageSize:t=10,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:r,pageSize: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."}})}}export{e as EvmTransactionsService};
@@ -7,11 +7,18 @@ declare class HealthCheckService {
7
7
  constructor(httpRequest: BaseHttpRequest);
8
8
  /**
9
9
  * Get the health of the service
10
- * Check the health of the service.
11
- * @returns HealthCheckResultDto The health of the service
10
+ * Check the health of the service. This checks the read and write health of the database and cache.
11
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
12
12
  * @throws ApiError
13
13
  */
14
14
  dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
15
+ /**
16
+ * Get the liveliness of the service (reads only)
17
+ * Check the liveliness of the service (reads only).
18
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
19
+ * @throws ApiError
20
+ */
21
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
15
22
  }
16
23
 
17
24
  export { HealthCheckService };
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}dataHealthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",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 HealthCheckService};
1
+ class e{constructor(e){this.httpRequest=e}dataHealthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",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."}})}liveCheck(){return this.httpRequest.request({method:"GET",url:"/v1/live-check",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 HealthCheckService};
@@ -1,8 +1,11 @@
1
1
  import { BlockchainId } from '../models/BlockchainId.js';
2
+ import { LastActivityTimestamp } from '../models/LastActivityTimestamp.js';
2
3
  import { ListPChainUtxosResponse } from '../models/ListPChainUtxosResponse.js';
3
4
  import { ListUtxosResponse } from '../models/ListUtxosResponse.js';
4
5
  import { Network } from '../models/Network.js';
6
+ import { PrimaryNetworkAddressesBodyDto } from '../models/PrimaryNetworkAddressesBodyDto.js';
5
7
  import { SortOrder } from '../models/SortOrder.js';
8
+ import { UtxosSortByOption } from '../models/UtxosSortByOption.js';
6
9
  import { CancelablePromise } from '../core/CancelablePromise.js';
7
10
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
8
11
 
@@ -15,7 +18,7 @@ declare class PrimaryNetworkUtxOsService {
15
18
  * @returns any Successful response
16
19
  * @throws ApiError
17
20
  */
18
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
21
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
19
22
  /**
20
23
  * A primary network blockchain id or alias.
21
24
  */
@@ -40,15 +43,105 @@ declare class PrimaryNetworkUtxOsService {
40
43
  * Asset ID for any asset (only applicable X-Chain)
41
44
  */
42
45
  assetId?: string;
46
+ /**
47
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
48
+ */
49
+ minUtxoAmount?: number;
50
+ /**
51
+ * Boolean filter to include spent UTXOs.
52
+ */
53
+ includeSpent?: boolean;
54
+ /**
55
+ * Which property to sort by, in conjunction with sortOrder.
56
+ */
57
+ sortBy?: UtxosSortByOption;
58
+ /**
59
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
60
+ */
61
+ sortOrder?: SortOrder;
62
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
63
+ /**
64
+ * List UTXOs v2 - Supports querying for more addresses
65
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
66
+ * @returns any Successful response
67
+ * @throws ApiError
68
+ */
69
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
70
+ /**
71
+ * A primary network blockchain id or alias.
72
+ */
73
+ blockchainId: BlockchainId;
74
+ /**
75
+ * Either mainnet or testnet/fuji.
76
+ */
77
+ network: Network;
78
+ requestBody: PrimaryNetworkAddressesBodyDto;
79
+ /**
80
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
81
+ */
82
+ pageToken?: string;
83
+ /**
84
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
85
+ */
86
+ pageSize?: number;
87
+ /**
88
+ * Asset ID for any asset (only applicable X-Chain)
89
+ */
90
+ assetId?: string;
91
+ /**
92
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
93
+ */
94
+ minUtxoAmount?: number;
43
95
  /**
44
96
  * Boolean filter to include spent UTXOs.
45
97
  */
46
98
  includeSpent?: boolean;
99
+ /**
100
+ * Which property to sort by, in conjunction with sortOrder.
101
+ */
102
+ sortBy?: UtxosSortByOption;
47
103
  /**
48
104
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
49
105
  */
50
106
  sortOrder?: SortOrder;
51
107
  }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
108
+ /**
109
+ * Get last activity timestamp by addresses
110
+ * Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains.
111
+ * @returns any Successful response
112
+ * @throws ApiError
113
+ */
114
+ getLastActivityTimestampByAddresses({ blockchainId, network, addresses, }: {
115
+ /**
116
+ * A primary network blockchain id or alias.
117
+ */
118
+ blockchainId: BlockchainId;
119
+ /**
120
+ * Either mainnet or testnet/fuji.
121
+ */
122
+ network: Network;
123
+ /**
124
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
125
+ */
126
+ addresses?: string;
127
+ }): CancelablePromise<LastActivityTimestamp>;
128
+ /**
129
+ * Get last activity timestamp by addresses v2
130
+ * Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains. V2 route supports querying for more addresses.
131
+ * @returns any Successful response
132
+ * @throws ApiError
133
+ */
134
+ getLastActivityTimestampByAddressesV2({ blockchainId, network, requestBody, }: {
135
+ /**
136
+ * A primary network blockchain id or alias.
137
+ */
138
+ blockchainId: BlockchainId;
139
+ /**
140
+ * Either mainnet or testnet/fuji.
141
+ */
142
+ network: Network;
143
+ requestBody: PrimaryNetworkAddressesBodyDto;
144
+ }): CancelablePromise<LastActivityTimestamp>;
52
145
  }
53
146
 
54
147
  export { PrimaryNetworkUtxOsService };
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:s,pageSize:n=10,assetId:a,includeSpent:i,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{addresses:t,pageToken:s,pageSize:n,assetId:a,includeSpent:i,sortOrder:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkUtxOsService};
1
+ class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:s,pageSize:n=10,assetId:i,minUtxoAmount:a,includeSpent:o,sortBy:h,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{addresses:t,pageToken:s,pageSize:n,assetId:i,minUtxoAmount:a,includeSpent:o,sortBy:h,sortOrder: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."}})}getUtxosByAddressesV2({blockchainId:e,network:r,requestBody:t,pageToken:s,pageSize:n=10,assetId:i,minUtxoAmount:a,includeSpent:o,sortBy:h,sortOrder:d}){return this.httpRequest.request({method:"POST",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{pageToken:s,pageSize:n,assetId:i,minUtxoAmount:a,includeSpent:o,sortBy:h,sortOrder:d},body:t,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getLastActivityTimestampByAddresses({blockchainId:e,network:r,addresses:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/lastActivityTimestampByAddresses",path:{blockchainId:e,network:r},query:{addresses: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."}})}getLastActivityTimestampByAddressesV2({blockchainId:e,network:r,requestBody:t}){return this.httpRequest.request({method:"POST",url:"/v1/networks/{network}/blockchains/{blockchainId}/lastActivityTimestampByAddresses",path:{blockchainId:e,network:r},body:t,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkUtxOsService};
package/esm/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export { AggregatedAssetAmount } from './generated/models/AggregatedAssetAmount.
14
14
  export { ApiFeature } from './generated/models/ApiFeature.js';
15
15
  export { AssetAmount } from './generated/models/AssetAmount.js';
16
16
  export { AssetWithPriceInfo } from './generated/models/AssetWithPriceInfo.js';
17
+ export { AvaxSupplyResponse } from './generated/models/AvaxSupplyResponse.js';
17
18
  export { BadGateway } from './generated/models/BadGateway.js';
18
19
  export { BadRequest } from './generated/models/BadRequest.js';
19
20
  export { BalanceOwner } from './generated/models/BalanceOwner.js';
@@ -58,8 +59,10 @@ export { Erc1155TransferDetails } from './generated/models/Erc1155TransferDetail
58
59
  export { Erc20Contract } from './generated/models/Erc20Contract.js';
59
60
  export { Erc20Token } from './generated/models/Erc20Token.js';
60
61
  export { Erc20TokenBalance } from './generated/models/Erc20TokenBalance.js';
62
+ export { Erc20TokenV2 } from './generated/models/Erc20TokenV2.js';
61
63
  export { Erc20Transfer } from './generated/models/Erc20Transfer.js';
62
64
  export { Erc20TransferDetails } from './generated/models/Erc20TransferDetails.js';
65
+ export { Erc20TransferDetailsV2 } from './generated/models/Erc20TransferDetailsV2.js';
63
66
  export { Erc721Contract } from './generated/models/Erc721Contract.js';
64
67
  export { Erc721Token } from './generated/models/Erc721Token.js';
65
68
  export { Erc721TokenBalance } from './generated/models/Erc721TokenBalance.js';
@@ -71,6 +74,12 @@ export { ERCTransfer } from './generated/models/ERCTransfer.js';
71
74
  export { EVMAddressActivityRequest } from './generated/models/EVMAddressActivityRequest.js';
72
75
  export { EVMAddressActivityResponse } from './generated/models/EVMAddressActivityResponse.js';
73
76
  export { EvmBlock } from './generated/models/EvmBlock.js';
77
+ export { EvmGenesisAllocDto } from './generated/models/EvmGenesisAllocDto.js';
78
+ export { EvmGenesisAllowListConfigDto } from './generated/models/EvmGenesisAllowListConfigDto.js';
79
+ export { EvmGenesisConfigDto } from './generated/models/EvmGenesisConfigDto.js';
80
+ export { EvmGenesisDto } from './generated/models/EvmGenesisDto.js';
81
+ export { EvmGenesisFeeConfigDto } from './generated/models/EvmGenesisFeeConfigDto.js';
82
+ export { EvmGenesisWarpConfigDto } from './generated/models/EvmGenesisWarpConfigDto.js';
74
83
  export { EVMInput } from './generated/models/EVMInput.js';
75
84
  export { EvmNetworkOptions } from './generated/models/EvmNetworkOptions.js';
76
85
  export { EVMOperationType } from './generated/models/EVMOperationType.js';
@@ -99,6 +108,7 @@ export { InternalTransactionOpCall } from './generated/models/InternalTransactio
99
108
  export { L1ValidatorDetailsFull } from './generated/models/L1ValidatorDetailsFull.js';
100
109
  export { L1ValidatorDetailsTransaction } from './generated/models/L1ValidatorDetailsTransaction.js';
101
110
  export { L1ValidatorManagerDetails } from './generated/models/L1ValidatorManagerDetails.js';
111
+ export { LastActivityTimestamp } from './generated/models/LastActivityTimestamp.js';
102
112
  export { ListAddressChainsResponse } from './generated/models/ListAddressChainsResponse.js';
103
113
  export { ListBlockchainsResponse } from './generated/models/ListBlockchainsResponse.js';
104
114
  export { ListCChainAtomicBalancesResponse } from './generated/models/ListCChainAtomicBalancesResponse.js';
@@ -128,6 +138,7 @@ export { ListPrimaryNetworkBlocksResponse } from './generated/models/ListPrimary
128
138
  export { ListSubnetsResponse } from './generated/models/ListSubnetsResponse.js';
129
139
  export { ListTeleporterMessagesResponse } from './generated/models/ListTeleporterMessagesResponse.js';
130
140
  export { ListTransactionDetailsResponse } from './generated/models/ListTransactionDetailsResponse.js';
141
+ export { ListTransactionDetailsResponseV2 } from './generated/models/ListTransactionDetailsResponseV2.js';
131
142
  export { ListTransfersResponse } from './generated/models/ListTransfersResponse.js';
132
143
  export { ListUtxosResponse } from './generated/models/ListUtxosResponse.js';
133
144
  export { ListValidatorDetailsResponse } from './generated/models/ListValidatorDetailsResponse.js';
@@ -176,6 +187,7 @@ export { PrimaryNetworkAddressActivityRequest } from './generated/models/Primary
176
187
  export { PrimaryNetworkAddressActivityResponse } from './generated/models/PrimaryNetworkAddressActivityResponse.js';
177
188
  export { PrimaryNetworkAddressActivitySubEvents } from './generated/models/PrimaryNetworkAddressActivitySubEvents.js';
178
189
  export { PrimaryNetworkAddressActivitySubEventType } from './generated/models/PrimaryNetworkAddressActivitySubEventType.js';
190
+ export { PrimaryNetworkAddressesBodyDto } from './generated/models/PrimaryNetworkAddressesBodyDto.js';
179
191
  export { PrimaryNetworkAssetCap } from './generated/models/PrimaryNetworkAssetCap.js';
180
192
  export { PrimaryNetworkAssetType } from './generated/models/PrimaryNetworkAssetType.js';
181
193
  export { PrimaryNetworkBalanceThresholdFilter } from './generated/models/PrimaryNetworkBalanceThresholdFilter.js';
@@ -223,6 +235,7 @@ export { TimeIntervalGranularityExtended } from './generated/models/TimeInterval
223
235
  export { TooManyRequests } from './generated/models/TooManyRequests.js';
224
236
  export { Transaction } from './generated/models/Transaction.js';
225
237
  export { TransactionDetails } from './generated/models/TransactionDetails.js';
238
+ export { TransactionDetailsV2 } from './generated/models/TransactionDetailsV2.js';
226
239
  export { TransactionDirectionType } from './generated/models/TransactionDirectionType.js';
227
240
  export { TransactionEvent } from './generated/models/TransactionEvent.js';
228
241
  export { TransactionExportMetadata } from './generated/models/TransactionExportMetadata.js';
@@ -240,6 +253,7 @@ export { UsageMetricsValueDTO } from './generated/models/UsageMetricsValueDTO.js
240
253
  export { UtilityAddresses } from './generated/models/UtilityAddresses.js';
241
254
  export { Utxo } from './generated/models/Utxo.js';
242
255
  export { UtxoCredential } from './generated/models/UtxoCredential.js';
256
+ export { UtxosSortByOption } from './generated/models/UtxosSortByOption.js';
243
257
  export { UtxoType } from './generated/models/UtxoType.js';
244
258
  export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
245
259
  export { ValidatorActivityEventType } from './generated/models/ValidatorActivityEventType.js';