@avalabs/glacier-sdk 3.1.0-canary.fade9d5.0 → 3.1.0-canary.fcb15b0.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 (30) hide show
  1. package/dist/index.d.ts +86 -55
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +0 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  6. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  7. package/esm/generated/models/PChainTransaction.d.ts +13 -0
  8. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  9. package/esm/generated/models/PChainTransactionType.js +1 -1
  10. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  11. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  12. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  13. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  14. package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +6 -0
  15. package/esm/generated/services/DataApiUsageMetricsService.d.ts +3 -3
  16. package/esm/generated/services/EvmChainsService.d.ts +13 -0
  17. package/esm/generated/services/EvmChainsService.js +1 -1
  18. package/esm/generated/services/PrimaryNetworkService.d.ts +33 -0
  19. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  20. package/esm/index.d.ts +2 -6
  21. package/esm/index.js +1 -1
  22. package/package.json +2 -2
  23. package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
  24. package/esm/generated/models/PrimaryNetwork.js +0 -1
  25. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  26. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  27. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  28. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  29. package/esm/generated/services/RpcService.d.ts +0 -25
  30. 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 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."}})}}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."}})}}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}rpc({chainId:e,requestBody:r}){return this.httpRequest.request({method:"POST",url:"/v1/ext/bc/{chainId}/rpc",path:{chainId:e},body:r,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected.",504:"Request timed out"}})}}class C{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 O{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 B{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 D,W;exports.ActiveDelegatorDetails=void 0,((D=exports.ActiveDelegatorDetails||(exports.ActiveDelegatorDetails={})).delegationStatus||(D.delegationStatus={})).ACTIVE="active",exports.ActiveValidatorDetails=void 0,((W=exports.ActiveValidatorDetails||(exports.ActiveValidatorDetails={})).validationStatus||(W.validationStatus={})).ACTIVE="active";var L,U,P=(e=>(e.NFT_INDEXING="nftIndexing",e.WEBHOOKS="webhooks",e.TELEPORTER="teleporter",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.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(V||{}),z=(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))(z||{});exports.CChainExportTransaction=void 0,((L=exports.CChainExportTransaction||(exports.CChainExportTransaction={})).txType||(L.txType={})).EXPORT_TX="ExportTx",exports.CChainImportTransaction=void 0,((U=exports.CChainImportTransaction||(exports.CChainImportTransaction={})).txType||(U.txType={})).IMPORT_TX="ImportTx";var M,H,G,X,K,Y,F=(e=>(e.OK="OK",e.UNAVAILABLE="UNAVAILABLE",e))(F||{});exports.CompletedDelegatorDetails=void 0,((M=exports.CompletedDelegatorDetails||(exports.CompletedDelegatorDetails={})).delegationStatus||(M.delegationStatus={})).COMPLETED="completed",exports.CompletedValidatorDetails=void 0,((H=exports.CompletedValidatorDetails||(exports.CompletedValidatorDetails={})).validationStatus||(H.validationStatus={})).COMPLETED="completed",exports.ContractSubmissionErc1155=void 0,((G=exports.ContractSubmissionErc1155||(exports.ContractSubmissionErc1155={})).ercType||(G.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,((Y=exports.ContractSubmissionUnknown||(exports.ContractSubmissionUnknown={})).ercType||(Y.ercType={})).UNKNOWN="UNKNOWN";var J,j,Q,Z,$,ee,re,te,se,ne,ae,ie=(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))(ie||{}),oe=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e))(oe||{});exports.DeliveredSourceNotIndexedTeleporterMessage=void 0,((J=exports.DeliveredSourceNotIndexedTeleporterMessage||(exports.DeliveredSourceNotIndexedTeleporterMessage={})).status||(J.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,((Q=exports.Erc1155Contract||(exports.Erc1155Contract={})).ercType||(Q.ercType={})).ERC_1155="ERC-1155",exports.Erc1155Token=void 0,((Z=exports.Erc1155Token||(exports.Erc1155Token={})).ercType||(Z.ercType={})).ERC_1155="ERC-1155",exports.Erc1155TokenBalance=void 0,(($=exports.Erc1155TokenBalance||(exports.Erc1155TokenBalance={})).ercType||($.ercType={})).ERC_1155="ERC-1155",exports.Erc20Contract=void 0,((ee=exports.Erc20Contract||(exports.Erc20Contract={})).ercType||(ee.ercType={})).ERC_20="ERC-20",exports.Erc20Token=void 0,((re=exports.Erc20Token||(exports.Erc20Token={})).ercType||(re.ercType={})).ERC_20="ERC-20",exports.Erc20TokenBalance=void 0,((te=exports.Erc20TokenBalance||(exports.Erc20TokenBalance={})).ercType||(te.ercType={})).ERC_20="ERC-20",exports.Erc721Contract=void 0,((se=exports.Erc721Contract||(exports.Erc721Contract={})).ercType||(se.ercType={})).ERC_721="ERC-721",exports.Erc721Token=void 0,((ne=exports.Erc721Token||(exports.Erc721Token={})).ercType||(ne.ercType={})).ERC_721="ERC-721",exports.Erc721TokenBalance=void 0,((ae=exports.Erc721TokenBalance||(exports.Erc721TokenBalance={})).ercType||(ae.ercType={})).ERC_721="ERC-721";var he,de,ce,ue=(e=>(e.ADDRESS_ACTIVITY="address_activity",e))(ue||{}),le=(e=>(e.TRANSACTION_EXPORT_EVM="TRANSACTION_EXPORT_EVM",e))(le||{}),pe=(e=>(e.UNKNOWN="UNKNOWN",e.CALL="CALL",e.CREATE="CREATE",e.CREATE2="CREATE2",e.CALLCODE="CALLCODE",e.DELEGATECALL="DELEGATECALL",e.STATICCALL="STATICCALL",e))(pe||{}),me=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.TESTNET="testnet",e.DEVNET="devnet",e))(me||{}),Te=(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))(Te||{}),ve=(e=>(e.RUNNING="RUNNING",e.COMPLETED="COMPLETED",e.COMPLETED_WITH_WARNING="COMPLETED_WITH_WARNING",e.FAILED="FAILED",e))(ve||{}),ye=(e=>(e.ERR_INVALID_REQUEST="ErrInvalidRequest",e.ERR_INTERNAL="ErrInternal",e.WARN_TRUNCATED_EXPORT="WarnTruncatedExport",e))(ye||{}),ge=(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))(ge||{}),we=(e=>(e._11111111111111111111111111111111LPO_YY="11111111111111111111111111111111LpoYY",e.P_CHAIN="p-chain",e))(we||{}),be=(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))(be||{});exports.PendingDelegatorDetails=void 0,((he=exports.PendingDelegatorDetails||(exports.PendingDelegatorDetails={})).delegationStatus||(he.delegationStatus={})).PENDING="pending",exports.PendingTeleporterMessage=void 0,((de=exports.PendingTeleporterMessage||(exports.PendingTeleporterMessage={})).status||(de.status={})).PENDING="pending",exports.PendingValidatorDetails=void 0,((ce=exports.PendingValidatorDetails||(exports.PendingValidatorDetails={})).validationStatus||(ce.validationStatus={})).PENDING="pending";var fe,Ee=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.DEVNET="devnet",e))(Ee||{}),Se=(e=>(e.FIXED="fixed",e.VARIABLE="variable",e))(Se||{}),qe=(e=>(e.SECP256K1="secp256k1",e.NFT="nft",e))(qe||{}),Re=(e=>(e.P_CHAIN="p-chain",e.X_CHAIN="x-chain",e.C_CHAIN="c-chain",e))(Re||{}),ke=(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))(ke||{}),xe=(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))(xe||{});exports.RemovedValidatorDetails=void 0,((fe=exports.RemovedValidatorDetails||(exports.RemovedValidatorDetails={})).validationStatus||(fe.validationStatus={})).REMOVED="removed";var Ie,Ne,Ae=(e=>(e.DATA="data",e.RPC="rpc",e))(Ae||{}),_e=(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))(_e||{}),Ce=(e=>(e.VALIDATOR="VALIDATOR",e.DELEGATOR="DELEGATOR",e.VALIDATOR_FEE="VALIDATOR_FEE",e))(Ce||{});exports.RpcUsageMetricsValueAggregated=void 0,Ie=exports.RpcUsageMetricsValueAggregated||(exports.RpcUsageMetricsValueAggregated={}),(Ne=Ie.groupedBy||(Ie.groupedBy={})).RPC_METHOD="rpcMethod",Ne.RESPONSE_CODE="responseCode",Ne.RL_BYPASS_TOKEN="rlBypassToken",Ne.NONE="None";var Oe,Be=(e=>(e.BLOCK_INDEX="blockIndex",e.DELEGATION_CAPACITY="delegationCapacity",e.TIME_REMAINING="timeRemaining",e.DELEGATION_FEE="delegationFee",e.UPTIME_PERFORMANCE="uptimePerformance",e))(Be||{}),De=(e=>(e.ASC="asc",e.DESC="desc",e))(De||{});exports.TeleporterRewardDetails=void 0,((Oe=exports.TeleporterRewardDetails||(exports.TeleporterRewardDetails={})).ercType||(Oe.ercType={})).ERC_20="ERC-20";var We,Le=(e=>(e.MINUTE="minute",e.HOURLY="hourly",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e))(Le||{}),Ue=(e=>(e.SOURCE_TRANSACTION="SOURCE_TRANSACTION",e.DESTINATION_TRANSACTION="DESTINATION_TRANSACTION",e))(Ue||{}),Pe=(e=>(e.NATIVE_TRANSFER="NATIVE_TRANSFER",e.CONTRACT_CALL="CONTRACT_CALL",e.CONTRACT_CREATION="CONTRACT_CREATION",e))(Pe||{}),Ve=(e=>(e.FAILED="failed",e.SUCCESS="success",e))(Ve||{});exports.UnknownContract=void 0,((We=exports.UnknownContract||(exports.UnknownContract={})).ercType||(We.ercType={})).UNKNOWN="UNKNOWN";var ze,Me=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.CHAIN_ID="chainId",e.API_KEY_ID="apiKeyId",e.REQUEST_TYPE="requestType",e))(Me||{});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"})((ze=exports.UsageMetricsValueDTO||(exports.UsageMetricsValueDTO={})).groupedBy||(ze.groupedBy={}));var He,Ge,Xe,Ke=(e=>(e.STAKE="STAKE",e.TRANSFER="TRANSFER",e))(Ke||{}),Ye=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(Ye||{}),Fe=(e=>(e.EVM="EVM",e.BITCOIN="BITCOIN",e.ETHEREUM="ETHEREUM",e))(Fe||{}),Je=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(Je||{}),je=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(je||{}),Qe=(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))(Qe||{});exports.XChainLinearTransaction=void 0,He=exports.XChainLinearTransaction||(exports.XChainLinearTransaction={}),(Ge=He.chainFormat||(He.chainFormat={})).NON_LINEAR="non-linear",Ge.LINEAR="linear",exports.XChainNonLinearTransaction=void 0,(e=>{e.NON_LINEAR="non-linear",e.LINEAR="linear"})((Xe=exports.XChainNonLinearTransaction||(exports.XChainNonLinearTransaction={})).chainFormat||(Xe.chainFormat={}));var Ze=(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))(Ze||{});exports.ApiError=r,exports.ApiFeature=P,exports.BaseHttpRequest=e,exports.BlockchainId=V,exports.BlockchainIds=z,exports.CancelError=t,exports.CancelablePromise=s,exports.ChainStatus=F,exports.CurrencyCode=ie,exports.DataApiUsageMetricsService=m,exports.DefaultService=T,exports.DelegationStatusType=oe,exports.EVMOperationType=le,exports.EventType=ue,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;rpc;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.rpc=new _(this.request),this.signatureAggregator=new C(this.request),this.teleporter=new O(this.request),this.webhooks=new B(this.request)}},exports.HealthCheckService=f,exports.InternalTransactionOpCall=pe,exports.Network=me,exports.NfTsService=E,exports.NftTokenMetadataStatus=Te,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=ve,exports.OperationStatusCode=ye,exports.OperationType=ge,exports.OperationsService=S,exports.PChainId=we,exports.PChainTransactionType=be,exports.PrimaryNetwork=Ee,exports.PrimaryNetworkAssetCap=Se,exports.PrimaryNetworkAssetType=qe,exports.PrimaryNetworkBalancesService=R,exports.PrimaryNetworkBlocksService=k,exports.PrimaryNetworkChainName=Re,exports.PrimaryNetworkOperationType=ke,exports.PrimaryNetworkRewardsService=x,exports.PrimaryNetworkService=q,exports.PrimaryNetworkTransactionsService=I,exports.PrimaryNetworkTxType=xe,exports.PrimaryNetworkUtxOsService=N,exports.PrimaryNetworkVerticesService=A,exports.RequestType=Ae,exports.ResourceLinkType=_e,exports.RewardType=Ce,exports.RpcService=_,exports.SignatureAggregatorService=C,exports.SortByOption=Be,exports.SortOrder=De,exports.TeleporterService=O,exports.TimeIntervalGranularityExtended=Le,exports.TransactionDirectionType=Ue,exports.TransactionMethodType=Pe,exports.TransactionStatus=Ve,exports.UsageMetricsGroupByEnum=Me,exports.UtxoType=Ke,exports.ValidationStatusType=Ye,exports.VmName=Fe,exports.WebhookStatus=Je,exports.WebhookStatusType=je,exports.WebhooksService=B,exports.XChainId=Qe,exports.XChainTransactionType=Ze;
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;