@avalabs/glacier-sdk 3.1.0-canary.a6557be.0 → 3.1.0-canary.ad98ed7.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 (52) hide show
  1. package/dist/index.d.ts +239 -95
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +2 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/BlockchainId.d.ts +2 -0
  6. package/esm/generated/models/BlockchainId.js +1 -1
  7. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  8. package/esm/generated/models/BlockchainIds.js +1 -1
  9. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -2
  10. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -2
  11. package/esm/generated/models/Network.d.ts +2 -1
  12. package/esm/generated/models/Network.js +1 -1
  13. package/esm/generated/models/PChainTransaction.d.ts +13 -0
  14. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  15. package/esm/generated/models/PChainTransactionType.js +1 -1
  16. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  17. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  18. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  19. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  20. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  21. package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
  22. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
  23. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  24. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  25. package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
  26. package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +6 -0
  27. package/esm/generated/models/XChainId.d.ts +1 -0
  28. package/esm/generated/models/XChainId.js +1 -1
  29. package/esm/generated/services/DataApiUsageMetricsService.d.ts +63 -18
  30. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  31. package/esm/generated/services/EvmBalancesService.d.ts +5 -5
  32. package/esm/generated/services/EvmBlocksService.d.ts +2 -2
  33. package/esm/generated/services/EvmChainsService.d.ts +13 -1
  34. package/esm/generated/services/EvmChainsService.js +1 -1
  35. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  36. package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
  37. package/esm/generated/services/NfTsService.d.ts +3 -3
  38. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -5
  39. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  40. package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
  41. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  42. package/esm/index.d.ts +7 -6
  43. package/esm/index.js +1 -1
  44. package/package.json +2 -2
  45. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  46. package/esm/generated/models/PrimaryNetwork.js +0 -1
  47. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  48. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  49. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  50. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  51. package/esm/generated/services/RpcService.d.ts +0 -25
  52. package/esm/generated/services/RpcService.js +0 -1
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as EvmChainsService};
1
+ class e{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getAddressChains({address:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/address/{address}",path:{address:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as EvmChainsService};
@@ -18,7 +18,7 @@ declare class EvmContractsService {
18
18
  */
19
19
  getContractMetadata({ chainId, address, }: {
20
20
  /**
21
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
21
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
22
22
  */
23
23
  chainId: string;
24
24
  /**
@@ -34,7 +34,7 @@ declare class EvmContractsService {
34
34
  */
35
35
  updateContractInfo({ chainId, address, requestBody, }: {
36
36
  /**
37
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
37
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
38
  */
39
39
  chainId: string;
40
40
  /**
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
24
24
  */
25
25
  getDeploymentTransaction({ chainId, address, currency, }: {
26
26
  /**
27
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
27
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
28
28
  */
29
29
  chainId: string;
30
30
  /**
@@ -44,7 +44,7 @@ declare class EvmTransactionsService {
44
44
  */
45
45
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
46
46
  /**
47
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
47
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
48
48
  */
49
49
  chainId: string;
50
50
  /**
@@ -68,7 +68,7 @@ declare class EvmTransactionsService {
68
68
  */
69
69
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
70
70
  /**
71
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
71
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
72
72
  */
73
73
  chainId: string;
74
74
  /**
@@ -102,7 +102,7 @@ declare class EvmTransactionsService {
102
102
  */
103
103
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
104
104
  /**
105
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
105
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
106
106
  */
107
107
  chainId: string;
108
108
  /**
@@ -138,7 +138,7 @@ declare class EvmTransactionsService {
138
138
  */
139
139
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
140
140
  /**
141
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
141
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
142
142
  */
143
143
  chainId: string;
144
144
  /**
@@ -170,7 +170,7 @@ declare class EvmTransactionsService {
170
170
  */
171
171
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
172
172
  /**
173
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
173
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
174
174
  */
175
175
  chainId: string;
176
176
  /**
@@ -202,7 +202,7 @@ declare class EvmTransactionsService {
202
202
  */
203
203
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
204
204
  /**
205
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
205
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
206
206
  */
207
207
  chainId: string;
208
208
  /**
@@ -234,7 +234,7 @@ declare class EvmTransactionsService {
234
234
  */
235
235
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
236
236
  /**
237
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
237
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
238
238
  */
239
239
  chainId: string;
240
240
  /**
@@ -268,7 +268,7 @@ declare class EvmTransactionsService {
268
268
  */
269
269
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
270
270
  /**
271
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
271
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
272
272
  */
273
273
  chainId: string;
274
274
  /**
@@ -300,7 +300,7 @@ declare class EvmTransactionsService {
300
300
  */
301
301
  getTransaction({ chainId, txHash, }: {
302
302
  /**
303
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
303
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
304
304
  */
305
305
  chainId: string;
306
306
  /**
@@ -316,7 +316,7 @@ declare class EvmTransactionsService {
316
316
  */
317
317
  getTransactionsForBlock({ chainId, blockId, }: {
318
318
  /**
319
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
319
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
320
320
  */
321
321
  chainId: string;
322
322
  /**
@@ -332,7 +332,7 @@ declare class EvmTransactionsService {
332
332
  */
333
333
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
334
334
  /**
335
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
335
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
336
336
  */
337
337
  chainId: string;
338
338
  /**
@@ -15,7 +15,7 @@ declare class NfTsService {
15
15
  */
16
16
  reindexNft({ chainId, address, tokenId, }: {
17
17
  /**
18
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
18
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
19
19
  */
20
20
  chainId: string;
21
21
  /**
@@ -35,7 +35,7 @@ declare class NfTsService {
35
35
  */
36
36
  listTokens({ chainId, address, pageToken, pageSize, }: {
37
37
  /**
38
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
39
39
  */
40
40
  chainId: string;
41
41
  /**
@@ -59,7 +59,7 @@ declare class NfTsService {
59
59
  */
60
60
  getTokenDetails({ chainId, address, tokenId, }: {
61
61
  /**
62
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
62
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
63
63
  */
64
64
  chainId: string;
65
65
  /**
@@ -48,11 +48,7 @@ declare class PrimaryNetworkTransactionsService {
48
48
  * @returns any Successful response
49
49
  * @throws ApiError
50
50
  */
51
- listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
52
- /**
53
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
54
- */
55
- addresses: string;
51
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
56
52
  /**
57
53
  * A primary network blockchain id or alias.
58
54
  */
@@ -61,6 +57,10 @@ declare class PrimaryNetworkTransactionsService {
61
57
  * Either mainnet or testnet/fuji.
62
58
  */
63
59
  network: Network;
60
+ /**
61
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
62
+ */
63
+ addresses?: string;
64
64
  /**
65
65
  * Query param for filtering items based on transaction types.
66
66
  */
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}getTxByHash({blockchainId:e,network:t,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:e,network:t,txHash:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listLatestPrimaryNetworkTransactions({addresses:e,blockchainId:t,network:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:t,network:r},query:{addresses:e,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o,sortOrder:h},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listActivePrimaryNetworkStakingTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o,sortOrder:h},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listAssetTransactions({blockchainId:e,network:t,assetId:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",path:{blockchainId:e,network:t,assetId:r},query:{txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkTransactionsService};
1
+ class e{constructor(e){this.httpRequest=e}getTxByHash({blockchainId:e,network:t,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:e,network:t,txHash:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listLatestPrimaryNetworkTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o,sortOrder:h},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listActivePrimaryNetworkStakingTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o,sortOrder:h},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listAssetTransactions({blockchainId:e,network:t,assetId:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",path:{blockchainId:e,network:t,assetId:r},query:{txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkTransactionsService};
@@ -0,0 +1,20 @@
1
+ import { SignatureAggregationResponse } from '../models/SignatureAggregationResponse.js';
2
+ import { SignatureAggregatorRequest } from '../models/SignatureAggregatorRequest.js';
3
+ import { CancelablePromise } from '../core/CancelablePromise.js';
4
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
+
6
+ declare class SignatureAggregatorService {
7
+ readonly httpRequest: BaseHttpRequest;
8
+ constructor(httpRequest: BaseHttpRequest);
9
+ /**
10
+ * Aggregate Signatures
11
+ * Aggregates Signatures for a Warp message from Subnet validators.
12
+ * @returns SignatureAggregationResponse Successful response
13
+ * @throws ApiError
14
+ */
15
+ aggregateSignatures({ requestBody, }: {
16
+ requestBody: SignatureAggregatorRequest;
17
+ }): CancelablePromise<SignatureAggregationResponse>;
18
+ }
19
+
20
+ export { SignatureAggregatorService };
@@ -0,0 +1 @@
1
+ class e{constructor(e){this.httpRequest=e}aggregateSignatures({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/signatureAggregator/aggregateSignatures",body:e,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as SignatureAggregatorService};
package/esm/index.d.ts CHANGED
@@ -143,7 +143,6 @@ export { PendingReward } from './generated/models/PendingReward.js';
143
143
  export { PendingTeleporterMessage } from './generated/models/PendingTeleporterMessage.js';
144
144
  export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
145
145
  export { PricingProviders } from './generated/models/PricingProviders.js';
146
- export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
147
146
  export { PrimaryNetworkAssetCap } from './generated/models/PrimaryNetworkAssetCap.js';
148
147
  export { PrimaryNetworkAssetType } from './generated/models/PrimaryNetworkAssetType.js';
149
148
  export { PrimaryNetworkBlock } from './generated/models/PrimaryNetworkBlock.js';
@@ -160,17 +159,19 @@ export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
160
159
  export { Rewards } from './generated/models/Rewards.js';
161
160
  export { RewardType } from './generated/models/RewardType.js';
162
161
  export { RichAddress } from './generated/models/RichAddress.js';
163
- export { RpcErrorDto } from './generated/models/RpcErrorDto.js';
164
- export { RpcErrorResponseDto } from './generated/models/RpcErrorResponseDto.js';
165
- export { RpcRequestBodyDto } from './generated/models/RpcRequestBodyDto.js';
166
- export { RpcSuccessResponseDto } from './generated/models/RpcSuccessResponseDto.js';
162
+ export { RpcMetrics } from './generated/models/RpcMetrics.js';
163
+ export { RpcUsageMetricsResponseDTO } from './generated/models/RpcUsageMetricsResponseDTO.js';
164
+ export { RpcUsageMetricsValueAggregated } from './generated/models/RpcUsageMetricsValueAggregated.js';
167
165
  export { ServiceUnavailable } from './generated/models/ServiceUnavailable.js';
168
166
  export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
167
+ export { SignatureAggregationResponse } from './generated/models/SignatureAggregationResponse.js';
168
+ export { SignatureAggregatorRequest } from './generated/models/SignatureAggregatorRequest.js';
169
169
  export { SortByOption } from './generated/models/SortByOption.js';
170
170
  export { SortOrder } from './generated/models/SortOrder.js';
171
171
  export { StakingDistribution } from './generated/models/StakingDistribution.js';
172
172
  export { Subnet } from './generated/models/Subnet.js';
173
173
  export { SubnetOwnershipInfo } from './generated/models/SubnetOwnershipInfo.js';
174
+ export { SubnetValidatorManagerDetails } from './generated/models/SubnetValidatorManagerDetails.js';
174
175
  export { TeleporterDestinationTransaction } from './generated/models/TeleporterDestinationTransaction.js';
175
176
  export { TeleporterMessageInfo } from './generated/models/TeleporterMessageInfo.js';
176
177
  export { TeleporterReceipt } from './generated/models/TeleporterReceipt.js';
@@ -227,6 +228,6 @@ export { PrimaryNetworkRewardsService } from './generated/services/PrimaryNetwor
227
228
  export { PrimaryNetworkTransactionsService } from './generated/services/PrimaryNetworkTransactionsService.js';
228
229
  export { PrimaryNetworkUtxOsService } from './generated/services/PrimaryNetworkUtxOsService.js';
229
230
  export { PrimaryNetworkVerticesService } from './generated/services/PrimaryNetworkVerticesService.js';
230
- export { RpcService } from './generated/services/RpcService.js';
231
+ export { SignatureAggregatorService } from './generated/services/SignatureAggregatorService.js';
231
232
  export { TeleporterService } from './generated/services/TeleporterService.js';
232
233
  export { WebhooksService } from './generated/services/WebhooksService.js';
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{ApiFeature}from"./generated/models/ApiFeature.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EventType}from"./generated/models/EventType.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{InternalTransactionOpCall}from"./generated/models/InternalTransactionOpCall.js";export{Network}from"./generated/models/Network.js";export{NftTokenMetadataStatus}from"./generated/models/NftTokenMetadataStatus.js";export{OperationStatus}from"./generated/models/OperationStatus.js";export{OperationStatusCode}from"./generated/models/OperationStatusCode.js";export{OperationType}from"./generated/models/OperationType.js";export{PChainId}from"./generated/models/PChainId.js";export{PChainTransactionType}from"./generated/models/PChainTransactionType.js";export{PendingDelegatorDetails}from"./generated/models/PendingDelegatorDetails.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PrimaryNetwork}from"./generated/models/PrimaryNetwork.js";export{PrimaryNetworkAssetCap}from"./generated/models/PrimaryNetworkAssetCap.js";export{PrimaryNetworkAssetType}from"./generated/models/PrimaryNetworkAssetType.js";export{PrimaryNetworkChainName}from"./generated/models/PrimaryNetworkChainName.js";export{PrimaryNetworkOperationType}from"./generated/models/PrimaryNetworkOperationType.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{RemovedValidatorDetails}from"./generated/models/RemovedValidatorDetails.js";export{RequestType}from"./generated/models/RequestType.js";export{ResourceLinkType}from"./generated/models/ResourceLinkType.js";export{RewardType}from"./generated/models/RewardType.js";export{SortByOption}from"./generated/models/SortByOption.js";export{SortOrder}from"./generated/models/SortOrder.js";export{TeleporterRewardDetails}from"./generated/models/TeleporterRewardDetails.js";export{TimeIntervalGranularityExtended}from"./generated/models/TimeIntervalGranularityExtended.js";export{TransactionDirectionType}from"./generated/models/TransactionDirectionType.js";export{TransactionMethodType}from"./generated/models/TransactionMethodType.js";export{TransactionStatus}from"./generated/models/TransactionStatus.js";export{UnknownContract}from"./generated/models/UnknownContract.js";export{UsageMetricsGroupByEnum}from"./generated/models/UsageMetricsGroupByEnum.js";export{UsageMetricsValueDTO}from"./generated/models/UsageMetricsValueDTO.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{VmName}from"./generated/models/VmName.js";export{WebhookStatus}from"./generated/models/WebhookStatus.js";export{WebhookStatusType}from"./generated/models/WebhookStatusType.js";export{XChainId}from"./generated/models/XChainId.js";export{XChainLinearTransaction}from"./generated/models/XChainLinearTransaction.js";export{XChainNonLinearTransaction}from"./generated/models/XChainNonLinearTransaction.js";export{XChainTransactionType}from"./generated/models/XChainTransactionType.js";export{DataApiUsageMetricsService}from"./generated/services/DataApiUsageMetricsService.js";export{DefaultService}from"./generated/services/DefaultService.js";export{EvmBalancesService}from"./generated/services/EvmBalancesService.js";export{EvmBlocksService}from"./generated/services/EvmBlocksService.js";export{EvmChainsService}from"./generated/services/EvmChainsService.js";export{EvmContractsService}from"./generated/services/EvmContractsService.js";export{EvmTransactionsService}from"./generated/services/EvmTransactionsService.js";export{HealthCheckService}from"./generated/services/HealthCheckService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{OperationsService}from"./generated/services/OperationsService.js";export{PrimaryNetworkService}from"./generated/services/PrimaryNetworkService.js";export{PrimaryNetworkBalancesService}from"./generated/services/PrimaryNetworkBalancesService.js";export{PrimaryNetworkBlocksService}from"./generated/services/PrimaryNetworkBlocksService.js";export{PrimaryNetworkRewardsService}from"./generated/services/PrimaryNetworkRewardsService.js";export{PrimaryNetworkTransactionsService}from"./generated/services/PrimaryNetworkTransactionsService.js";export{PrimaryNetworkUtxOsService}from"./generated/services/PrimaryNetworkUtxOsService.js";export{PrimaryNetworkVerticesService}from"./generated/services/PrimaryNetworkVerticesService.js";export{RpcService}from"./generated/services/RpcService.js";export{TeleporterService}from"./generated/services/TeleporterService.js";export{WebhooksService}from"./generated/services/WebhooksService.js";
1
+ export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{ApiFeature}from"./generated/models/ApiFeature.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EventType}from"./generated/models/EventType.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{InternalTransactionOpCall}from"./generated/models/InternalTransactionOpCall.js";export{Network}from"./generated/models/Network.js";export{NftTokenMetadataStatus}from"./generated/models/NftTokenMetadataStatus.js";export{OperationStatus}from"./generated/models/OperationStatus.js";export{OperationStatusCode}from"./generated/models/OperationStatusCode.js";export{OperationType}from"./generated/models/OperationType.js";export{PChainId}from"./generated/models/PChainId.js";export{PChainTransactionType}from"./generated/models/PChainTransactionType.js";export{PendingDelegatorDetails}from"./generated/models/PendingDelegatorDetails.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PrimaryNetworkAssetCap}from"./generated/models/PrimaryNetworkAssetCap.js";export{PrimaryNetworkAssetType}from"./generated/models/PrimaryNetworkAssetType.js";export{PrimaryNetworkChainName}from"./generated/models/PrimaryNetworkChainName.js";export{PrimaryNetworkOperationType}from"./generated/models/PrimaryNetworkOperationType.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{RemovedValidatorDetails}from"./generated/models/RemovedValidatorDetails.js";export{RequestType}from"./generated/models/RequestType.js";export{ResourceLinkType}from"./generated/models/ResourceLinkType.js";export{RewardType}from"./generated/models/RewardType.js";export{RpcUsageMetricsValueAggregated}from"./generated/models/RpcUsageMetricsValueAggregated.js";export{SortByOption}from"./generated/models/SortByOption.js";export{SortOrder}from"./generated/models/SortOrder.js";export{TeleporterRewardDetails}from"./generated/models/TeleporterRewardDetails.js";export{TimeIntervalGranularityExtended}from"./generated/models/TimeIntervalGranularityExtended.js";export{TransactionDirectionType}from"./generated/models/TransactionDirectionType.js";export{TransactionMethodType}from"./generated/models/TransactionMethodType.js";export{TransactionStatus}from"./generated/models/TransactionStatus.js";export{UnknownContract}from"./generated/models/UnknownContract.js";export{UsageMetricsGroupByEnum}from"./generated/models/UsageMetricsGroupByEnum.js";export{UsageMetricsValueDTO}from"./generated/models/UsageMetricsValueDTO.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{VmName}from"./generated/models/VmName.js";export{WebhookStatus}from"./generated/models/WebhookStatus.js";export{WebhookStatusType}from"./generated/models/WebhookStatusType.js";export{XChainId}from"./generated/models/XChainId.js";export{XChainLinearTransaction}from"./generated/models/XChainLinearTransaction.js";export{XChainNonLinearTransaction}from"./generated/models/XChainNonLinearTransaction.js";export{XChainTransactionType}from"./generated/models/XChainTransactionType.js";export{DataApiUsageMetricsService}from"./generated/services/DataApiUsageMetricsService.js";export{DefaultService}from"./generated/services/DefaultService.js";export{EvmBalancesService}from"./generated/services/EvmBalancesService.js";export{EvmBlocksService}from"./generated/services/EvmBlocksService.js";export{EvmChainsService}from"./generated/services/EvmChainsService.js";export{EvmContractsService}from"./generated/services/EvmContractsService.js";export{EvmTransactionsService}from"./generated/services/EvmTransactionsService.js";export{HealthCheckService}from"./generated/services/HealthCheckService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{OperationsService}from"./generated/services/OperationsService.js";export{PrimaryNetworkService}from"./generated/services/PrimaryNetworkService.js";export{PrimaryNetworkBalancesService}from"./generated/services/PrimaryNetworkBalancesService.js";export{PrimaryNetworkBlocksService}from"./generated/services/PrimaryNetworkBlocksService.js";export{PrimaryNetworkRewardsService}from"./generated/services/PrimaryNetworkRewardsService.js";export{PrimaryNetworkTransactionsService}from"./generated/services/PrimaryNetworkTransactionsService.js";export{PrimaryNetworkUtxOsService}from"./generated/services/PrimaryNetworkUtxOsService.js";export{PrimaryNetworkVerticesService}from"./generated/services/PrimaryNetworkVerticesService.js";export{SignatureAggregatorService}from"./generated/services/SignatureAggregatorService.js";export{TeleporterService}from"./generated/services/TeleporterService.js";export{WebhooksService}from"./generated/services/WebhooksService.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "3.1.0-canary.a6557be.0+a6557be",
3
+ "version": "3.1.0-canary.ad98ed7.0+ad98ed7",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
31
31
  },
32
- "gitHead": "a6557be96945e3fc4e0bed476456b8572bbc93a4"
32
+ "gitHead": "ad98ed7e87ca9c8890b67b2f25ebdf7e220efbef"
33
33
  }
@@ -1,6 +0,0 @@
1
- declare enum PrimaryNetwork {
2
- MAINNET = "mainnet",
3
- FUJI = "fuji"
4
- }
5
-
6
- export { PrimaryNetwork };
@@ -1 +0,0 @@
1
- var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as PrimaryNetwork};
@@ -1,7 +0,0 @@
1
- type RpcErrorDto = {
2
- code: number;
3
- message: string;
4
- data?: Record<string, any>;
5
- };
6
-
7
- export { RpcErrorDto };
@@ -1,9 +0,0 @@
1
- import { RpcErrorDto } from './RpcErrorDto.js';
2
-
3
- type RpcErrorResponseDto = {
4
- jsonrpc: string;
5
- id?: (string | number);
6
- error: RpcErrorDto;
7
- };
8
-
9
- export { RpcErrorResponseDto };
@@ -1,8 +0,0 @@
1
- type RpcRequestBodyDto = {
2
- method: string;
3
- params?: Record<string, any>;
4
- id?: (string | number);
5
- jsonrpc?: string;
6
- };
7
-
8
- export { RpcRequestBodyDto };
@@ -1,7 +0,0 @@
1
- type RpcSuccessResponseDto = {
2
- jsonrpc: string;
3
- id?: (string | number);
4
- result: Record<string, any>;
5
- };
6
-
7
- export { RpcSuccessResponseDto };
@@ -1,25 +0,0 @@
1
- import { RpcErrorResponseDto } from '../models/RpcErrorResponseDto.js';
2
- import { RpcRequestBodyDto } from '../models/RpcRequestBodyDto.js';
3
- import { RpcSuccessResponseDto } from '../models/RpcSuccessResponseDto.js';
4
- import { CancelablePromise } from '../core/CancelablePromise.js';
5
- import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
6
-
7
- declare class RpcService {
8
- readonly httpRequest: BaseHttpRequest;
9
- constructor(httpRequest: BaseHttpRequest);
10
- /**
11
- * Calls JSON-RPC method
12
- * Calls JSON-RPC method.
13
- * @returns any Successful response
14
- * @throws ApiError
15
- */
16
- rpc({ chainId, requestBody, }: {
17
- /**
18
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
19
- */
20
- chainId: string;
21
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
22
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
23
- }
24
-
25
- export { RpcService };
@@ -1 +0,0 @@
1
- class e{constructor(e){this.httpRequest=e}rpc({chainId:e,requestBody:r}){return this.httpRequest.request({method:"POST",url:"/v1/ext/bc/{chainId}/rpc",path:{chainId:e},body:r,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.",504:"Request timed out"}})}}export{e as RpcService};