@avalabs/glacier-sdk 3.1.0-canary.b1108b2.0 → 3.1.0-canary.b86a6f6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/index.d.ts +395 -134
  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/BalanceOwner.d.ts +6 -0
  6. package/esm/generated/models/BlockchainId.d.ts +2 -0
  7. package/esm/generated/models/BlockchainId.js +1 -1
  8. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  9. package/esm/generated/models/BlockchainIds.js +1 -1
  10. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  11. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  12. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  13. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  14. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  15. package/esm/generated/models/ListSubnetOnlyValidatorsResponse.d.ts +14 -0
  16. package/esm/generated/models/Network.d.ts +3 -1
  17. package/esm/generated/models/Network.js +1 -1
  18. package/esm/generated/models/PChainTransaction.d.ts +14 -0
  19. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  20. package/esm/generated/models/PChainTransactionType.js +1 -1
  21. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  22. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  23. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  24. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  25. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  26. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  27. package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
  28. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
  29. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  30. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  31. package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
  32. package/esm/generated/models/SoVDetailsTransaction.d.ts +23 -0
  33. package/esm/generated/models/SovDetailsFull.d.ts +33 -0
  34. package/esm/generated/models/Subnet.d.ts +9 -0
  35. package/esm/generated/models/XChainId.d.ts +1 -0
  36. package/esm/generated/models/XChainId.js +1 -1
  37. package/esm/generated/services/DataApiUsageMetricsService.d.ts +63 -18
  38. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  39. package/esm/generated/services/EvmBalancesService.d.ts +5 -5
  40. package/esm/generated/services/EvmBlocksService.d.ts +2 -2
  41. package/esm/generated/services/EvmChainsService.d.ts +17 -4
  42. package/esm/generated/services/EvmChainsService.js +1 -1
  43. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  44. package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
  45. package/esm/generated/services/NfTsService.d.ts +3 -3
  46. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
  47. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +3 -3
  48. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  49. package/esm/generated/services/PrimaryNetworkService.d.ts +43 -9
  50. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  51. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
  52. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  53. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
  54. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
  55. package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
  56. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  57. package/esm/generated/services/TeleporterService.d.ts +5 -5
  58. package/esm/index.d.ts +12 -7
  59. package/esm/index.js +1 -1
  60. package/package.json +2 -2
  61. package/esm/generated/models/NetworkType.d.ts +0 -6
  62. package/esm/generated/models/NetworkType.js +0 -1
  63. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  64. package/esm/generated/models/PrimaryNetwork.js +0 -1
  65. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  66. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  67. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  68. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  69. package/esm/generated/services/RpcService.d.ts +0 -25
  70. package/esm/generated/services/RpcService.js +0 -1
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listBlockchains({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkService};
1
+ class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listBlockchains({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnetOnlyValidators({network:e,pageToken:r,pageSize:t=10,sovValidationId:n,includeInactiveSovs:s,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnetOnlyValidators",path:{network:e},query:{pageToken:r,pageSize:t,sovValidationId:n,includeInactiveSovs:s,nodeId:a,subnetId:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkService};
@@ -30,7 +30,7 @@ declare class PrimaryNetworkTransactionsService {
30
30
  */
31
31
  blockchainId: BlockchainId;
32
32
  /**
33
- * Either mainnet or a testnet.
33
+ * Either mainnet or testnet/fuji.
34
34
  */
35
35
  network: Network;
36
36
  /**
@@ -44,23 +44,26 @@ declare class PrimaryNetworkTransactionsService {
44
44
  *
45
45
  * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
46
46
  *
47
+ * For P-Chain, you can fetch all the Subnet-only-Validator (SoV) related transactions like ConvertSubnetTx, IncreaseBalanceTx etc. using the unique SoV validation ID. These transactions are further filterable by txTypes and timestamps as well.
48
+ *
47
49
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
48
50
  * @returns any Successful response
49
51
  * @throws ApiError
50
52
  */
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;
53
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, sovValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
56
54
  /**
57
55
  * A primary network blockchain id or alias.
58
56
  */
59
57
  blockchainId: BlockchainId;
60
58
  /**
61
- * Either mainnet or a testnet.
59
+ * Either mainnet or testnet/fuji.
62
60
  */
63
61
  network: Network;
62
+ /**
63
+ * 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.
64
+ */
65
+ addresses?: string;
66
+ sovValidationId?: string;
64
67
  /**
65
68
  * Query param for filtering items based on transaction types.
66
69
  */
@@ -98,7 +101,7 @@ declare class PrimaryNetworkTransactionsService {
98
101
  */
99
102
  blockchainId: PChainId;
100
103
  /**
101
- * Either mainnet or a testnet.
104
+ * Either mainnet or testnet/fuji.
102
105
  */
103
106
  network: Network;
104
107
  /**
@@ -142,7 +145,7 @@ declare class PrimaryNetworkTransactionsService {
142
145
  */
143
146
  blockchainId: XChainId;
144
147
  /**
145
- * Either mainnet or a testnet.
148
+ * Either mainnet or testnet/fuji.
146
149
  */
147
150
  network: Network;
148
151
  /**
@@ -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,sovValidationId:s,txTypes:n,startTimestamp:a,endTimestamp:i,pageToken:o,pageSize:h=10,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:e,network:t},query:{addresses:r,sovValidationId:s,txTypes:n,startTimestamp:a,endTimestamp:i,pageToken:o,pageSize: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."}})}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};
@@ -21,7 +21,7 @@ declare class PrimaryNetworkUtxOsService {
21
21
  */
22
22
  blockchainId: BlockchainId;
23
23
  /**
24
- * Either mainnet or a testnet.
24
+ * Either mainnet or testnet/fuji.
25
25
  */
26
26
  network: Network;
27
27
  /**
@@ -21,7 +21,7 @@ declare class PrimaryNetworkVerticesService {
21
21
  */
22
22
  blockchainId: XChainId;
23
23
  /**
24
- * Either mainnet or a testnet.
24
+ * Either mainnet or testnet/fuji.
25
25
  */
26
26
  network: Network;
27
27
  /**
@@ -49,7 +49,7 @@ declare class PrimaryNetworkVerticesService {
49
49
  */
50
50
  blockchainId: XChainId;
51
51
  /**
52
- * Either mainnet or a testnet.
52
+ * Either mainnet or testnet/fuji.
53
53
  */
54
54
  network: Network;
55
55
  }): CancelablePromise<XChainVertex>;
@@ -69,7 +69,7 @@ declare class PrimaryNetworkVerticesService {
69
69
  */
70
70
  blockchainId: XChainId;
71
71
  /**
72
- * Either mainnet or a testnet.
72
+ * Either mainnet or testnet/fuji.
73
73
  */
74
74
  network: Network;
75
75
  /**
@@ -0,0 +1,20 @@
1
+ import { SignatureAggregationResponse } from '../models/SignatureAggregationResponse.js';
2
+ import { SignatureAggregatorRequest } from '../models/SignatureAggregatorRequest.js';
3
+ import { CancelablePromise } from '../core/CancelablePromise.js';
4
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
+
6
+ declare class SignatureAggregatorService {
7
+ readonly httpRequest: BaseHttpRequest;
8
+ constructor(httpRequest: BaseHttpRequest);
9
+ /**
10
+ * Aggregate Signatures
11
+ * Aggregates Signatures for a Warp message from Subnet validators.
12
+ * @returns SignatureAggregationResponse Successful response
13
+ * @throws ApiError
14
+ */
15
+ aggregateSignatures({ requestBody, }: {
16
+ requestBody: SignatureAggregatorRequest;
17
+ }): CancelablePromise<SignatureAggregationResponse>;
18
+ }
19
+
20
+ export { SignatureAggregatorService };
@@ -0,0 +1 @@
1
+ class e{constructor(e){this.httpRequest=e}aggregateSignatures({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/signatureAggregator/aggregateSignatures",body:e,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as SignatureAggregatorService};
@@ -1,7 +1,7 @@
1
1
  import { DeliveredSourceNotIndexedTeleporterMessage } from '../models/DeliveredSourceNotIndexedTeleporterMessage.js';
2
2
  import { DeliveredTeleporterMessage } from '../models/DeliveredTeleporterMessage.js';
3
3
  import { ListTeleporterMessagesResponse } from '../models/ListTeleporterMessagesResponse.js';
4
- import { NetworkType } from '../models/NetworkType.js';
4
+ import { Network } from '../models/Network.js';
5
5
  import { PendingTeleporterMessage } from '../models/PendingTeleporterMessage.js';
6
6
  import { CancelablePromise } from '../core/CancelablePromise.js';
7
7
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
@@ -57,9 +57,9 @@ declare class TeleporterService {
57
57
  */
58
58
  from?: string;
59
59
  /**
60
- * mainnet or testnet.
60
+ * Either mainnet or testnet/fuji.
61
61
  */
62
- network?: NetworkType;
62
+ network?: Network;
63
63
  }): CancelablePromise<ListTeleporterMessagesResponse>;
64
64
  /**
65
65
  * List teleporter messages by address
@@ -81,9 +81,9 @@ declare class TeleporterService {
81
81
  */
82
82
  pageSize?: number;
83
83
  /**
84
- * mainnet or testnet.
84
+ * Either mainnet or testnet/fuji.
85
85
  */
86
- network?: NetworkType;
86
+ network?: Network;
87
87
  }): CancelablePromise<ListTeleporterMessagesResponse>;
88
88
  }
89
89
 
package/esm/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export { AssetAmount } from './generated/models/AssetAmount.js';
13
13
  export { AssetWithPriceInfo } from './generated/models/AssetWithPriceInfo.js';
14
14
  export { BadGateway } from './generated/models/BadGateway.js';
15
15
  export { BadRequest } from './generated/models/BadRequest.js';
16
+ export { BalanceOwner } from './generated/models/BalanceOwner.js';
16
17
  export { Blockchain } from './generated/models/Blockchain.js';
17
18
  export { BlockchainId } from './generated/models/BlockchainId.js';
18
19
  export { BlockchainIds } from './generated/models/BlockchainIds.js';
@@ -80,6 +81,8 @@ export { InternalServerError } from './generated/models/InternalServerError.js';
80
81
  export { InternalTransaction } from './generated/models/InternalTransaction.js';
81
82
  export { InternalTransactionDetails } from './generated/models/InternalTransactionDetails.js';
82
83
  export { InternalTransactionOpCall } from './generated/models/InternalTransactionOpCall.js';
84
+ export { L1ValidatorManagerDetails } from './generated/models/L1ValidatorManagerDetails.js';
85
+ export { ListAddressChainsResponse } from './generated/models/ListAddressChainsResponse.js';
83
86
  export { ListBlockchainsResponse } from './generated/models/ListBlockchainsResponse.js';
84
87
  export { ListCChainAtomicBalancesResponse } from './generated/models/ListCChainAtomicBalancesResponse.js';
85
88
  export { ListCChainAtomicTransactionsResponse } from './generated/models/ListCChainAtomicTransactionsResponse.js';
@@ -103,6 +106,7 @@ export { ListPChainTransactionsResponse } from './generated/models/ListPChainTra
103
106
  export { ListPChainUtxosResponse } from './generated/models/ListPChainUtxosResponse.js';
104
107
  export { ListPendingRewardsResponse } from './generated/models/ListPendingRewardsResponse.js';
105
108
  export { ListPrimaryNetworkBlocksResponse } from './generated/models/ListPrimaryNetworkBlocksResponse.js';
109
+ export { ListSubnetOnlyValidatorsResponse } from './generated/models/ListSubnetOnlyValidatorsResponse.js';
106
110
  export { ListSubnetsResponse } from './generated/models/ListSubnetsResponse.js';
107
111
  export { ListTeleporterMessagesResponse } from './generated/models/ListTeleporterMessagesResponse.js';
108
112
  export { ListTransactionDetailsResponse } from './generated/models/ListTransactionDetailsResponse.js';
@@ -125,7 +129,6 @@ export { NativeTransaction } from './generated/models/NativeTransaction.js';
125
129
  export { Network } from './generated/models/Network.js';
126
130
  export { NetworkToken } from './generated/models/NetworkToken.js';
127
131
  export { NetworkTokenDetails } from './generated/models/NetworkTokenDetails.js';
128
- export { NetworkType } from './generated/models/NetworkType.js';
129
132
  export { NextPageToken } from './generated/models/NextPageToken.js';
130
133
  export { NftTokenMetadataStatus } from './generated/models/NftTokenMetadataStatus.js';
131
134
  export { NotFound } from './generated/models/NotFound.js';
@@ -144,7 +147,6 @@ export { PendingReward } from './generated/models/PendingReward.js';
144
147
  export { PendingTeleporterMessage } from './generated/models/PendingTeleporterMessage.js';
145
148
  export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
146
149
  export { PricingProviders } from './generated/models/PricingProviders.js';
147
- export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
148
150
  export { PrimaryNetworkAssetCap } from './generated/models/PrimaryNetworkAssetCap.js';
149
151
  export { PrimaryNetworkAssetType } from './generated/models/PrimaryNetworkAssetType.js';
150
152
  export { PrimaryNetworkBlock } from './generated/models/PrimaryNetworkBlock.js';
@@ -161,14 +163,17 @@ export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
161
163
  export { Rewards } from './generated/models/Rewards.js';
162
164
  export { RewardType } from './generated/models/RewardType.js';
163
165
  export { RichAddress } from './generated/models/RichAddress.js';
164
- export { RpcErrorDto } from './generated/models/RpcErrorDto.js';
165
- export { RpcErrorResponseDto } from './generated/models/RpcErrorResponseDto.js';
166
- export { RpcRequestBodyDto } from './generated/models/RpcRequestBodyDto.js';
167
- export { RpcSuccessResponseDto } from './generated/models/RpcSuccessResponseDto.js';
166
+ export { RpcMetrics } from './generated/models/RpcMetrics.js';
167
+ export { RpcUsageMetricsResponseDTO } from './generated/models/RpcUsageMetricsResponseDTO.js';
168
+ export { RpcUsageMetricsValueAggregated } from './generated/models/RpcUsageMetricsValueAggregated.js';
168
169
  export { ServiceUnavailable } from './generated/models/ServiceUnavailable.js';
169
170
  export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
171
+ export { SignatureAggregationResponse } from './generated/models/SignatureAggregationResponse.js';
172
+ export { SignatureAggregatorRequest } from './generated/models/SignatureAggregatorRequest.js';
170
173
  export { SortByOption } from './generated/models/SortByOption.js';
171
174
  export { SortOrder } from './generated/models/SortOrder.js';
175
+ export { SovDetailsFull } from './generated/models/SovDetailsFull.js';
176
+ export { SoVDetailsTransaction } from './generated/models/SoVDetailsTransaction.js';
172
177
  export { StakingDistribution } from './generated/models/StakingDistribution.js';
173
178
  export { Subnet } from './generated/models/Subnet.js';
174
179
  export { SubnetOwnershipInfo } from './generated/models/SubnetOwnershipInfo.js';
@@ -228,6 +233,6 @@ export { PrimaryNetworkRewardsService } from './generated/services/PrimaryNetwor
228
233
  export { PrimaryNetworkTransactionsService } from './generated/services/PrimaryNetworkTransactionsService.js';
229
234
  export { PrimaryNetworkUtxOsService } from './generated/services/PrimaryNetworkUtxOsService.js';
230
235
  export { PrimaryNetworkVerticesService } from './generated/services/PrimaryNetworkVerticesService.js';
231
- export { RpcService } from './generated/services/RpcService.js';
236
+ export { SignatureAggregatorService } from './generated/services/SignatureAggregatorService.js';
232
237
  export { TeleporterService } from './generated/services/TeleporterService.js';
233
238
  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{NetworkType}from"./generated/models/NetworkType.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.b1108b2.0+b1108b2",
3
+ "version": "3.1.0-canary.b86a6f6.0+b86a6f6",
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": "b1108b2aba2a22fe94841dd83583d84c2b42a531"
32
+ "gitHead": "b86a6f6b7c056bce0ea4c77d33c7d804784c2486"
33
33
  }
@@ -1,6 +0,0 @@
1
- declare enum NetworkType {
2
- MAINNET = "mainnet",
3
- TESTNET = "testnet"
4
- }
5
-
6
- export { NetworkType };
@@ -1 +0,0 @@
1
- var t=(t=>(t.MAINNET="mainnet",t.TESTNET="testnet",t))(t||{});export{t as NetworkType};
@@ -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};