@avalabs/glacier-sdk 3.1.0-canary.efe2f7b.0 → 3.1.0-canary.f28fe03.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 (114) hide show
  1. package/dist/index.d.ts +916 -470
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -4
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  6. package/esm/generated/models/ApiFeature.d.ts +7 -0
  7. package/esm/generated/models/ApiFeature.js +1 -0
  8. package/esm/generated/models/BadGateway.d.ts +16 -0
  9. package/esm/generated/models/BadRequest.d.ts +16 -0
  10. package/esm/generated/models/BlockchainId.d.ts +2 -0
  11. package/esm/generated/models/BlockchainId.js +1 -1
  12. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  13. package/esm/generated/models/BlockchainIds.js +1 -1
  14. package/esm/generated/models/ChainInfo.d.ts +1 -1
  15. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  16. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  17. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  18. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  19. package/esm/generated/models/Forbidden.d.ts +16 -0
  20. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  21. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  22. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  23. package/esm/generated/models/InternalServerError.d.ts +16 -0
  24. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  25. package/esm/generated/models/LogsFormat.d.ts +1 -1
  26. package/esm/generated/models/Metric.d.ts +14 -0
  27. package/esm/generated/models/Network.d.ts +3 -1
  28. package/esm/generated/models/Network.js +1 -1
  29. package/esm/generated/models/NotFound.d.ts +16 -0
  30. package/esm/generated/models/PChainTransaction.d.ts +13 -0
  31. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  32. package/esm/generated/models/PChainTransactionType.js +1 -1
  33. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  34. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  35. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  36. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  37. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  38. package/esm/generated/models/RequestType.d.ts +2 -2
  39. package/esm/generated/models/RequestType.js +1 -1
  40. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  41. package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
  42. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
  43. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  44. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  45. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  46. package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
  47. package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +6 -0
  48. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  49. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  50. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  51. package/esm/generated/models/TransactionDirectionType.js +1 -0
  52. package/esm/generated/models/Unauthorized.d.ts +16 -0
  53. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
  54. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
  55. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
  56. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  57. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  58. package/esm/generated/models/XChainId.d.ts +1 -0
  59. package/esm/generated/models/XChainId.js +1 -1
  60. package/esm/generated/services/DataApiUsageMetricsService.d.ts +154 -0
  61. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  62. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  63. package/esm/generated/services/EvmBalancesService.js +1 -1
  64. package/esm/generated/services/EvmBlocksService.d.ts +4 -4
  65. package/esm/generated/services/EvmBlocksService.js +1 -1
  66. package/esm/generated/services/EvmChainsService.d.ts +21 -8
  67. package/esm/generated/services/EvmChainsService.js +1 -1
  68. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  69. package/esm/generated/services/EvmContractsService.js +1 -1
  70. package/esm/generated/services/EvmTransactionsService.d.ts +24 -24
  71. package/esm/generated/services/EvmTransactionsService.js +1 -1
  72. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  73. package/esm/generated/services/HealthCheckService.js +1 -1
  74. package/esm/generated/services/NfTsService.d.ts +6 -6
  75. package/esm/generated/services/NfTsService.js +1 -1
  76. package/esm/generated/services/OperationsService.d.ts +2 -2
  77. package/esm/generated/services/OperationsService.js +1 -1
  78. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  79. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  80. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +6 -6
  81. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  82. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  83. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  84. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -18
  85. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  86. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +9 -9
  87. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  88. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  89. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  90. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  91. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  92. package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
  93. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  94. package/esm/generated/services/TeleporterService.d.ts +34 -6
  95. package/esm/generated/services/TeleporterService.js +1 -1
  96. package/esm/generated/services/WebhooksService.d.ts +10 -10
  97. package/esm/generated/services/WebhooksService.js +1 -1
  98. package/esm/index.d.ts +23 -9
  99. package/esm/index.js +1 -1
  100. package/package.json +2 -2
  101. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  102. package/esm/generated/models/GlacierApiFeature.js +0 -1
  103. package/esm/generated/models/NetworkType.d.ts +0 -6
  104. package/esm/generated/models/NetworkType.js +0 -1
  105. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  106. package/esm/generated/models/PrimaryNetwork.js +0 -1
  107. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  108. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  109. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  110. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  111. package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +0 -85
  112. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
  113. package/esm/generated/services/RpcService.d.ts +0 -25
  114. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";class e{constructor(e){this.config=e}}class t extends Error{url;status;statusText;body;request;constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}}class r extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class s{#e;#t;#r;#s;#a;#o;#n;constructor(e){this.#e=!1,this.#t=!1,this.#r=!1,this.#s=[],this.#a=new Promise(((t,r)=>{this.#o=t,this.#n=r;const s=e=>{this.#e||this.#t||this.#r||this.#s.push(e)};return Object.defineProperty(s,"isResolved",{get:()=>this.#e}),Object.defineProperty(s,"isRejected",{get:()=>this.#t}),Object.defineProperty(s,"isCancelled",{get:()=>this.#r}),e((e=>{this.#e||this.#t||this.#r||(this.#e=!0,this.#o?.(e))}),(e=>{this.#e||this.#t||this.#r||(this.#t=!0,this.#n?.(e))}),s)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,t){return this.#a.then(e,t)}catch(e){return this.#a.catch(e)}finally(e){return this.#a.finally(e)}cancel(){if(!(this.#e||this.#t||this.#r)){if(this.#r=!0,this.#s.length)try{for(const e of this.#s)e()}catch(e){return void console.warn("Cancellation threw an error",e)}this.#s.length=0,this.#n?.(new r("Request aborted"))}}get isCancelled(){return this.#r}}const a=e=>null!=e,o=e=>"string"==typeof e,n=e=>o(e)&&""!==e,i=e=>"object"==typeof e&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.arrayBuffer&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]),d=e=>e instanceof FormData,c=e=>{const t=[],r=(e,s)=>{a(s)&&(Array.isArray(s)?s.forEach((t=>{r(e,t)})):"object"==typeof s?Object.entries(s).forEach((([t,s])=>{r(`${e}[${t}]`,s)})):((e,r)=>{t.push(`${encodeURIComponent(e)}=${encodeURIComponent(String(r))}`)})(e,s))};return Object.entries(e).forEach((([e,t])=>{r(e,t)})),t.length>0?`?${t.join("&")}`:""},p=async(e,t)=>"function"==typeof t?t(e):t,h=async(e,t)=>{const r=await p(t,e.TOKEN),s=await p(t,e.USERNAME),c=await p(t,e.PASSWORD),h=await p(t,e.HEADERS),T=Object.entries({Accept:"application/json",...h,...t.headers}).filter((([e,t])=>a(t))).reduce(((e,[t,r])=>({...e,[t]:String(r)})),{});if(n(r)&&(T.Authorization=`Bearer ${r}`),n(s)&&n(c)){const e=(e=>{try{return btoa(e)}catch(t){return Buffer.from(e).toString("base64")}})(`${s}:${c}`);T.Authorization=`Basic ${e}`}return t.body&&(t.mediaType?T["Content-Type"]=t.mediaType:i(t.body)?T["Content-Type"]=t.body.type||"application/octet-stream":o(t.body)?T["Content-Type"]="text/plain":d(t.body)||(T["Content-Type"]="application/json")),new Headers(T)},T=(e,r)=>new s((async(s,n,p)=>{try{const n=((e,t)=>{const r=e.ENCODE_PATH||encodeURI,s=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,((e,s)=>t.path?.hasOwnProperty(s)?r(String(t.path[s])):e)),a=`${e.BASE}${s}`;return t.query?`${a}${c(t.query)}`:a})(e,r),T=(e=>{if(e.formData){const t=new FormData,r=(e,r)=>{o(r)||i(r)?t.append(e,r):t.append(e,JSON.stringify(r))};return Object.entries(e.formData).filter((([e,t])=>a(t))).forEach((([e,t])=>{Array.isArray(t)?t.forEach((t=>r(e,t))):r(e,t)})),t}})(r),l=(e=>{if(void 0!==e.body)return e.mediaType?.includes("/json")?JSON.stringify(e.body):o(e.body)||i(e.body)||d(e.body)?e.body:JSON.stringify(e.body)})(r),u=await h(e,r);if(!p.isCancelled){const a=await(async(e,t,r,s,a,o,n)=>{const i=new AbortController,d={headers:o,body:s??a,method:t.method,signal:i.signal};return e.WITH_CREDENTIALS&&(d.credentials=e.CREDENTIALS),n((()=>i.abort())),await fetch(r,d)})(e,r,n,l,T,u,p),i=await(async e=>{if(204!==e.status)try{const t=e.headers.get("Content-Type");if(t)return["application/json","application/problem+json"].some((e=>t.toLowerCase().startsWith(e)))?await e.json():await e.text()}catch(e){console.error(e)}})(a),d=((e,t)=>{if(t){const r=e.headers.get(t);if(o(r))return r}})(a,r.responseHeader),c={url:n,ok:a.ok,status:a.status,statusText:a.statusText,body:d??i};((e,r)=>{const s={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...e.errors}[r.status];if(s)throw new t(e,r,s);if(!r.ok)throw new t(e,r,"Generic Error")})(r,c),s(c.body)}}catch(e){n(e)}}));class l extends e{constructor(e){super(e)}request(e){return T(this.config,e)}}class u{constructor(e){this.httpRequest=e}mediaControllerUploadImage(){return this.httpRequest.request({method:"POST",url:"/v1/media/uploadImage"})}}class E{constructor(e){this.httpRequest=e}getNativeBalance({chainId:e,address:t,blockNumber:r,currency:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:getNative",path:{chainId:e,address:t},query:{blockNumber:r,currency:s}})}listErc20Balances({chainId:e,address:t,blockNumber:r,pageToken:s,pageSize:a=10,filterSpamTokens:o=!0,contractAddresses:n,currency:i}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc20",path:{chainId:e,address:t},query:{blockNumber:r,pageToken:s,pageSize:a,filterSpamTokens:o,contractAddresses:n,currency:i}})}listErc721Balances({chainId:e,address:t,pageToken:r,pageSize:s=10,contractAddress:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc721",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,contractAddress:a}})}listErc1155Balances({chainId:e,address:t,blockNumber:r,pageToken:s,pageSize:a=10,contractAddress:o}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",path:{chainId:e,address:t},query:{blockNumber:r,pageToken:s,pageSize:a,contractAddress:o}})}listCollectibleBalances({chainId:e,address:t,pageToken:r,pageSize:s=10,contractAddress:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,contractAddress:a}})}}class I{constructor(e){this.httpRequest=e}getLatestBlocks({chainId:e,pageToken:t,pageSize:r=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks",path:{chainId:e},query:{pageToken:t,pageSize:r}})}getBlock({chainId:e,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}",path:{chainId:e,blockId:t}})}}class k{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:t}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:e}})}}class R{constructor(e){this.httpRequest=e}getContractMetadata({chainId:e,address:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}",path:{chainId:e,address:t}})}updateContractInfo({chainId:e,address:t,requestBody:r}){return this.httpRequest.request({method:"PATCH",url:"/v1/chains/{chainId}/contracts/{address}",path:{chainId:e,address:t},body:r,mediaType:"application/json"})}}class N{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:t,currency:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:t},query:{currency:r}})}listContractDeployments({chainId:e,address:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s}})}listTransfers({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listTransactions({chainId:e,address:t,pageToken:r,pageSize:s=10,startBlock:a,endBlock:o,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s,startBlock:a,endBlock:o,sortOrder:n}})}listNativeTransactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc20Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc721Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listErc1155Transactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}listInternalTransactions({chainId:e,address:t,startBlock:r,endBlock:s,pageToken:a,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:t},query:{startBlock:r,endBlock:s,pageToken:a,pageSize:o}})}getTransaction({chainId:e,txHash:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:t}})}getTransactionsForBlock({chainId:e,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:t}})}listLatestTransactions({chainId:e,pageToken:t,pageSize:r=10,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:t,pageSize:r,status:s}})}}class A{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:t,endTimestamp:r,timeInterval:s,groupBy:a,requestPath:o,responseStatusCode:n,chainId:i,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:t,endTimestamp:r,timeInterval:s,groupBy:a,requestPath:o,responseStatusCode:n,chainId:i,apiKeyId:d}})}getApiLogss({orgId:e,startTimestamp:t,endTimestamp:r,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:t,endTimestamp:r,pageToken:s,pageSize:a}})}}class m{constructor(e){this.httpRequest=e}healthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}class S{constructor(e){this.httpRequest=e}reindexNft({chainId:e,address:t,tokenId:r}){return this.httpRequest.request({method:"POST",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",path:{chainId:e,address:t,tokenId:r}})}listTokens({chainId:e,address:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens",path:{chainId:e,address:t},query:{pageToken:r,pageSize:s}})}getTokenDetails({chainId:e,address:t,tokenId:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",path:{chainId:e,address:t,tokenId:r}})}}class _{constructor(e){this.httpRequest=e}getOperationResult({operationId:e}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId:e}})}postTransactionExportJob({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",body:e,mediaType:"application/json"})}}class C{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:t,assetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:t,assetId:r}})}getChainIdsForAddresses({addresses:e,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:t},query:{addresses:e}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e}})}listBlockchains({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}listSubnets({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}getSubnetById({network:e,subnetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:t}})}listValidators({network:e,pageToken:t,pageSize:r=10,nodeIds:s,sortBy:a,sortOrder:o,validationStatus:n,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:c,maxTimeRemaining:p,minFeePercentage:h,maxFeePercentage:T,minUptimePerformance:l,maxUptimePerformance:u,subnetId:E}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:t,pageSize:r,nodeIds:s,sortBy:a,sortOrder:o,validationStatus:n,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:c,maxTimeRemaining:p,minFeePercentage:h,maxFeePercentage:T,minUptimePerformance:l,maxUptimePerformance:u,subnetId:E}})}getSingleValidatorDetails({network:e,nodeId:t,pageToken:r,pageSize:s=10,validationStatus:a,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:t},query:{pageToken:r,pageSize:s,validationStatus:a,sortOrder:o}})}listDelegators({network:e,pageToken:t,pageSize:r=10,rewardAddresses:s,sortOrder:a,delegationStatus:o,nodeIds:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:t,pageSize:r,rewardAddresses:s,sortOrder:a,delegationStatus:o,nodeIds:n}})}}class g{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:t,blockTimestamp:r,addresses:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:t},query:{blockTimestamp:r,addresses:s}})}}class x{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:t,blockId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:t,blockId:r}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:t,nodeId:r,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:t,nodeId:r},query:{pageToken:s,pageSize:a}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:t},query:{pageToken:r,pageSize:s}})}}class y{constructor(e){this.httpRequest=e}listPendingPrimaryNetworkRewards({network:e,addresses:t,pageToken:r,pageSize:s=10,nodeIds:a,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards:listPending",path:{network:e},query:{addresses:t,pageToken:r,pageSize:s,nodeIds:a,sortOrder:o}})}listHistoricalPrimaryNetworkRewards({network:e,addresses:t,pageToken:r,pageSize:s=10,nodeIds:a,sortOrder:o,currency:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards",path:{network:e},query:{addresses:t,pageToken:r,pageSize:s,nodeIds:a,sortOrder:o,currency:n}})}}class O{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}})}listLatestPrimaryNetworkTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=10,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i,sortOrder:d}})}listActivePrimaryNetworkStakingTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=10,sortOrder:d}){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:a,endTimestamp:o,pageToken:n,pageSize:i,sortOrder:d}})}listAssetTransactions({blockchainId:e,network:t,assetId:r,txTypes:s,startTimestamp:a,endTimestamp:o,pageToken:n,pageSize:i=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:a,endTimestamp:o,pageToken:n,pageSize:i}})}}class q{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:t,addresses:r,pageToken:s,pageSize:a=10,assetId:o,includeSpent:n,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:t},query:{addresses:r,pageToken:s,pageSize:a,assetId:o,includeSpent:n,sortOrder:i}})}}class v{constructor(e){this.httpRequest=e}listLatestXChainVertices({blockchainId:e,network:t,pageToken:r,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices",path:{blockchainId:e,network:t},query:{pageToken:r,pageSize:s}})}getVertexByHash({vertexHash:e,blockchainId:t,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}",path:{vertexHash:e,blockchainId:t,network:r}})}getVertexByHeight({vertexHeight:e,blockchainId:t,network:r,pageToken:s,pageSize:a=10,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight",path:{blockchainId:t,network:r},query:{vertexHeight:e,pageToken:s,pageSize:a,sortOrder:o}})}}class D{constructor(e){this.httpRequest=e}rpc({chainId:e,requestBody:t}){return this.httpRequest.request({method:"POST",url:"/v1/ext/bc/{chainId}/rpc",path:{chainId:e},body:t,mediaType:"application/json",errors:{504:"Request timed out"}})}}class w{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId:e}})}listTeleporterMessages({pageToken:e,pageSize:t=10,sourceBlockchainId:r,destinationBlockchainId:s,to:a,from:o,network:n}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:t,sourceBlockchainId:r,destinationBlockchainId:s,to:a,from:o,network:n}})}}class b{constructor(e){this.httpRequest=e}createWebhook({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/webhooks",body:e,mediaType:"application/json"})}listWebhooks({pageToken:e,pageSize:t=10,status:r}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks",query:{pageToken:e,pageSize:t,status:r}})}getWebhook({id:e}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}",path:{id:e}})}deactivateWebhook({id:e}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}",path:{id:e}})}updateWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}",path:{id:e},body:t,mediaType:"application/json"})}generateSharedSecret(){return this.httpRequest.request({method:"POST",url:"/v1/webhooks:generateOrRotateSharedSecret"})}getSharedSecret(){return this.httpRequest.request({method:"GET",url:"/v1/webhooks:getSharedSecret"})}addAddressesToWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:t,mediaType:"application/json"})}removeAddressesFromWebhook({id:e,requestBody:t}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}/addresses",path:{id:e},body:t,mediaType:"application/json"})}getAddressesFromWebhook({id:e,pageToken:t,pageSize:r=10}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}/addresses",path:{id:e},query:{pageToken:t,pageSize:r}})}}var B,P;exports.ActiveDelegatorDetails=void 0,((B=exports.ActiveDelegatorDetails||(exports.ActiveDelegatorDetails={})).delegationStatus||(B.delegationStatus={})).ACTIVE="active",exports.ActiveValidatorDetails=void 0,((P=exports.ActiveValidatorDetails||(exports.ActiveValidatorDetails={})).validationStatus||(P.validationStatus={})).ACTIVE="active";var L,V,M=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",e.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(M||{}),U=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",e.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",e))(U||{});exports.CChainExportTransaction=void 0,((L=exports.CChainExportTransaction||(exports.CChainExportTransaction={})).txType||(L.txType={})).EXPORT_TX="ExportTx",exports.CChainImportTransaction=void 0,((V=exports.CChainImportTransaction||(exports.CChainImportTransaction={})).txType||(V.txType={})).IMPORT_TX="ImportTx";var G,f,H,X,K,W,z=(e=>(e.OK="OK",e.UNAVAILABLE="UNAVAILABLE",e))(z||{});exports.CompletedDelegatorDetails=void 0,((G=exports.CompletedDelegatorDetails||(exports.CompletedDelegatorDetails={})).delegationStatus||(G.delegationStatus={})).COMPLETED="completed",exports.CompletedValidatorDetails=void 0,((f=exports.CompletedValidatorDetails||(exports.CompletedValidatorDetails={})).validationStatus||(f.validationStatus={})).COMPLETED="completed",exports.ContractSubmissionErc1155=void 0,((H=exports.ContractSubmissionErc1155||(exports.ContractSubmissionErc1155={})).ercType||(H.ercType={})).ERC_1155="ERC-1155",exports.ContractSubmissionErc20=void 0,((X=exports.ContractSubmissionErc20||(exports.ContractSubmissionErc20={})).ercType||(X.ercType={})).ERC_20="ERC-20",exports.ContractSubmissionErc721=void 0,((K=exports.ContractSubmissionErc721||(exports.ContractSubmissionErc721={})).ercType||(K.ercType={})).ERC_721="ERC-721",exports.ContractSubmissionUnknown=void 0,((W=exports.ContractSubmissionUnknown||(exports.ContractSubmissionUnknown={})).ercType||(W.ercType={})).UNKNOWN="UNKNOWN";var Y,F,J,j,Q,$,Z,ee,te,re,se,ae=(e=>(e.USD="usd",e.EUR="eur",e.AUD="aud",e.CAD="cad",e.CHF="chf",e.CLP="clp",e.CNY="cny",e.CZK="czk",e.DKK="dkk",e.GBP="gbp",e.HKD="hkd",e.HUF="huf",e.JPY="jpy",e.NZD="nzd",e))(ae||{}),oe=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e))(oe||{});exports.DeliveredSourceNotIndexedTeleporterMessage=void 0,((Y=exports.DeliveredSourceNotIndexedTeleporterMessage||(exports.DeliveredSourceNotIndexedTeleporterMessage={})).status||(Y.status={})).DELIVERED_SOURCE_NOT_INDEXED="delivered_source_not_indexed",exports.DeliveredTeleporterMessage=void 0,((F=exports.DeliveredTeleporterMessage||(exports.DeliveredTeleporterMessage={})).status||(F.status={})).DELIVERED="delivered",exports.Erc1155Contract=void 0,((J=exports.Erc1155Contract||(exports.Erc1155Contract={})).ercType||(J.ercType={})).ERC_1155="ERC-1155",exports.Erc1155Token=void 0,((j=exports.Erc1155Token||(exports.Erc1155Token={})).ercType||(j.ercType={})).ERC_1155="ERC-1155",exports.Erc1155TokenBalance=void 0,((Q=exports.Erc1155TokenBalance||(exports.Erc1155TokenBalance={})).ercType||(Q.ercType={})).ERC_1155="ERC-1155",exports.Erc20Contract=void 0,(($=exports.Erc20Contract||(exports.Erc20Contract={})).ercType||($.ercType={})).ERC_20="ERC-20",exports.Erc20Token=void 0,((Z=exports.Erc20Token||(exports.Erc20Token={})).ercType||(Z.ercType={})).ERC_20="ERC-20",exports.Erc20TokenBalance=void 0,((ee=exports.Erc20TokenBalance||(exports.Erc20TokenBalance={})).ercType||(ee.ercType={})).ERC_20="ERC-20",exports.Erc721Contract=void 0,((te=exports.Erc721Contract||(exports.Erc721Contract={})).ercType||(te.ercType={})).ERC_721="ERC-721",exports.Erc721Token=void 0,((re=exports.Erc721Token||(exports.Erc721Token={})).ercType||(re.ercType={})).ERC_721="ERC-721",exports.Erc721TokenBalance=void 0,((se=exports.Erc721TokenBalance||(exports.Erc721TokenBalance={})).ercType||(se.ercType={})).ERC_721="ERC-721";var ne,ie,de,ce=(e=>(e.ADDRESS_ACTIVITY="address_activity",e))(ce||{}),pe=(e=>(e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(pe||{}),he=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e))(he||{}),Te=(e=>(e.UNKNOWN="UNKNOWN",e.CALL="CALL",e.CREATE="CREATE",e.CREATE2="CREATE2",e.CALLCODE="CALLCODE",e.DELEGATECALL="DELEGATECALL",e.STATICCALL="STATICCALL",e))(Te||{}),le=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e))(le||{}),ue=(e=>(e.MAINNET="mainnet",e.TESTNET="testnet",e))(ue||{}),Ee=(e=>(e.UNKNOWN="UNKNOWN",e.MISSING_TOKEN="MISSING_TOKEN",e.INVALID_TOKEN_URI="INVALID_TOKEN_URI",e.INVALID_TOKEN_URI_SCHEME="INVALID_TOKEN_URI_SCHEME",e.UNREACHABLE_TOKEN_URI="UNREACHABLE_TOKEN_URI",e.THROTTLED_TOKEN_URI="THROTTLED_TOKEN_URI",e.METADATA_CONTENT_TOO_LARGE="METADATA_CONTENT_TOO_LARGE",e.INVALID_METADATA="INVALID_METADATA",e.INVALID_METADATA_JSON="INVALID_METADATA_JSON",e.INDEXED="INDEXED",e.UNINDEXED="UNINDEXED",e))(Ee||{}),Ie=(e=>(e.RUNNING="RUNNING",e.COMPLETED="COMPLETED",e.COMPLETED_WITH_WARNING="COMPLETED_WITH_WARNING",e.FAILED="FAILED",e))(Ie||{}),ke=(e=>(e.ERR_INVALID_REQUEST="ErrInvalidRequest",e.ERR_INTERNAL="ErrInternal",e.WARN_TRUNCATED_EXPORT="WarnTruncatedExport",e))(ke||{}),Re=(e=>(e.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(Re||{}),Ne=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e.P_CHAIN="p-chain",e))(Ne||{}),Ae=(e=>(e.ADD_VALIDATOR_TX="AddValidatorTx",e.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",e.ADD_DELEGATOR_TX="AddDelegatorTx",e.CREATE_CHAIN_TX="CreateChainTx",e.CREATE_SUBNET_TX="CreateSubnetTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.ADVANCE_TIME_TX="AdvanceTimeTx",e.REWARD_VALIDATOR_TX="RewardValidatorTx",e.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",e.TRANSFORM_SUBNET_TX="TransformSubnetTx",e.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",e.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",e.BASE_TX="BaseTx",e.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",e.UNKNOWN="UNKNOWN",e))(Ae||{});exports.PendingDelegatorDetails=void 0,((ne=exports.PendingDelegatorDetails||(exports.PendingDelegatorDetails={})).delegationStatus||(ne.delegationStatus={})).PENDING="pending",exports.PendingTeleporterMessage=void 0,((ie=exports.PendingTeleporterMessage||(exports.PendingTeleporterMessage={})).status||(ie.status={})).PENDING="pending",exports.PendingValidatorDetails=void 0,((de=exports.PendingValidatorDetails||(exports.PendingValidatorDetails={})).validationStatus||(de.validationStatus={})).PENDING="pending";var me,Se=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e))(Se||{}),_e=(e=>(e.FIXED="fixed",e.VARIABLE="variable",e))(_e||{}),Ce=(e=>(e.SECP256K1="secp256k1",e.NFT="nft",e))(Ce||{}),ge=(e=>(e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(ge||{}),xe=(e=>(e.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",e))(xe||{}),ye=(e=>(e.ADD_VALIDATOR_TX="AddValidatorTx",e.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",e.ADD_DELEGATOR_TX="AddDelegatorTx",e.CREATE_CHAIN_TX="CreateChainTx",e.CREATE_SUBNET_TX="CreateSubnetTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.ADVANCE_TIME_TX="AdvanceTimeTx",e.REWARD_VALIDATOR_TX="RewardValidatorTx",e.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",e.TRANSFORM_SUBNET_TX="TransformSubnetTx",e.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",e.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",e.BASE_TX="BaseTx",e.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",e.UNKNOWN="UNKNOWN",e.CREATE_ASSET_TX="CreateAssetTx",e.OPERATION_TX="OperationTx",e))(ye||{});exports.RemovedValidatorDetails=void 0,((me=exports.RemovedValidatorDetails||(exports.RemovedValidatorDetails={})).validationStatus||(me.validationStatus={})).REMOVED="removed";var Oe,qe=(e=>(e.GLACIER_API_REQUEST="Glacier API Request",e.GLACIER_RPC_REQUEST="Glacier RPC Request",e))(qe||{}),ve=(e=>(e.BLOG="Blog",e.COIN_GECKO="CoinGecko",e.COIN_MARKET_CAP="CoinMarketCap",e.DISCORD="Discord",e.DOCUMENTATION="Documentation",e.FACEBOOK="Facebook",e.GITHUB="Github",e.INSTAGRAM="Instagram",e.LINKED_IN="LinkedIn",e.MEDIUM="Medium",e.REDDIT="Reddit",e.SUPPORT="Support",e.TELEGRAM="Telegram",e.TIK_TOK="TikTok",e.TWITTER="Twitter",e.WEBSITE="Website",e.WHITEPAPER="Whitepaper",e.YOUTUBE="Youtube",e))(ve||{}),De=(e=>(e.VALIDATOR="VALIDATOR",e.DELEGATOR="DELEGATOR",e.VALIDATOR_FEE="VALIDATOR_FEE",e))(De||{}),we=(e=>(e.BLOCK_INDEX="blockIndex",e.DELEGATION_CAPACITY="delegationCapacity",e.TIME_REMAINING="timeRemaining",e.DELEGATION_FEE="delegationFee",e.UPTIME_PERFORMANCE="uptimePerformance",e))(we||{}),be=(e=>(e.ASC="asc",e.DESC="desc",e))(be||{});exports.TeleporterRewardDetails=void 0,((Oe=exports.TeleporterRewardDetails||(exports.TeleporterRewardDetails={})).ercType||(Oe.ercType={})).ERC_20="ERC-20";var Be,Pe=(e=>(e.MINUTE="minute",e.HOURLY="hourly",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e))(Pe||{}),Le=(e=>(e.NATIVE_TRANSFER="NATIVE_TRANSFER",e.CONTRACT_CALL="CONTRACT_CALL",e.CONTRACT_CREATION="CONTRACT_CREATION",e))(Le||{}),Ve=(e=>(e.FAILED="failed",e.SUCCESS="success",e))(Ve||{});exports.UnknownContract=void 0,((Be=exports.UnknownContract||(exports.UnknownContract={})).ercType||(Be.ercType={})).UNKNOWN="UNKNOWN";var Me,Ue,Ge,fe=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.CHAIN_ID="chainId",e.API_KEY_ID="apiKeyId",e))(fe||{}),He=(e=>(e.STAKE="STAKE",e.TRANSFER="TRANSFER",e))(He||{}),Xe=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(Xe||{}),Ke=(e=>(e.EVM="EVM",e.BITCOIN="BITCOIN",e.ETHEREUM="ETHEREUM",e))(Ke||{}),We=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(We||{}),ze=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(ze||{}),Ye=(e=>(e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e.X_CHAIN="x-chain",e))(Ye||{});exports.XChainLinearTransaction=void 0,Me=exports.XChainLinearTransaction||(exports.XChainLinearTransaction={}),(Ue=Me.chainFormat||(Me.chainFormat={})).NON_LINEAR="non-linear",Ue.LINEAR="linear",exports.XChainNonLinearTransaction=void 0,(e=>{e.NON_LINEAR="non-linear",e.LINEAR="linear"})((Ge=exports.XChainNonLinearTransaction||(exports.XChainNonLinearTransaction={})).chainFormat||(Ge.chainFormat={}));var Fe=(e=>(e.BASE_TX="BaseTx",e.CREATE_ASSET_TX="CreateAssetTx",e.OPERATION_TX="OperationTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.UNKNOWN="UNKNOWN",e))(Fe||{});exports.ApiError=t,exports.BaseHttpRequest=e,exports.BlockchainId=M,exports.BlockchainIds=U,exports.CancelError=r,exports.CancelablePromise=s,exports.ChainStatus=z,exports.CurrencyCode=ae,exports.DefaultService=u,exports.DelegationStatusType=oe,exports.EVMOperationType=pe,exports.EventType=ce,exports.EvmBalancesService=E,exports.EvmBlocksService=I,exports.EvmChainsService=k,exports.EvmContractsService=R,exports.EvmTransactionsService=N,exports.Glacier=class{default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;glacierApiUsageMetrics;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;rpc;teleporter;webhooks;request;constructor(e,t=l){this.request=new t({BASE:e?.BASE??"https://glacier-api-dev.avax.network",VERSION:e?.VERSION??"Beta",WITH_CREDENTIALS:e?.WITH_CREDENTIALS??!1,CREDENTIALS:e?.CREDENTIALS??"include",TOKEN:e?.TOKEN,USERNAME:e?.USERNAME,PASSWORD:e?.PASSWORD,HEADERS:e?.HEADERS,ENCODE_PATH:e?.ENCODE_PATH}),this.default=new u(this.request),this.evmBalances=new E(this.request),this.evmBlocks=new I(this.request),this.evmChains=new k(this.request),this.evmContracts=new R(this.request),this.evmTransactions=new N(this.request),this.glacierApiUsageMetrics=new A(this.request),this.healthCheck=new m(this.request),this.nfTs=new S(this.request),this.operations=new _(this.request),this.primaryNetwork=new C(this.request),this.primaryNetworkBalances=new g(this.request),this.primaryNetworkBlocks=new x(this.request),this.primaryNetworkRewards=new y(this.request),this.primaryNetworkTransactions=new O(this.request),this.primaryNetworkUtxOs=new q(this.request),this.primaryNetworkVertices=new v(this.request),this.rpc=new D(this.request),this.teleporter=new w(this.request),this.webhooks=new b(this.request)}},exports.GlacierApiFeature=he,exports.GlacierApiUsageMetricsService=A,exports.HealthCheckService=m,exports.InternalTransactionOpCall=Te,exports.Network=le,exports.NetworkType=ue,exports.NfTsService=S,exports.NftTokenMetadataStatus=Ee,exports.OpenAPI={BASE:"https://glacier-api-dev.avax.network",VERSION:"Beta",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0},exports.OperationStatus=Ie,exports.OperationStatusCode=ke,exports.OperationType=Re,exports.OperationsService=_,exports.PChainId=Ne,exports.PChainTransactionType=Ae,exports.PrimaryNetwork=Se,exports.PrimaryNetworkAssetCap=_e,exports.PrimaryNetworkAssetType=Ce,exports.PrimaryNetworkBalancesService=g,exports.PrimaryNetworkBlocksService=x,exports.PrimaryNetworkChainName=ge,exports.PrimaryNetworkOperationType=xe,exports.PrimaryNetworkRewardsService=y,exports.PrimaryNetworkService=C,exports.PrimaryNetworkTransactionsService=O,exports.PrimaryNetworkTxType=ye,exports.PrimaryNetworkUtxOsService=q,exports.PrimaryNetworkVerticesService=v,exports.RequestType=qe,exports.ResourceLinkType=ve,exports.RewardType=De,exports.RpcService=D,exports.SortByOption=we,exports.SortOrder=be,exports.TeleporterService=w,exports.TimeIntervalGranularityExtended=Pe,exports.TransactionMethodType=Le,exports.TransactionStatus=Ve,exports.UsageMetricsGroupByEnum=fe,exports.UtxoType=He,exports.ValidationStatusType=Xe,exports.VmName=Ke,exports.WebhookStatus=We,exports.WebhookStatusType=ze,exports.WebhooksService=b,exports.XChainId=Ye,exports.XChainTransactionType=Fe;
1
+ "use strict";class e{constructor(e){this.config=e}}class r extends Error{url;status;statusText;body;request;constructor(e,r,t){super(t),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}}class t extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class s{#e;#r;#t;#s;#n;#a;#i;constructor(e){this.#e=!1,this.#r=!1,this.#t=!1,this.#s=[],this.#n=new Promise(((r,t)=>{this.#a=r,this.#i=t;const s=e=>{this.#e||this.#r||this.#t||this.#s.push(e)};return Object.defineProperty(s,"isResolved",{get:()=>this.#e}),Object.defineProperty(s,"isRejected",{get:()=>this.#r}),Object.defineProperty(s,"isCancelled",{get:()=>this.#t}),e((e=>{this.#e||this.#r||this.#t||(this.#e=!0,this.#a?.(e))}),(e=>{this.#e||this.#r||this.#t||(this.#r=!0,this.#i?.(e))}),s)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return this.#n.then(e,r)}catch(e){return this.#n.catch(e)}finally(e){return this.#n.finally(e)}cancel(){if(!(this.#e||this.#r||this.#t)){if(this.#t=!0,this.#s.length)try{for(const e of this.#s)e()}catch(e){return void console.warn("Cancellation threw an error",e)}this.#s.length=0,this.#i?.(new t("Request aborted"))}}get isCancelled(){return this.#t}}const n=e=>null!=e,a=e=>"string"==typeof e,i=e=>a(e)&&""!==e,o=e=>"object"==typeof e&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.arrayBuffer&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]),h=e=>e instanceof FormData,d=e=>{const r=[],t=(e,s)=>{n(s)&&(Array.isArray(s)?s.forEach((r=>{t(e,r)})):"object"==typeof s?Object.entries(s).forEach((([r,s])=>{t(`${e}[${r}]`,s)})):((e,t)=>{r.push(`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`)})(e,s))};return Object.entries(e).forEach((([e,r])=>{t(e,r)})),r.length>0?`?${r.join("&")}`:""},c=async(e,r)=>"function"==typeof r?r(e):r,u=async(e,r)=>{const t=await c(r,e.TOKEN),s=await c(r,e.USERNAME),d=await c(r,e.PASSWORD),u=await c(r,e.HEADERS),l=Object.entries({Accept:"application/json",...u,...r.headers}).filter((([e,r])=>n(r))).reduce(((e,[r,t])=>({...e,[r]:String(t)})),{});if(i(t)&&(l.Authorization=`Bearer ${t}`),i(s)&&i(d)){const e=(e=>{try{return btoa(e)}catch(r){return Buffer.from(e).toString("base64")}})(`${s}:${d}`);l.Authorization=`Basic ${e}`}return r.body&&(r.mediaType?l["Content-Type"]=r.mediaType:o(r.body)?l["Content-Type"]=r.body.type||"application/octet-stream":a(r.body)?l["Content-Type"]="text/plain":h(r.body)||(l["Content-Type"]="application/json")),new Headers(l)},l=(e,t)=>new s((async(s,i,c)=>{try{const i=((e,r)=>{const t=e.ENCODE_PATH||encodeURI,s=r.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,((e,s)=>r.path?.hasOwnProperty(s)?t(String(r.path[s])):e)),n=`${e.BASE}${s}`;return r.query?`${n}${d(r.query)}`:n})(e,t),l=(e=>{if(e.formData){const r=new FormData,t=(e,t)=>{a(t)||o(t)?r.append(e,t):r.append(e,JSON.stringify(t))};return Object.entries(e.formData).filter((([e,r])=>n(r))).forEach((([e,r])=>{Array.isArray(r)?r.forEach((r=>t(e,r))):t(e,r)})),r}})(t),p=(e=>{if(void 0!==e.body)return e.mediaType?.includes("/json")?JSON.stringify(e.body):a(e.body)||o(e.body)||h(e.body)?e.body:JSON.stringify(e.body)})(t),m=await u(e,t);if(!c.isCancelled){const n=await(async(e,r,t,s,n,a,i)=>{const o=new AbortController,h={headers:a,body:s??n,method:r.method,signal:o.signal};return e.WITH_CREDENTIALS&&(h.credentials=e.CREDENTIALS),i((()=>o.abort())),await fetch(t,h)})(e,t,i,p,l,m,c),o=await(async e=>{if(204!==e.status)try{const r=e.headers.get("Content-Type");if(r)return["application/json","application/problem+json"].some((e=>r.toLowerCase().startsWith(e)))?await e.json():await e.text()}catch(e){console.error(e)}})(n),h=((e,r)=>{if(r){const t=e.headers.get(r);if(a(t))return t}})(n,t.responseHeader),d={url:i,ok:n.ok,status:n.status,statusText:n.statusText,body:h??o};((e,t)=>{const s={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...e.errors}[t.status];if(s)throw new r(e,t,s);if(!t.ok)throw new r(e,t,"Generic Error")})(t,d),s(d.body)}}catch(e){i(e)}}));class p extends e{constructor(e){super(e)}request(e){return l(this.config,e)}}class m{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,requestPath:i,responseCode:o,requestType:h,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,requestPath:i,responseCode:o,requestType:h,apiKeyId:d},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getApiLogs({orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,requestPath:n,responseCode:a,requestType:i,apiKeyId:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,requestPath:n,responseCode:a,requestType:i,apiKeyId:o,pageToken:h,pageSize:d},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getRpcUsageMetrics({timeInterval:e="day",startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,requestPath:a,responseCode:i,rpcMethod:o,rlBypassApiToken:h}){return this.httpRequest.request({method:"GET",url:"/v1/rpcUsageMetrics",query:{timeInterval:e,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,requestPath:a,responseCode:i,rpcMethod:o,rlBypassApiToken:h},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}class T{constructor(e){this.httpRequest=e}mediaControllerUploadImage(){return this.httpRequest.request({method:"POST",url:"/v1/media/uploadImage"})}}class v{constructor(e){this.httpRequest=e}getNativeBalance({chainId:e,address:r,blockNumber:t,currency:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:getNative",path:{chainId:e,address:r},query:{blockNumber:t,currency:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc20Balances({chainId:e,address:r,blockNumber:t,pageToken:s,pageSize:n=10,filterSpamTokens:a=!0,contractAddresses:i,currency:o}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc20",path:{chainId:e,address:r},query:{blockNumber:t,pageToken:s,pageSize:n,filterSpamTokens:a,contractAddresses:i,currency: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."}})}listErc721Balances({chainId:e,address:r,pageToken:t,pageSize:s=10,contractAddress:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc721",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s,contractAddress: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."}})}listErc1155Balances({chainId:e,address:r,blockNumber:t,pageToken:s,pageSize:n=10,contractAddress:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",path:{chainId:e,address:r},query:{blockNumber:t,pageToken:s,pageSize:n,contractAddress: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."}})}listCollectibleBalances({chainId:e,address:r,pageToken:t,pageSize:s=10,contractAddress:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s,contractAddress: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."}})}}class y{constructor(e){this.httpRequest=e}getLatestBlocks({chainId:e,pageToken:r,pageSize:t=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks",path:{chainId:e},query:{pageToken:r,pageSize:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getBlock({chainId:e,blockId:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}",path:{chainId:e,blockId:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}class g{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."}})}}class w{constructor(e){this.httpRequest=e}getContractMetadata({chainId:e,address:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}",path:{chainId:e,address: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."}})}updateContractInfo({chainId:e,address:r,requestBody:t}){return this.httpRequest.request({method:"PATCH",url:"/v1/chains/{chainId}/contracts/{address}",path:{chainId:e,address:r},body:t,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}class b{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:r,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:r},query:{currency:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listContractDeployments({chainId:e,address:r,pageToken:t,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTransfers({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listTransactions({chainId:e,address:r,pageToken:t,pageSize:s=10,startBlock:n,endBlock:a,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s,startBlock:n,endBlock:a,sortOrder:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listNativeTransactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc20Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc721Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listErc1155Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listInternalTransactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getTransaction({chainId:e,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getTransactionsForBlock({chainId:e,blockId:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listLatestTransactions({chainId:e,pageToken:r,pageSize:t=10,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:r,pageSize:t,status:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}class f{constructor(e){this.httpRequest=e}dataHealthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}class E{constructor(e){this.httpRequest=e}reindexNft({chainId:e,address:r,tokenId:t}){return this.httpRequest.request({method:"POST",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",path:{chainId:e,address:r,tokenId: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."}})}listTokens({chainId:e,address:r,pageToken:t,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getTokenDetails({chainId:e,address:r,tokenId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",path:{chainId:e,address:r,tokenId: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."}})}}class S{constructor(e){this.httpRequest=e}getOperationResult({operationId:e}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId: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."}})}postTransactionExportJob({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",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."}})}}class q{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:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}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:s,sortBy:n,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:c,minFeePercentage:u,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:T}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:s,sortBy:n,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:c,minFeePercentage:u,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId: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."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:s=10,validationStatus:n,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:s,validationStatus:n,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:s,sortOrder:n,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:s,sortOrder:n,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:s,includeInactiveSovs:n,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnetOnlyValidators",path:{network:e},query:{pageToken:r,pageSize:t,sovValidationId:s,includeInactiveSovs:n,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."}})}}class R{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:r,blockTimestamp:t,addresses:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:r},query:{blockTimestamp:t,addresses:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}class k{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:r,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:r,blockId: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."}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:r,nodeId:t,pageToken:s,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:r,nodeId:t},query:{pageToken:s,pageSize:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:r,pageToken:t,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:r},query:{pageToken:t,pageSize:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}class x{constructor(e){this.httpRequest=e}listPendingPrimaryNetworkRewards({network:e,addresses:r,pageToken:t,pageSize:s=10,nodeIds:n,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards:listPending",path:{network:e},query:{addresses:r,pageToken:t,pageSize:s,nodeIds:n,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."}})}listHistoricalPrimaryNetworkRewards({network:e,addresses:r,pageToken:t,pageSize:s=10,nodeIds:n,sortOrder:a,currency:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards",path:{network:e},query:{addresses:r,pageToken:t,pageSize:s,nodeIds:n,sortOrder:a,currency: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."}})}}class I{constructor(e){this.httpRequest=e}getTxByHash({blockchainId:e,network:r,txHash:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:e,network:r,txHash: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."}})}listLatestPrimaryNetworkTransactions({blockchainId:e,network:r,addresses:t,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:r},query:{addresses:t,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:r,addresses:t,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:r},query:{addresses:t,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:r,assetId:t,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:r,assetId:t},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."}})}}class N{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:s,pageSize:n=10,assetId:a,includeSpent:i,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{addresses:t,pageToken:s,pageSize:n,assetId:a,includeSpent:i,sortOrder:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}class A{constructor(e){this.httpRequest=e}listLatestXChainVertices({blockchainId:e,network:r,pageToken:t,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices",path:{blockchainId:e,network:r},query:{pageToken:t,pageSize:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getVertexByHash({vertexHash:e,blockchainId:r,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}",path:{vertexHash:e,blockchainId:r,network:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getVertexByHeight({vertexHeight:e,blockchainId:r,network:t,pageToken:s,pageSize:n=10,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight",path:{blockchainId:r,network:t},query:{vertexHeight:e,pageToken:s,pageSize:n,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."}})}}class _{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."}})}}class C{constructor(e){this.httpRequest=e}getTeleporterMessage({messageId:e}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages/{messageId}",path:{messageId: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."}})}listTeleporterMessages({pageToken:e,pageSize:r=10,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network:o}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/messages",query:{pageToken:e,pageSize:r,sourceBlockchainId:t,destinationBlockchainId:s,blockchainId:n,to:a,from:i,network: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."}})}listTeleporterMessagesByAddress({address:e,pageToken:r,pageSize:t=10,network:s}){return this.httpRequest.request({method:"GET",url:"/v1/teleporter/addresses/{address}/messages",path:{address:e},query:{pageToken:r,pageSize:t,network:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}class O{constructor(e){this.httpRequest=e}createWebhook({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/webhooks",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."}})}listWebhooks({pageToken:e,pageSize:r=10,status:t}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks",query:{pageToken:e,pageSize:r,status: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."}})}getWebhook({id:e}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}",path:{id: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."}})}deactivateWebhook({id:e}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}",path:{id: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."}})}updateWebhook({id:e,requestBody:r}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}",path:{id: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."}})}generateSharedSecret(){return this.httpRequest.request({method:"POST",url:"/v1/webhooks:generateOrRotateSharedSecret",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."}})}getSharedSecret(){return this.httpRequest.request({method:"GET",url:"/v1/webhooks:getSharedSecret",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."}})}addAddressesToWebhook({id:e,requestBody:r}){return this.httpRequest.request({method:"PATCH",url:"/v1/webhooks/{id}/addresses",path:{id: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."}})}removeAddressesFromWebhook({id:e,requestBody:r}){return this.httpRequest.request({method:"DELETE",url:"/v1/webhooks/{id}/addresses",path:{id: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."}})}getAddressesFromWebhook({id:e,pageToken:r,pageSize:t=10}){return this.httpRequest.request({method:"GET",url:"/v1/webhooks/{id}/addresses",path:{id:e},query:{pageToken:r,pageSize:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}var B,D;exports.ActiveDelegatorDetails=void 0,((B=exports.ActiveDelegatorDetails||(exports.ActiveDelegatorDetails={})).delegationStatus||(B.delegationStatus={})).ACTIVE="active",exports.ActiveValidatorDetails=void 0,((D=exports.ActiveValidatorDetails||(exports.ActiveValidatorDetails={})).validationStatus||(D.validationStatus={})).ACTIVE="active";var L,W,U=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e.TELEPORTER="teleporter",e))(U||{}),P=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V="2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",e._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",e.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",e.V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU="vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(P||{}),V=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V="2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",e._2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5="2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",e.Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP="yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",e.V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU="vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",e))(V||{});exports.CChainExportTransaction=void 0,((L=exports.CChainExportTransaction||(exports.CChainExportTransaction={})).txType||(L.txType={})).EXPORT_TX="ExportTx",exports.CChainImportTransaction=void 0,((W=exports.CChainImportTransaction||(exports.CChainImportTransaction={})).txType||(W.txType={})).IMPORT_TX="ImportTx";var z,M,H,G,X,K,Y=(e=>(e.OK="OK",e.UNAVAILABLE="UNAVAILABLE",e))(Y||{});exports.CompletedDelegatorDetails=void 0,((z=exports.CompletedDelegatorDetails||(exports.CompletedDelegatorDetails={})).delegationStatus||(z.delegationStatus={})).COMPLETED="completed",exports.CompletedValidatorDetails=void 0,((M=exports.CompletedValidatorDetails||(exports.CompletedValidatorDetails={})).validationStatus||(M.validationStatus={})).COMPLETED="completed",exports.ContractSubmissionErc1155=void 0,((H=exports.ContractSubmissionErc1155||(exports.ContractSubmissionErc1155={})).ercType||(H.ercType={})).ERC_1155="ERC-1155",exports.ContractSubmissionErc20=void 0,((G=exports.ContractSubmissionErc20||(exports.ContractSubmissionErc20={})).ercType||(G.ercType={})).ERC_20="ERC-20",exports.ContractSubmissionErc721=void 0,((X=exports.ContractSubmissionErc721||(exports.ContractSubmissionErc721={})).ercType||(X.ercType={})).ERC_721="ERC-721",exports.ContractSubmissionUnknown=void 0,((K=exports.ContractSubmissionUnknown||(exports.ContractSubmissionUnknown={})).ercType||(K.ercType={})).UNKNOWN="UNKNOWN";var F,J,j,Q,Z,$,ee,re,te,se,ne,ae=(e=>(e.USD="usd",e.EUR="eur",e.AUD="aud",e.CAD="cad",e.CHF="chf",e.CLP="clp",e.CNY="cny",e.CZK="czk",e.DKK="dkk",e.GBP="gbp",e.HKD="hkd",e.HUF="huf",e.JPY="jpy",e.NZD="nzd",e))(ae||{}),ie=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e))(ie||{});exports.DeliveredSourceNotIndexedTeleporterMessage=void 0,((F=exports.DeliveredSourceNotIndexedTeleporterMessage||(exports.DeliveredSourceNotIndexedTeleporterMessage={})).status||(F.status={})).DELIVERED_SOURCE_NOT_INDEXED="delivered_source_not_indexed",exports.DeliveredTeleporterMessage=void 0,((J=exports.DeliveredTeleporterMessage||(exports.DeliveredTeleporterMessage={})).status||(J.status={})).DELIVERED="delivered",exports.Erc1155Contract=void 0,((j=exports.Erc1155Contract||(exports.Erc1155Contract={})).ercType||(j.ercType={})).ERC_1155="ERC-1155",exports.Erc1155Token=void 0,((Q=exports.Erc1155Token||(exports.Erc1155Token={})).ercType||(Q.ercType={})).ERC_1155="ERC-1155",exports.Erc1155TokenBalance=void 0,((Z=exports.Erc1155TokenBalance||(exports.Erc1155TokenBalance={})).ercType||(Z.ercType={})).ERC_1155="ERC-1155",exports.Erc20Contract=void 0,(($=exports.Erc20Contract||(exports.Erc20Contract={})).ercType||($.ercType={})).ERC_20="ERC-20",exports.Erc20Token=void 0,((ee=exports.Erc20Token||(exports.Erc20Token={})).ercType||(ee.ercType={})).ERC_20="ERC-20",exports.Erc20TokenBalance=void 0,((re=exports.Erc20TokenBalance||(exports.Erc20TokenBalance={})).ercType||(re.ercType={})).ERC_20="ERC-20",exports.Erc721Contract=void 0,((te=exports.Erc721Contract||(exports.Erc721Contract={})).ercType||(te.ercType={})).ERC_721="ERC-721",exports.Erc721Token=void 0,((se=exports.Erc721Token||(exports.Erc721Token={})).ercType||(se.ercType={})).ERC_721="ERC-721",exports.Erc721TokenBalance=void 0,((ne=exports.Erc721TokenBalance||(exports.Erc721TokenBalance={})).ercType||(ne.ercType={})).ERC_721="ERC-721";var oe,he,de,ce=(e=>(e.ADDRESS_ACTIVITY="address_activity",e))(ce||{}),ue=(e=>(e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(ue||{}),le=(e=>(e.UNKNOWN="UNKNOWN",e.CALL="CALL",e.CREATE="CREATE",e.CREATE2="CREATE2",e.CALLCODE="CALLCODE",e.DELEGATECALL="DELEGATECALL",e.STATICCALL="STATICCALL",e))(le||{}),pe=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.TESTNET="testnet",e.DEVNET="devnet",e))(pe||{}),me=(e=>(e.UNKNOWN="UNKNOWN",e.MISSING_TOKEN="MISSING_TOKEN",e.INVALID_TOKEN_URI="INVALID_TOKEN_URI",e.INVALID_TOKEN_URI_SCHEME="INVALID_TOKEN_URI_SCHEME",e.UNREACHABLE_TOKEN_URI="UNREACHABLE_TOKEN_URI",e.THROTTLED_TOKEN_URI="THROTTLED_TOKEN_URI",e.METADATA_CONTENT_TOO_LARGE="METADATA_CONTENT_TOO_LARGE",e.INVALID_METADATA="INVALID_METADATA",e.INVALID_METADATA_JSON="INVALID_METADATA_JSON",e.INDEXED="INDEXED",e.UNINDEXED="UNINDEXED",e))(me||{}),Te=(e=>(e.RUNNING="RUNNING",e.COMPLETED="COMPLETED",e.COMPLETED_WITH_WARNING="COMPLETED_WITH_WARNING",e.FAILED="FAILED",e))(Te||{}),ve=(e=>(e.ERR_INVALID_REQUEST="ErrInvalidRequest",e.ERR_INTERNAL="ErrInternal",e.WARN_TRUNCATED_EXPORT="WarnTruncatedExport",e))(ve||{}),ye=(e=>(e.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(ye||{}),ge=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e.P_CHAIN="p-chain",e))(ge||{}),we=(e=>(e.ADD_VALIDATOR_TX="AddValidatorTx",e.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",e.ADD_DELEGATOR_TX="AddDelegatorTx",e.CREATE_CHAIN_TX="CreateChainTx",e.CREATE_SUBNET_TX="CreateSubnetTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.ADVANCE_TIME_TX="AdvanceTimeTx",e.REWARD_VALIDATOR_TX="RewardValidatorTx",e.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",e.TRANSFORM_SUBNET_TX="TransformSubnetTx",e.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",e.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",e.BASE_TX="BaseTx",e.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",e.CONVERT_SUBNET_TX="ConvertSubnetTx",e.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",e.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",e.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",e.INCREASE_BALANCE_TX="IncreaseBalanceTx",e.UNKNOWN="UNKNOWN",e))(we||{});exports.PendingDelegatorDetails=void 0,((oe=exports.PendingDelegatorDetails||(exports.PendingDelegatorDetails={})).delegationStatus||(oe.delegationStatus={})).PENDING="pending",exports.PendingTeleporterMessage=void 0,((he=exports.PendingTeleporterMessage||(exports.PendingTeleporterMessage={})).status||(he.status={})).PENDING="pending",exports.PendingValidatorDetails=void 0,((de=exports.PendingValidatorDetails||(exports.PendingValidatorDetails={})).validationStatus||(de.validationStatus={})).PENDING="pending";var be,fe=(e=>(e.FIXED="fixed",e.VARIABLE="variable",e))(fe||{}),Ee=(e=>(e.SECP256K1="secp256k1",e.NFT="nft",e))(Ee||{}),Se=(e=>(e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(Se||{}),qe=(e=>(e.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",e.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",e))(qe||{}),Re=(e=>(e.ADD_VALIDATOR_TX="AddValidatorTx",e.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",e.ADD_DELEGATOR_TX="AddDelegatorTx",e.CREATE_CHAIN_TX="CreateChainTx",e.CREATE_SUBNET_TX="CreateSubnetTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.ADVANCE_TIME_TX="AdvanceTimeTx",e.REWARD_VALIDATOR_TX="RewardValidatorTx",e.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",e.TRANSFORM_SUBNET_TX="TransformSubnetTx",e.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",e.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",e.BASE_TX="BaseTx",e.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",e.CONVERT_SUBNET_TX="ConvertSubnetTx",e.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",e.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",e.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",e.INCREASE_BALANCE_TX="IncreaseBalanceTx",e.UNKNOWN="UNKNOWN",e.CREATE_ASSET_TX="CreateAssetTx",e.OPERATION_TX="OperationTx",e))(Re||{});exports.RemovedValidatorDetails=void 0,((be=exports.RemovedValidatorDetails||(exports.RemovedValidatorDetails={})).validationStatus||(be.validationStatus={})).REMOVED="removed";var ke,xe,Ie=(e=>(e.DATA="data",e.RPC="rpc",e))(Ie||{}),Ne=(e=>(e.BLOG="Blog",e.COIN_GECKO="CoinGecko",e.COIN_MARKET_CAP="CoinMarketCap",e.DISCORD="Discord",e.DOCUMENTATION="Documentation",e.FACEBOOK="Facebook",e.GITHUB="Github",e.INSTAGRAM="Instagram",e.LINKED_IN="LinkedIn",e.MEDIUM="Medium",e.REDDIT="Reddit",e.SUPPORT="Support",e.TELEGRAM="Telegram",e.TIK_TOK="TikTok",e.TWITTER="Twitter",e.WEBSITE="Website",e.WHITEPAPER="Whitepaper",e.YOUTUBE="Youtube",e))(Ne||{}),Ae=(e=>(e.VALIDATOR="VALIDATOR",e.DELEGATOR="DELEGATOR",e.VALIDATOR_FEE="VALIDATOR_FEE",e))(Ae||{});exports.RpcUsageMetricsValueAggregated=void 0,ke=exports.RpcUsageMetricsValueAggregated||(exports.RpcUsageMetricsValueAggregated={}),(xe=ke.groupedBy||(ke.groupedBy={})).RPC_METHOD="rpcMethod",xe.RESPONSE_CODE="responseCode",xe.RL_BYPASS_TOKEN="rlBypassToken",xe.NONE="None";var _e,Ce=(e=>(e.BLOCK_INDEX="blockIndex",e.DELEGATION_CAPACITY="delegationCapacity",e.TIME_REMAINING="timeRemaining",e.DELEGATION_FEE="delegationFee",e.UPTIME_PERFORMANCE="uptimePerformance",e))(Ce||{}),Oe=(e=>(e.ASC="asc",e.DESC="desc",e))(Oe||{});exports.TeleporterRewardDetails=void 0,((_e=exports.TeleporterRewardDetails||(exports.TeleporterRewardDetails={})).ercType||(_e.ercType={})).ERC_20="ERC-20";var Be,De=(e=>(e.MINUTE="minute",e.HOURLY="hourly",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e))(De||{}),Le=(e=>(e.SOURCE_TRANSACTION="SOURCE_TRANSACTION",e.DESTINATION_TRANSACTION="DESTINATION_TRANSACTION",e))(Le||{}),We=(e=>(e.NATIVE_TRANSFER="NATIVE_TRANSFER",e.CONTRACT_CALL="CONTRACT_CALL",e.CONTRACT_CREATION="CONTRACT_CREATION",e))(We||{}),Ue=(e=>(e.FAILED="failed",e.SUCCESS="success",e))(Ue||{});exports.UnknownContract=void 0,((Be=exports.UnknownContract||(exports.UnknownContract={})).ercType||(Be.ercType={})).UNKNOWN="UNKNOWN";var Pe,Ve=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.CHAIN_ID="chainId",e.API_KEY_ID="apiKeyId",e.REQUEST_TYPE="requestType",e))(Ve||{});exports.UsageMetricsValueDTO=void 0,(e=>{e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.CHAIN_ID="chainId",e.API_KEY_ID="apiKeyId",e.REQUEST_TYPE="requestType",e.NONE="None"})((Pe=exports.UsageMetricsValueDTO||(exports.UsageMetricsValueDTO={})).groupedBy||(Pe.groupedBy={}));var ze,Me,He,Ge=(e=>(e.STAKE="STAKE",e.TRANSFER="TRANSFER",e))(Ge||{}),Xe=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(Xe||{}),Ke=(e=>(e.EVM="EVM",e.BITCOIN="BITCOIN",e.ETHEREUM="ETHEREUM",e))(Ke||{}),Ye=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(Ye||{}),Fe=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(Fe||{}),Je=(e=>(e._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",e._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",e._2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V="2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",e.X_CHAIN="x-chain",e))(Je||{});exports.XChainLinearTransaction=void 0,ze=exports.XChainLinearTransaction||(exports.XChainLinearTransaction={}),(Me=ze.chainFormat||(ze.chainFormat={})).NON_LINEAR="non-linear",Me.LINEAR="linear",exports.XChainNonLinearTransaction=void 0,(e=>{e.NON_LINEAR="non-linear",e.LINEAR="linear"})((He=exports.XChainNonLinearTransaction||(exports.XChainNonLinearTransaction={})).chainFormat||(He.chainFormat={}));var je=(e=>(e.BASE_TX="BaseTx",e.CREATE_ASSET_TX="CreateAssetTx",e.OPERATION_TX="OperationTx",e.IMPORT_TX="ImportTx",e.EXPORT_TX="ExportTx",e.UNKNOWN="UNKNOWN",e))(je||{});exports.ApiError=r,exports.ApiFeature=U,exports.BaseHttpRequest=e,exports.BlockchainId=P,exports.BlockchainIds=V,exports.CancelError=t,exports.CancelablePromise=s,exports.ChainStatus=Y,exports.CurrencyCode=ae,exports.DataApiUsageMetricsService=m,exports.DefaultService=T,exports.DelegationStatusType=ie,exports.EVMOperationType=ue,exports.EventType=ce,exports.EvmBalancesService=v,exports.EvmBlocksService=y,exports.EvmChainsService=g,exports.EvmContractsService=w,exports.EvmTransactionsService=b,exports.Glacier=class{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(e,r=p){this.request=new r({BASE:e?.BASE??"https://glacier-api-dev.avax.network",VERSION:e?.VERSION??"Beta",WITH_CREDENTIALS:e?.WITH_CREDENTIALS??!1,CREDENTIALS:e?.CREDENTIALS??"include",TOKEN:e?.TOKEN,USERNAME:e?.USERNAME,PASSWORD:e?.PASSWORD,HEADERS:e?.HEADERS,ENCODE_PATH:e?.ENCODE_PATH}),this.dataApiUsageMetrics=new m(this.request),this.default=new T(this.request),this.evmBalances=new v(this.request),this.evmBlocks=new y(this.request),this.evmChains=new g(this.request),this.evmContracts=new w(this.request),this.evmTransactions=new b(this.request),this.healthCheck=new f(this.request),this.nfTs=new E(this.request),this.operations=new S(this.request),this.primaryNetwork=new q(this.request),this.primaryNetworkBalances=new R(this.request),this.primaryNetworkBlocks=new k(this.request),this.primaryNetworkRewards=new x(this.request),this.primaryNetworkTransactions=new I(this.request),this.primaryNetworkUtxOs=new N(this.request),this.primaryNetworkVertices=new A(this.request),this.signatureAggregator=new _(this.request),this.teleporter=new C(this.request),this.webhooks=new O(this.request)}},exports.HealthCheckService=f,exports.InternalTransactionOpCall=le,exports.Network=pe,exports.NfTsService=E,exports.NftTokenMetadataStatus=me,exports.OpenAPI={BASE:"https://glacier-api-dev.avax.network",VERSION:"Beta",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0},exports.OperationStatus=Te,exports.OperationStatusCode=ve,exports.OperationType=ye,exports.OperationsService=S,exports.PChainId=ge,exports.PChainTransactionType=we,exports.PrimaryNetworkAssetCap=fe,exports.PrimaryNetworkAssetType=Ee,exports.PrimaryNetworkBalancesService=R,exports.PrimaryNetworkBlocksService=k,exports.PrimaryNetworkChainName=Se,exports.PrimaryNetworkOperationType=qe,exports.PrimaryNetworkRewardsService=x,exports.PrimaryNetworkService=q,exports.PrimaryNetworkTransactionsService=I,exports.PrimaryNetworkTxType=Re,exports.PrimaryNetworkUtxOsService=N,exports.PrimaryNetworkVerticesService=A,exports.RequestType=Ie,exports.ResourceLinkType=Ne,exports.RewardType=Ae,exports.SignatureAggregatorService=_,exports.SortByOption=Ce,exports.SortOrder=Oe,exports.TeleporterService=C,exports.TimeIntervalGranularityExtended=De,exports.TransactionDirectionType=Le,exports.TransactionMethodType=We,exports.TransactionStatus=Ue,exports.UsageMetricsGroupByEnum=Ve,exports.UtxoType=Ge,exports.ValidationStatusType=Xe,exports.VmName=Ke,exports.WebhookStatus=Ye,exports.WebhookStatusType=Fe,exports.WebhooksService=O,exports.XChainId=Je,exports.XChainTransactionType=je;
@@ -1,12 +1,12 @@
1
1
  import { BaseHttpRequest } from './core/BaseHttpRequest.js';
2
2
  import { OpenAPIConfig } from './core/OpenAPI.js';
3
+ import { DataApiUsageMetricsService } from './services/DataApiUsageMetricsService.js';
3
4
  import { DefaultService } from './services/DefaultService.js';
4
5
  import { EvmBalancesService } from './services/EvmBalancesService.js';
5
6
  import { EvmBlocksService } from './services/EvmBlocksService.js';
6
7
  import { EvmChainsService } from './services/EvmChainsService.js';
7
8
  import { EvmContractsService } from './services/EvmContractsService.js';
8
9
  import { EvmTransactionsService } from './services/EvmTransactionsService.js';
9
- import { GlacierApiUsageMetricsService } from './services/GlacierApiUsageMetricsService.js';
10
10
  import { HealthCheckService } from './services/HealthCheckService.js';
11
11
  import { NfTsService } from './services/NfTsService.js';
12
12
  import { OperationsService } from './services/OperationsService.js';
@@ -17,19 +17,19 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
17
17
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
18
18
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
19
19
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
20
- import { RpcService } from './services/RpcService.js';
20
+ import { SignatureAggregatorService } from './services/SignatureAggregatorService.js';
21
21
  import { TeleporterService } from './services/TeleporterService.js';
22
22
  import { WebhooksService } from './services/WebhooksService.js';
23
23
 
24
24
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
25
25
  declare class Glacier {
26
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
26
27
  readonly default: DefaultService;
27
28
  readonly evmBalances: EvmBalancesService;
28
29
  readonly evmBlocks: EvmBlocksService;
29
30
  readonly evmChains: EvmChainsService;
30
31
  readonly evmContracts: EvmContractsService;
31
32
  readonly evmTransactions: EvmTransactionsService;
32
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
33
33
  readonly healthCheck: HealthCheckService;
34
34
  readonly nfTs: NfTsService;
35
35
  readonly operations: OperationsService;
@@ -40,7 +40,7 @@ declare class Glacier {
40
40
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
41
41
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
42
42
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
43
- readonly rpc: RpcService;
43
+ readonly signatureAggregator: SignatureAggregatorService;
44
44
  readonly teleporter: TeleporterService;
45
45
  readonly webhooks: WebhooksService;
46
46
  readonly request: BaseHttpRequest;
@@ -1 +1 @@
1
- import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DefaultService as r}from"./services/DefaultService.js";import{EvmBalancesService as s}from"./services/EvmBalancesService.js";import{EvmBlocksService as t}from"./services/EvmBlocksService.js";import{EvmChainsService as i}from"./services/EvmChainsService.js";import{EvmContractsService as o}from"./services/EvmContractsService.js";import{EvmTransactionsService as c}from"./services/EvmTransactionsService.js";import{GlacierApiUsageMetricsService as m}from"./services/GlacierApiUsageMetricsService.js";import{HealthCheckService as a}from"./services/HealthCheckService.js";import{NfTsService as h}from"./services/NfTsService.js";import{OperationsService as v}from"./services/OperationsService.js";import{PrimaryNetworkService as n}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as p}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as w}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as S}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as k}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as N}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as E}from"./services/PrimaryNetworkVerticesService.js";import{RpcService as u}from"./services/RpcService.js";import{TeleporterService as f}from"./services/TeleporterService.js";import{WebhooksService as l}from"./services/WebhooksService.js";class q{default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;glacierApiUsageMetrics;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;rpc;teleporter;webhooks;request;constructor(q,j=e){this.request=new j({BASE:q?.BASE??"https://glacier-api-dev.avax.network",VERSION:q?.VERSION??"Beta",WITH_CREDENTIALS:q?.WITH_CREDENTIALS??!1,CREDENTIALS:q?.CREDENTIALS??"include",TOKEN:q?.TOKEN,USERNAME:q?.USERNAME,PASSWORD:q?.PASSWORD,HEADERS:q?.HEADERS,ENCODE_PATH:q?.ENCODE_PATH}),this.default=new r(this.request),this.evmBalances=new s(this.request),this.evmBlocks=new t(this.request),this.evmChains=new i(this.request),this.evmContracts=new o(this.request),this.evmTransactions=new c(this.request),this.glacierApiUsageMetrics=new m(this.request),this.healthCheck=new a(this.request),this.nfTs=new h(this.request),this.operations=new v(this.request),this.primaryNetwork=new n(this.request),this.primaryNetworkBalances=new p(this.request),this.primaryNetworkBlocks=new w(this.request),this.primaryNetworkRewards=new S(this.request),this.primaryNetworkTransactions=new k(this.request),this.primaryNetworkUtxOs=new N(this.request),this.primaryNetworkVertices=new E(this.request),this.rpc=new u(this.request),this.teleporter=new f(this.request),this.webhooks=new l(this.request)}}export{q as Glacier};
1
+ import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as c}from"./services/HealthCheckService.js";import{NfTsService as h}from"./services/NfTsService.js";import{OperationsService as v}from"./services/OperationsService.js";import{PrimaryNetworkService as n}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as p}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as w}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as S}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as k}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as N}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as u}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as E}from"./services/SignatureAggregatorService.js";import{TeleporterService as f}from"./services/TeleporterService.js";import{WebhooksService as l}from"./services/WebhooksService.js";class q{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(q,j=e){this.request=new j({BASE:q?.BASE??"https://glacier-api-dev.avax.network",VERSION:q?.VERSION??"Beta",WITH_CREDENTIALS:q?.WITH_CREDENTIALS??!1,CREDENTIALS:q?.CREDENTIALS??"include",TOKEN:q?.TOKEN,USERNAME:q?.USERNAME,PASSWORD:q?.PASSWORD,HEADERS:q?.HEADERS,ENCODE_PATH:q?.ENCODE_PATH}),this.dataApiUsageMetrics=new r(this.request),this.default=new s(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new i(this.request),this.evmChains=new o(this.request),this.evmContracts=new a(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new c(this.request),this.nfTs=new h(this.request),this.operations=new v(this.request),this.primaryNetwork=new n(this.request),this.primaryNetworkBalances=new p(this.request),this.primaryNetworkBlocks=new w(this.request),this.primaryNetworkRewards=new S(this.request),this.primaryNetworkTransactions=new k(this.request),this.primaryNetworkUtxOs=new N(this.request),this.primaryNetworkVertices=new u(this.request),this.signatureAggregator=new E(this.request),this.teleporter=new f(this.request),this.webhooks=new l(this.request)}}export{q as Glacier};
@@ -2,7 +2,7 @@ type AddressesChangeRequest = {
2
2
  /**
3
3
  * Ethereum address(es) for the address_activity event type
4
4
  */
5
- addresses: Array<any[]>;
5
+ addresses: Array<string>;
6
6
  };
7
7
 
8
8
  export { AddressesChangeRequest };
@@ -0,0 +1,7 @@
1
+ declare enum ApiFeature {
2
+ NFT_INDEXING = "nftIndexing",
3
+ WEBHOOKS = "webhooks",
4
+ TELEPORTER = "teleporter"
5
+ }
6
+
7
+ export { ApiFeature };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e.TELEPORTER="teleporter",e))(e||{});export{e as ApiFeature};
@@ -0,0 +1,16 @@
1
+ type BadGateway = {
2
+ /**
3
+ * The error message describing the reason for the exception
4
+ */
5
+ message: (string | Array<string>);
6
+ /**
7
+ * The HTTP status code of the response
8
+ */
9
+ statusCode: number;
10
+ /**
11
+ * The type of error
12
+ */
13
+ error: string;
14
+ };
15
+
16
+ export { BadGateway };
@@ -0,0 +1,16 @@
1
+ type BadRequest = {
2
+ /**
3
+ * The error message describing the reason for the exception
4
+ */
5
+ message: (string | Array<string>);
6
+ /**
7
+ * The HTTP status code of the response
8
+ */
9
+ statusCode: number;
10
+ /**
11
+ * The type of error
12
+ */
13
+ error: string;
14
+ };
15
+
16
+ export { BadRequest };
@@ -2,8 +2,10 @@ declare enum BlockchainId {
2
2
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3
3
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4
4
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
5
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
5
6
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
6
7
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
8
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
7
9
  P_CHAIN = "p-chain",
8
10
  X_CHAIN = "x-chain",
9
11
  C_CHAIN = "c-chain"