@avalabs/glacier-sdk 2.8.0-canary.37a5fb1.0 → 2.8.0-canary.3895003.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 (94) hide show
  1. package/dist/index.d.ts +548 -249
  2. package/dist/index.js +250 -99
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +9 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
  9. package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
  10. package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
  11. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  12. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  13. package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -3
  14. package/esm/generated/models/ChainInfo.d.ts +1 -3
  15. package/esm/generated/models/ChainStatus.d.ts +3 -0
  16. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  17. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  18. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  19. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  20. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  21. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  22. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  23. package/esm/generated/models/EVMInput.d.ts +3 -3
  24. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  25. package/esm/generated/models/EVMOperationType.js +6 -0
  26. package/esm/generated/models/EVMOutput.d.ts +3 -3
  27. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  28. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  29. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  30. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  31. package/esm/generated/models/GlacierApiFeature.js +6 -0
  32. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  33. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  34. package/esm/generated/models/Method.d.ts +0 -3
  35. package/esm/generated/models/Money.d.ts +0 -3
  36. package/esm/generated/models/NextPageToken.d.ts +8 -0
  37. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  38. package/esm/generated/models/OperationType.d.ts +4 -2
  39. package/esm/generated/models/OperationType.js +3 -1
  40. package/esm/generated/models/PChainBalance.d.ts +15 -15
  41. package/esm/generated/models/PChainSharedAsset.d.ts +1 -3
  42. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  43. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  44. package/esm/generated/models/PChainTransactionType.js +2 -0
  45. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  46. package/esm/generated/models/PendingReward.d.ts +3 -3
  47. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  48. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  49. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
  50. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
  51. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  52. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  53. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  54. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  55. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  56. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  57. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  58. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  59. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  60. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  61. package/esm/generated/models/Subnet.d.ts +17 -0
  62. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  63. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  64. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  65. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  66. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  67. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  68. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  69. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  70. package/esm/generated/models/Utxo.d.ts +2 -2
  71. package/esm/generated/models/WebhookResponse.d.ts +8 -0
  72. package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
  73. package/esm/generated/models/XChainBalances.d.ts +3 -3
  74. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  75. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  76. package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
  77. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  78. package/esm/generated/services/DefaultService.d.ts +0 -53
  79. package/esm/generated/services/DefaultService.js +0 -42
  80. package/esm/generated/services/EvmChainsService.d.ts +6 -1
  81. package/esm/generated/services/EvmChainsService.js +4 -2
  82. package/esm/generated/services/PrimaryNetworkService.d.ts +1 -1
  83. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  84. package/esm/generated/services/RpcService.d.ts +25 -0
  85. package/esm/generated/services/RpcService.js +24 -0
  86. package/esm/generated/services/TeleporterService.d.ts +57 -0
  87. package/esm/generated/services/TeleporterService.js +39 -0
  88. package/esm/generated/services/WebhooksService.d.ts +95 -0
  89. package/esm/generated/services/WebhooksService.js +80 -0
  90. package/esm/index.d.ts +22 -2
  91. package/esm/index.js +10 -2
  92. package/package.json +3 -3
  93. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  94. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -60,65 +54,6 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
63
- type AddressActivityMetadata = {
64
- /**
65
- * Ethereum address for the address_activity event type
66
- */
67
- address: string;
68
- /**
69
- * Array of hexadecimal strings of the event signatures.
70
- */
71
- eventSignatures?: Array<string>;
72
- };
73
-
74
- declare enum EventType {
75
- ADDRESS_ACTIVITY = "address_activity"
76
- }
77
-
78
- declare enum WebhookStatusType {
79
- ACTIVE = "active",
80
- INACTIVE = "inactive"
81
- }
82
-
83
- type WebhookResponse = {
84
- id: string;
85
- eventType: EventType;
86
- metadata: AddressActivityMetadata;
87
- url: string;
88
- chainId: string;
89
- status: WebhookStatusType;
90
- createdAt: number;
91
- name: string;
92
- description: string;
93
- };
94
-
95
- type ListWebhooksResponse = {
96
- /**
97
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
98
- */
99
- nextPageToken?: string;
100
- webhooks: Array<WebhookResponse>;
101
- };
102
-
103
- type RegisterWebhookRequest = {
104
- url: string;
105
- chainId: string;
106
- /**
107
- * The type of event for the webhook
108
- */
109
- eventType: EventType;
110
- metadata: AddressActivityMetadata;
111
- };
112
-
113
- type SharedSecretsResponse = {
114
- secret: string;
115
- };
116
-
117
- declare enum WebhookStatus {
118
- ACTIVE = "active",
119
- INACTIVE = "inactive"
120
- }
121
-
122
57
  declare class DefaultService {
123
58
  readonly httpRequest: BaseHttpRequest;
124
59
  constructor(httpRequest: BaseHttpRequest);
@@ -127,56 +62,11 @@ declare class DefaultService {
127
62
  * @throws ApiError
128
63
  */
129
64
  mediaControllerUploadImage(): CancelablePromise<any>;
130
- /**
131
- * Register a webhook
132
- * Registers a new webhook.
133
- * @returns WebhookResponse
134
- * @throws ApiError
135
- */
136
- registerWebhook({ requestBody, }: {
137
- requestBody: RegisterWebhookRequest;
138
- }): CancelablePromise<WebhookResponse>;
139
- /**
140
- * List webhooks
141
- * Lists webhooks for the user.
142
- * @returns ListWebhooksResponse
143
- * @throws ApiError
144
- */
145
- listWebhooks({ pageToken, pageSize, status, }: {
146
- /**
147
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
148
- */
149
- pageToken?: string;
150
- /**
151
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
152
- */
153
- pageSize?: number;
154
- /**
155
- * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
156
- */
157
- status?: WebhookStatus;
158
- }): CancelablePromise<ListWebhooksResponse>;
159
- /**
160
- * Deactivate a webhook
161
- * Deactivates a webhook by ID.
162
- * @returns WebhookResponse
163
- * @throws ApiError
164
- */
165
- deactivateWebhook({ id, }: {
166
- /**
167
- * The webhook identifier.
168
- */
169
- id: string;
170
- }): CancelablePromise<WebhookResponse>;
171
- /**
172
- * Generate a shared secret
173
- * Generates a new shared secret.
174
- * @returns SharedSecretsResponse
175
- * @throws ApiError
176
- */
177
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
65
  }
179
66
 
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
180
70
  declare enum CurrencyCode {
181
71
  USD = "usd",
182
72
  EUR = "eur",
@@ -195,9 +85,6 @@ declare enum CurrencyCode {
195
85
  }
196
86
 
197
87
  type Money = {
198
- /**
199
- * ISO 4217 currency code.
200
- */
201
88
  currencyCode: CurrencyCode;
202
89
  /**
203
90
  * Monetary value in base 10 decimals.
@@ -247,6 +134,9 @@ type GetNativeBalanceResponse = {
247
134
  nativeTokenBalance: NativeTokenBalance;
248
135
  };
249
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
250
140
  declare enum NftTokenMetadataStatus {
251
141
  UNKNOWN = "UNKNOWN",
252
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -262,9 +152,6 @@ declare enum NftTokenMetadataStatus {
262
152
  }
263
153
 
264
154
  type Erc1155TokenMetadata = {
265
- /**
266
- * The metadata indexing status of the nft.
267
- */
268
155
  indexStatus: NftTokenMetadataStatus;
269
156
  metadataLastUpdatedTimestamp?: number;
270
157
  name?: string;
@@ -303,9 +190,6 @@ declare namespace Erc1155TokenBalance {
303
190
  }
304
191
 
305
192
  type Erc721TokenMetadata = {
306
- /**
307
- * The metadata indexing status of the nft.
308
- */
309
193
  indexStatus: NftTokenMetadataStatus;
310
194
  metadataLastUpdatedTimestamp?: number;
311
195
  name?: string;
@@ -743,6 +627,9 @@ declare class EvmBlocksService {
743
627
  }): CancelablePromise<GetEvmBlockResponse>;
744
628
  }
745
629
 
630
+ /**
631
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
632
+ */
746
633
  declare enum ChainStatus {
747
634
  OK = "OK",
748
635
  UNAVAILABLE = "UNAVAILABLE"
@@ -780,9 +667,6 @@ declare enum VmName {
780
667
 
781
668
  type GetChainResponse = {
782
669
  chainId: string;
783
- /**
784
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
785
- */
786
670
  status: ChainStatus;
787
671
  chainName: string;
788
672
  description: string;
@@ -798,13 +682,15 @@ type GetChainResponse = {
798
682
  networkToken: NetworkToken;
799
683
  chainLogoUri?: string;
800
684
  private?: boolean;
685
+ enabledFeatures?: Array<'nftIndexing'>;
801
686
  };
802
687
 
688
+ declare enum GlacierApiFeature {
689
+ NFT_INDEXING = "nftIndexing"
690
+ }
691
+
803
692
  type ChainInfo = {
804
693
  chainId: string;
805
- /**
806
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
807
- */
808
694
  status: ChainStatus;
809
695
  chainName: string;
810
696
  description: string;
@@ -820,6 +706,7 @@ type ChainInfo = {
820
706
  networkToken: NetworkToken;
821
707
  chainLogoUri?: string;
822
708
  private?: boolean;
709
+ enabledFeatures?: Array<'nftIndexing'>;
823
710
  };
824
711
 
825
712
  type ListChainsResponse = {
@@ -840,11 +727,15 @@ declare class EvmChainsService {
840
727
  * @returns ListChainsResponse
841
728
  * @throws ApiError
842
729
  */
843
- supportedChains({ network, }: {
730
+ supportedChains({ network, feature, }: {
844
731
  /**
845
732
  * mainnet or testnet.
846
733
  */
847
734
  network?: NetworkType;
735
+ /**
736
+ * Filter by feature.
737
+ */
738
+ feature?: GlacierApiFeature;
848
739
  }): CancelablePromise<ListChainsResponse>;
849
740
  /**
850
741
  * Get chain information
@@ -1299,6 +1190,9 @@ type Erc721TransferDetails = {
1299
1190
  erc721Token: Erc721Token;
1300
1191
  };
1301
1192
 
1193
+ /**
1194
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1195
+ */
1302
1196
  declare enum TransactionMethodType {
1303
1197
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1304
1198
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1306,9 +1200,6 @@ declare enum TransactionMethodType {
1306
1200
  }
1307
1201
 
1308
1202
  type Method = {
1309
- /**
1310
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1311
- */
1312
1203
  callType: TransactionMethodType;
1313
1204
  /**
1314
1205
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1669,7 +1560,7 @@ type ListTransfersResponse = {
1669
1560
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1670
1561
  */
1671
1562
  nextPageToken?: string;
1672
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1563
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1673
1564
  };
1674
1565
 
1675
1566
  declare enum SortOrder {
@@ -2040,7 +1931,7 @@ type ListNftTokens = {
2040
1931
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2041
1932
  */
2042
1933
  nextPageToken?: string;
2043
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1934
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2044
1935
  };
2045
1936
 
2046
1937
  declare class NfTsService {
@@ -2117,8 +2008,12 @@ type EvmNetworkOptions = {
2117
2008
  includeChains: Array<string>;
2118
2009
  };
2119
2010
 
2011
+ declare enum EVMOperationType {
2012
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2013
+ }
2014
+
2120
2015
  type CreateEvmTransactionExportRequest = {
2121
- type: CreateEvmTransactionExportRequest.type;
2016
+ type: EVMOperationType;
2122
2017
  firstDate: string;
2123
2018
  lastDate: string;
2124
2019
  /**
@@ -2131,20 +2026,21 @@ type CreateEvmTransactionExportRequest = {
2131
2026
  endDate: string;
2132
2027
  options: EvmNetworkOptions;
2133
2028
  };
2134
- declare namespace CreateEvmTransactionExportRequest {
2135
- enum type {
2136
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2137
- }
2029
+
2030
+ declare enum PrimaryNetworkOperationType {
2031
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2032
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2033
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2138
2034
  }
2139
2035
 
2140
2036
  type PrimaryNetworkOptions = {
2141
- addresses: Array<string>;
2037
+ addresses?: Array<string>;
2142
2038
  cChainEvmAddresses?: Array<string>;
2143
2039
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2144
2040
  };
2145
2041
 
2146
2042
  type CreatePrimaryNetworkTransactionExportRequest = {
2147
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2043
+ type: PrimaryNetworkOperationType;
2148
2044
  firstDate: string;
2149
2045
  lastDate: string;
2150
2046
  /**
@@ -2157,11 +2053,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2157
2053
  endDate: string;
2158
2054
  options: PrimaryNetworkOptions;
2159
2055
  };
2160
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2161
- enum type {
2162
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2163
- }
2164
- }
2165
2056
 
2166
2057
  declare enum OperationStatus {
2167
2058
  RUNNING = "RUNNING",
@@ -2171,8 +2062,10 @@ declare enum OperationStatus {
2171
2062
  }
2172
2063
 
2173
2064
  declare enum OperationType {
2174
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2175
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2065
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2066
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2067
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2068
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2176
2069
  }
2177
2070
 
2178
2071
  declare enum OperationStatusCode {
@@ -2364,13 +2257,44 @@ type BlockchainInfo = {
2364
2257
  blockchainId: string;
2365
2258
  };
2366
2259
 
2260
+ type SubnetOwnershipInfo = {
2261
+ /**
2262
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2263
+ */
2264
+ locktime: number;
2265
+ /**
2266
+ * Minimum number of signatures required to sign the Subnet update transactions.
2267
+ */
2268
+ threshold: number;
2269
+ /**
2270
+ * Addresses that are eligible to sign the Subnet update transactions.
2271
+ */
2272
+ addresses: Array<string>;
2273
+ };
2274
+
2367
2275
  type Subnet = {
2368
2276
  createBlockTimestamp: number;
2369
2277
  createBlockIndex: string;
2370
2278
  subnetId: string;
2279
+ /**
2280
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2281
+ * @deprecated
2282
+ */
2371
2283
  ownerAddresses: Array<string>;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2372
2288
  threshold: number;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2373
2293
  locktime: number;
2294
+ /**
2295
+ * Latest subnet owner details for this Subnet.
2296
+ */
2297
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2374
2298
  blockchains: Array<BlockchainInfo>;
2375
2299
  };
2376
2300
 
@@ -2507,11 +2431,17 @@ declare enum ValidationStatusType {
2507
2431
  REMOVED = "removed"
2508
2432
  }
2509
2433
 
2434
+ /**
2435
+ * Cap represents if an asset is a variable or fixed cap asset.
2436
+ */
2510
2437
  declare enum PrimaryNetworkAssetCap {
2511
2438
  FIXED = "fixed",
2512
2439
  VARIABLE = "variable"
2513
2440
  }
2514
2441
 
2442
+ /**
2443
+ * Type of asset like SECP256K1 or NFT.
2444
+ */
2515
2445
  declare enum PrimaryNetworkAssetType {
2516
2446
  SECP256K1 = "secp256k1",
2517
2447
  NFT = "nft"
@@ -2534,17 +2464,11 @@ type XChainAssetDetails = {
2534
2464
  * Denomination of this asset to represent fungibility.
2535
2465
  */
2536
2466
  denomination: number;
2537
- /**
2538
- * Type of asset like SECP256K1 or NFT.
2539
- */
2540
2467
  type: PrimaryNetworkAssetType;
2541
2468
  /**
2542
2469
  * Timestamp in seconds this asset was created on.
2543
2470
  */
2544
2471
  createdAtTimestamp: number;
2545
- /**
2546
- * Cap represents if an asset is a variable or fixed cap asset.
2547
- */
2548
2472
  cap: PrimaryNetworkAssetCap;
2549
2473
  };
2550
2474
 
@@ -2711,7 +2635,7 @@ declare class PrimaryNetworkService {
2711
2635
  /**
2712
2636
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2713
2637
  */
2714
- subnetId?: string;
2638
+ subnetId?: any;
2715
2639
  }): CancelablePromise<ListValidatorDetailsResponse>;
2716
2640
  /**
2717
2641
  * Get single validator details
@@ -2811,9 +2735,6 @@ type CChainSharedAssetBalance = {
2811
2735
  * Denomination of this asset to represent fungibility.
2812
2736
  */
2813
2737
  denomination: number;
2814
- /**
2815
- * Type of asset like SECP256K1 or NFT.
2816
- */
2817
2738
  type: PrimaryNetworkAssetType;
2818
2739
  /**
2819
2740
  * Amount of the asset.
@@ -2849,7 +2770,7 @@ type ListCChainAtomicBalancesResponse = {
2849
2770
  chainInfo: PrimaryNetworkChainInfo;
2850
2771
  };
2851
2772
 
2852
- type Asset = {
2773
+ type AggregatedAssetAmount = {
2853
2774
  /**
2854
2775
  * Unique ID for an asset.
2855
2776
  */
@@ -2866,14 +2787,12 @@ type Asset = {
2866
2787
  * Denomination of this asset to represent fungibility.
2867
2788
  */
2868
2789
  denomination: number;
2869
- /**
2870
- * Type of asset like SECP256K1 or NFT.
2871
- */
2872
2790
  type: PrimaryNetworkAssetType;
2873
2791
  /**
2874
2792
  * Amount of the asset.
2875
2793
  */
2876
2794
  amount: string;
2795
+ utxoCount: number;
2877
2796
  };
2878
2797
 
2879
2798
  type PChainSharedAsset = {
@@ -2893,49 +2812,47 @@ type PChainSharedAsset = {
2893
2812
  * Denomination of this asset to represent fungibility.
2894
2813
  */
2895
2814
  denomination: number;
2896
- /**
2897
- * Type of asset like SECP256K1 or NFT.
2898
- */
2899
2815
  type: PrimaryNetworkAssetType;
2900
2816
  /**
2901
2817
  * Amount of the asset.
2902
2818
  */
2903
2819
  amount: string;
2820
+ utxoCount: number;
2904
2821
  sharedWithChainId: string;
2905
2822
  status: string;
2906
2823
  };
2907
2824
 
2908
2825
  type PChainBalance = {
2909
2826
  /**
2910
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2827
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2911
2828
  */
2912
- unlockedUnstaked: Array<Asset>;
2829
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2913
2830
  /**
2914
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2831
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2915
2832
  */
2916
- unlockedStaked: Array<Asset>;
2833
+ unlockedStaked: Array<AggregatedAssetAmount>;
2917
2834
  /**
2918
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2835
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2919
2836
  */
2920
- lockedPlatform: Array<Asset>;
2837
+ lockedPlatform: Array<AggregatedAssetAmount>;
2921
2838
  /**
2922
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2839
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2923
2840
  */
2924
- lockedStakeable: Array<Asset>;
2841
+ lockedStakeable: Array<AggregatedAssetAmount>;
2925
2842
  /**
2926
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2843
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2927
2844
  */
2928
- lockedStaked: Array<Asset>;
2845
+ lockedStaked: Array<AggregatedAssetAmount>;
2929
2846
  /**
2930
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2847
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2931
2848
  */
2932
- pendingStaked: Array<Asset>;
2849
+ pendingStaked: Array<AggregatedAssetAmount>;
2933
2850
  /**
2934
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2851
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2935
2852
  */
2936
2853
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2937
2854
  /**
2938
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2855
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2939
2856
  */
2940
2857
  atomicMemoryLocked: Array<PChainSharedAsset>;
2941
2858
  };
@@ -2945,34 +2862,6 @@ type ListPChainBalancesResponse = {
2945
2862
  chainInfo: PrimaryNetworkChainInfo;
2946
2863
  };
2947
2864
 
2948
- type XChainAssetBalance = {
2949
- /**
2950
- * Unique ID for an asset.
2951
- */
2952
- assetId: string;
2953
- /**
2954
- * Name of this asset.
2955
- */
2956
- name: string;
2957
- /**
2958
- * Symbol for this asset (max 4 characters).
2959
- */
2960
- symbol: string;
2961
- /**
2962
- * Denomination of this asset to represent fungibility.
2963
- */
2964
- denomination: number;
2965
- /**
2966
- * Type of asset like SECP256K1 or NFT.
2967
- */
2968
- type: PrimaryNetworkAssetType;
2969
- /**
2970
- * Amount of the asset.
2971
- */
2972
- amount: string;
2973
- utxoCount: number;
2974
- };
2975
-
2976
2865
  type XChainSharedAssetBalance = {
2977
2866
  /**
2978
2867
  * Unique ID for an asset.
@@ -2990,9 +2879,6 @@ type XChainSharedAssetBalance = {
2990
2879
  * Denomination of this asset to represent fungibility.
2991
2880
  */
2992
2881
  denomination: number;
2993
- /**
2994
- * Type of asset like SECP256K1 or NFT.
2995
- */
2996
2882
  type: PrimaryNetworkAssetType;
2997
2883
  /**
2998
2884
  * Amount of the asset.
@@ -3006,11 +2892,11 @@ type XChainBalances = {
3006
2892
  /**
3007
2893
  * A list of objects containing X-chain Asset balance information.
3008
2894
  */
3009
- locked: Array<XChainAssetBalance>;
2895
+ locked: Array<AggregatedAssetAmount>;
3010
2896
  /**
3011
2897
  * A list of objects containing X-chain Asset balance information.
3012
2898
  */
3013
- unlocked: Array<XChainAssetBalance>;
2899
+ unlocked: Array<AggregatedAssetAmount>;
3014
2900
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
3015
2901
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
3016
2902
  };
@@ -3188,9 +3074,6 @@ type AssetWithPriceInfo = {
3188
3074
  * Denomination of this asset to represent fungibility.
3189
3075
  */
3190
3076
  denomination: number;
3191
- /**
3192
- * Type of asset like SECP256K1 or NFT.
3193
- */
3194
3077
  type: PrimaryNetworkAssetType;
3195
3078
  /**
3196
3079
  * Amount of the asset.
@@ -3233,6 +3116,30 @@ type ListHistoricalRewardsResponse = {
3233
3116
  historicalRewards: Array<HistoricalReward>;
3234
3117
  };
3235
3118
 
3119
+ type AssetAmount = {
3120
+ /**
3121
+ * Unique ID for an asset.
3122
+ */
3123
+ assetId: string;
3124
+ /**
3125
+ * Name of this asset.
3126
+ */
3127
+ name: string;
3128
+ /**
3129
+ * Symbol for this asset (max 4 characters).
3130
+ */
3131
+ symbol: string;
3132
+ /**
3133
+ * Denomination of this asset to represent fungibility.
3134
+ */
3135
+ denomination: number;
3136
+ type: PrimaryNetworkAssetType;
3137
+ /**
3138
+ * Amount of the asset.
3139
+ */
3140
+ amount: string;
3141
+ };
3142
+
3236
3143
  type PendingReward = {
3237
3144
  /**
3238
3145
  * An array of P-Chain wallet addresses.
@@ -3246,9 +3153,9 @@ type PendingReward = {
3246
3153
  rewardType: RewardType;
3247
3154
  progress: number;
3248
3155
  /**
3249
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3156
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3250
3157
  */
3251
- estimatedReward: Asset;
3158
+ estimatedReward: AssetAmount;
3252
3159
  };
3253
3160
 
3254
3161
  type ListPendingRewardsResponse = {
@@ -3349,9 +3256,9 @@ type EVMInput = {
3349
3256
  */
3350
3257
  fromAddress: string;
3351
3258
  /**
3352
- * Asset details for the asset being transferred.
3259
+ * AssetAmount details for the asset being transferred.
3353
3260
  */
3354
- asset: Asset;
3261
+ asset: AssetAmount;
3355
3262
  /**
3356
3263
  * Credentials that signed this transaction.
3357
3264
  */
@@ -3363,7 +3270,7 @@ type Utxo = {
3363
3270
  * Addresses that are eligible to sign the consumption of this output.
3364
3271
  */
3365
3272
  addresses: Array<string>;
3366
- asset: Asset;
3273
+ asset: AssetAmount;
3367
3274
  /**
3368
3275
  * Blockchain ID on which this output is consumed on.
3369
3276
  */
@@ -3446,11 +3353,11 @@ type CChainExportTransaction = {
3446
3353
  /**
3447
3354
  * Assets unlocked by inputs of this transaction.
3448
3355
  */
3449
- amountUnlocked: Array<Asset>;
3356
+ amountUnlocked: Array<AssetAmount>;
3450
3357
  /**
3451
3358
  * Assets created by outputs of this transaction.
3452
3359
  */
3453
- amountCreated: Array<Asset>;
3360
+ amountCreated: Array<AssetAmount>;
3454
3361
  /**
3455
3362
  * Source chain for an atomic transaction.
3456
3363
  */
@@ -3481,9 +3388,9 @@ type EVMOutput = {
3481
3388
  */
3482
3389
  toAddress: string;
3483
3390
  /**
3484
- * Asset details for the asset being transferred.
3391
+ * AssetAmount details for the asset being transferred.
3485
3392
  */
3486
- asset: Asset;
3393
+ asset: AssetAmount;
3487
3394
  };
3488
3395
 
3489
3396
  type CChainImportTransaction = {
@@ -3510,11 +3417,11 @@ type CChainImportTransaction = {
3510
3417
  /**
3511
3418
  * Assets unlocked by inputs of this transaction.
3512
3419
  */
3513
- amountUnlocked: Array<Asset>;
3420
+ amountUnlocked: Array<AssetAmount>;
3514
3421
  /**
3515
3422
  * Assets created by outputs of this transaction.
3516
3423
  */
3517
- amountCreated: Array<Asset>;
3424
+ amountCreated: Array<AssetAmount>;
3518
3425
  /**
3519
3426
  * Source chain for an atomic transaction.
3520
3427
  */
@@ -3562,6 +3469,8 @@ declare enum PChainTransactionType {
3562
3469
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3563
3470
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3564
3471
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3472
+ BASE_TX = "BaseTx",
3473
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3565
3474
  UNKNOWN = "UNKNOWN"
3566
3475
  }
3567
3476
 
@@ -3575,7 +3484,7 @@ type PChainUtxo = {
3575
3484
  * Addresses that are eligible to sign the consumption of this output.
3576
3485
  */
3577
3486
  addresses: Array<string>;
3578
- asset: Asset;
3487
+ asset: AssetAmount;
3579
3488
  /**
3580
3489
  * Blockchain ID on which this output is consumed on.
3581
3490
  */
@@ -3639,17 +3548,17 @@ type PChainTransaction = {
3639
3548
  */
3640
3549
  destinationChain?: string;
3641
3550
  /**
3642
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3551
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3643
3552
  */
3644
- value: Array<Asset>;
3553
+ value: Array<AssetAmount>;
3645
3554
  /**
3646
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3555
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3647
3556
  */
3648
- amountBurned: Array<Asset>;
3557
+ amountBurned: Array<AssetAmount>;
3649
3558
  /**
3650
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3559
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3651
3560
  */
3652
- amountStaked: Array<Asset>;
3561
+ amountStaked: Array<AssetAmount>;
3653
3562
  /**
3654
3563
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3655
3564
  */
@@ -3681,6 +3590,10 @@ type PChainTransaction = {
3681
3590
  * Present for RewardValidatorTx
3682
3591
  */
3683
3592
  stakingTxHash?: string;
3593
+ /**
3594
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3595
+ */
3596
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3684
3597
  };
3685
3598
 
3686
3599
  type ListPChainTransactionsResponse = {
@@ -3692,6 +3605,9 @@ type ListPChainTransactionsResponse = {
3692
3605
  chainInfo: PrimaryNetworkChainInfo;
3693
3606
  };
3694
3607
 
3608
+ /**
3609
+ * Type of transaction.
3610
+ */
3695
3611
  declare enum XChainTransactionType {
3696
3612
  BASE_TX = "BaseTx",
3697
3613
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3714,9 +3630,6 @@ type XChainLinearTransaction = {
3714
3630
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3715
3631
  */
3716
3632
  timestamp: number;
3717
- /**
3718
- * Type of transaction.
3719
- */
3720
3633
  txType: XChainTransactionType;
3721
3634
  /**
3722
3635
  * Hex encoded memo bytes for this transaction.
@@ -3727,11 +3640,11 @@ type XChainLinearTransaction = {
3727
3640
  /**
3728
3641
  * Assets unlocked by inputs of this transaction.
3729
3642
  */
3730
- amountUnlocked: Array<Asset>;
3643
+ amountUnlocked: Array<AssetAmount>;
3731
3644
  /**
3732
3645
  * Assets created by outputs of this transaction.
3733
3646
  */
3734
- amountCreated: Array<Asset>;
3647
+ amountCreated: Array<AssetAmount>;
3735
3648
  /**
3736
3649
  * Source chain for an atomic transaction.
3737
3650
  */
@@ -3741,7 +3654,7 @@ type XChainLinearTransaction = {
3741
3654
  */
3742
3655
  destinationChain?: string;
3743
3656
  /**
3744
- * Asset details of the asset created in CreateAssetTx
3657
+ * AssetAmount details of the asset created in CreateAssetTx
3745
3658
  */
3746
3659
  assetCreated?: XChainAssetDetails;
3747
3660
  /**
@@ -3791,9 +3704,6 @@ type XChainNonLinearTransaction = {
3791
3704
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3792
3705
  */
3793
3706
  timestamp: number;
3794
- /**
3795
- * Type of transaction.
3796
- */
3797
3707
  txType: XChainTransactionType;
3798
3708
  /**
3799
3709
  * Hex encoded memo bytes for this transaction.
@@ -3804,11 +3714,11 @@ type XChainNonLinearTransaction = {
3804
3714
  /**
3805
3715
  * Assets unlocked by inputs of this transaction.
3806
3716
  */
3807
- amountUnlocked: Array<Asset>;
3717
+ amountUnlocked: Array<AssetAmount>;
3808
3718
  /**
3809
3719
  * Assets created by outputs of this transaction.
3810
3720
  */
3811
- amountCreated: Array<Asset>;
3721
+ amountCreated: Array<AssetAmount>;
3812
3722
  /**
3813
3723
  * Source chain for an atomic transaction.
3814
3724
  */
@@ -3818,7 +3728,7 @@ type XChainNonLinearTransaction = {
3818
3728
  */
3819
3729
  destinationChain?: string;
3820
3730
  /**
3821
- * Asset details of the asset created in CreateAssetTx
3731
+ * AssetAmount details of the asset created in CreateAssetTx
3822
3732
  */
3823
3733
  assetCreated?: XChainAssetDetails;
3824
3734
  /**
@@ -3864,8 +3774,9 @@ declare enum PrimaryNetworkTxType {
3864
3774
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3865
3775
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3866
3776
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3867
- UNKNOWN = "UNKNOWN",
3868
3777
  BASE_TX = "BaseTx",
3778
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3779
+ UNKNOWN = "UNKNOWN",
3869
3780
  CREATE_ASSET_TX = "CreateAssetTx",
3870
3781
  OPERATION_TX = "OperationTx"
3871
3782
  }
@@ -4191,6 +4102,391 @@ declare class PrimaryNetworkVerticesService {
4191
4102
  }): CancelablePromise<ListXChainVerticesResponse>;
4192
4103
  }
4193
4104
 
4105
+ type RpcErrorDto = {
4106
+ code: number;
4107
+ message: string;
4108
+ data?: Record<string, any>;
4109
+ };
4110
+
4111
+ type RpcErrorResponseDto = {
4112
+ jsonrpc: string;
4113
+ id?: (string | number);
4114
+ error: RpcErrorDto;
4115
+ };
4116
+
4117
+ type RpcRequestBodyDto = {
4118
+ method: string;
4119
+ params?: Record<string, any>;
4120
+ id?: (string | number);
4121
+ jsonrpc?: string;
4122
+ };
4123
+
4124
+ type RpcSuccessResponseDto = {
4125
+ jsonrpc: string;
4126
+ id?: (string | number);
4127
+ result: Record<string, any>;
4128
+ };
4129
+
4130
+ declare class RpcService {
4131
+ readonly httpRequest: BaseHttpRequest;
4132
+ constructor(httpRequest: BaseHttpRequest);
4133
+ /**
4134
+ * Calls JSON-RPC method
4135
+ * Calls JSON-RPC method.
4136
+ * @returns any
4137
+ * @throws ApiError
4138
+ */
4139
+ rpc({ chainId, requestBody, }: {
4140
+ /**
4141
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4142
+ */
4143
+ chainId: string;
4144
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4145
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4146
+ }
4147
+
4148
+ type TeleporterDestinationTransaction = {
4149
+ txHash: string;
4150
+ timestamp: number;
4151
+ gasSpent: string;
4152
+ rewardRedeemer: string;
4153
+ delivererAddress: string;
4154
+ };
4155
+
4156
+ type TeleporterReceipt = {
4157
+ receivedMessageNonce: string;
4158
+ relayerRewardAddress: string;
4159
+ };
4160
+
4161
+ type TeleporterRewardDetails = {
4162
+ /**
4163
+ * A wallet or contract address in mixed-case checksum encoding.
4164
+ */
4165
+ address: string;
4166
+ /**
4167
+ * The contract name.
4168
+ */
4169
+ name: string;
4170
+ /**
4171
+ * The contract symbol.
4172
+ */
4173
+ symbol: string;
4174
+ /**
4175
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4176
+ */
4177
+ decimals: number;
4178
+ /**
4179
+ * The logo uri for the address.
4180
+ */
4181
+ logoUri?: string;
4182
+ ercType: TeleporterRewardDetails.ercType;
4183
+ /**
4184
+ * The token price, if available.
4185
+ */
4186
+ price?: Money;
4187
+ value: string;
4188
+ };
4189
+ declare namespace TeleporterRewardDetails {
4190
+ enum ercType {
4191
+ ERC_20 = "ERC-20"
4192
+ }
4193
+ }
4194
+
4195
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4196
+ messageId: string;
4197
+ teleporterContractAddress: string;
4198
+ sourceBlockchainId: string;
4199
+ destinationBlockchainId: string;
4200
+ messageNonce: string;
4201
+ from: string;
4202
+ to: string;
4203
+ data?: string;
4204
+ messageExecuted: boolean;
4205
+ receipts: Array<TeleporterReceipt>;
4206
+ receiptDelivered: boolean;
4207
+ rewardDetails: TeleporterRewardDetails;
4208
+ destinationTransaction: TeleporterDestinationTransaction;
4209
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4210
+ };
4211
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4212
+ enum status {
4213
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4214
+ }
4215
+ }
4216
+
4217
+ type TeleporterSourceTransaction = {
4218
+ txHash: string;
4219
+ timestamp: number;
4220
+ gasSpent: string;
4221
+ };
4222
+
4223
+ type DeliveredTeleporterMessage = {
4224
+ messageId: string;
4225
+ teleporterContractAddress: string;
4226
+ sourceBlockchainId: string;
4227
+ destinationBlockchainId: string;
4228
+ messageNonce: string;
4229
+ from: string;
4230
+ to: string;
4231
+ data?: string;
4232
+ messageExecuted: boolean;
4233
+ receipts: Array<TeleporterReceipt>;
4234
+ receiptDelivered: boolean;
4235
+ rewardDetails: TeleporterRewardDetails;
4236
+ sourceTransaction: TeleporterSourceTransaction;
4237
+ destinationTransaction: TeleporterDestinationTransaction;
4238
+ status: DeliveredTeleporterMessage.status;
4239
+ };
4240
+ declare namespace DeliveredTeleporterMessage {
4241
+ enum status {
4242
+ DELIVERED = "delivered"
4243
+ }
4244
+ }
4245
+
4246
+ type NextPageToken = {
4247
+ /**
4248
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4249
+ */
4250
+ nextPageToken?: string;
4251
+ };
4252
+
4253
+ type PendingTeleporterMessage = {
4254
+ messageId: string;
4255
+ teleporterContractAddress: string;
4256
+ sourceBlockchainId: string;
4257
+ destinationBlockchainId: string;
4258
+ messageNonce: string;
4259
+ from: string;
4260
+ to: string;
4261
+ data?: string;
4262
+ messageExecuted: boolean;
4263
+ receipts: Array<TeleporterReceipt>;
4264
+ receiptDelivered: boolean;
4265
+ rewardDetails: TeleporterRewardDetails;
4266
+ sourceTransaction: TeleporterSourceTransaction;
4267
+ status: PendingTeleporterMessage.status;
4268
+ };
4269
+ declare namespace PendingTeleporterMessage {
4270
+ enum status {
4271
+ PENDING = "pending"
4272
+ }
4273
+ }
4274
+
4275
+ declare class TeleporterService {
4276
+ readonly httpRequest: BaseHttpRequest;
4277
+ constructor(httpRequest: BaseHttpRequest);
4278
+ /**
4279
+ * Get a teleporter message
4280
+ * Gets a teleporter message by message ID.
4281
+ * @returns any
4282
+ * @throws ApiError
4283
+ */
4284
+ getTeleporterMessage({ messageId, }: {
4285
+ /**
4286
+ * The message ID of the teleporter message.
4287
+ */
4288
+ messageId: string;
4289
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4290
+ /**
4291
+ * List teleporter messages
4292
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4293
+ * @returns any
4294
+ * @throws ApiError
4295
+ */
4296
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4297
+ /**
4298
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4299
+ */
4300
+ pageToken?: string;
4301
+ /**
4302
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4303
+ */
4304
+ pageSize?: number;
4305
+ /**
4306
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4307
+ */
4308
+ sourceBlockchainId?: string;
4309
+ /**
4310
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4311
+ */
4312
+ destinationBlockchainId?: string;
4313
+ /**
4314
+ * The address of the recipient of the teleporter message.
4315
+ */
4316
+ to?: string;
4317
+ /**
4318
+ * The address of the sender of the teleporter message.
4319
+ */
4320
+ from?: string;
4321
+ }): CancelablePromise<NextPageToken>;
4322
+ }
4323
+
4324
+ type AddressActivityMetadata = {
4325
+ /**
4326
+ * Ethereum address for the address_activity event type
4327
+ */
4328
+ address: string;
4329
+ /**
4330
+ * Array of hexadecimal strings of the event signatures.
4331
+ */
4332
+ eventSignatures?: Array<string>;
4333
+ };
4334
+
4335
+ declare enum EventType {
4336
+ ADDRESS_ACTIVITY = "address_activity"
4337
+ }
4338
+
4339
+ declare enum WebhookStatusType {
4340
+ ACTIVE = "active",
4341
+ INACTIVE = "inactive"
4342
+ }
4343
+
4344
+ type WebhookResponse = {
4345
+ id: string;
4346
+ eventType: EventType;
4347
+ metadata: AddressActivityMetadata;
4348
+ /**
4349
+ * Whether to include traces in the webhook payload.
4350
+ */
4351
+ includeInternalTxs?: boolean;
4352
+ /**
4353
+ * Whether to include logs in the webhook payload.
4354
+ */
4355
+ includeLogs?: boolean;
4356
+ url: string;
4357
+ chainId: string;
4358
+ status: WebhookStatusType;
4359
+ createdAt: number;
4360
+ name: string;
4361
+ description: string;
4362
+ };
4363
+
4364
+ type ListWebhooksResponse = {
4365
+ /**
4366
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4367
+ */
4368
+ nextPageToken?: string;
4369
+ webhooks: Array<WebhookResponse>;
4370
+ };
4371
+
4372
+ type RegisterWebhookRequest = {
4373
+ url: string;
4374
+ chainId: string;
4375
+ eventType: EventType;
4376
+ metadata: AddressActivityMetadata;
4377
+ /**
4378
+ * Whether to include traces in the webhook payload.
4379
+ */
4380
+ includeInternalTxs?: boolean;
4381
+ /**
4382
+ * Whether to include logs in the webhook payload.
4383
+ */
4384
+ includeLogs?: boolean;
4385
+ };
4386
+
4387
+ type SharedSecretsResponse = {
4388
+ secret: string;
4389
+ };
4390
+
4391
+ type UpdateWebhookRequest = {
4392
+ name?: string;
4393
+ description?: string;
4394
+ url?: string;
4395
+ status?: WebhookStatusType;
4396
+ includeInternalTxs?: boolean;
4397
+ includeLogs?: boolean;
4398
+ };
4399
+
4400
+ declare enum WebhookStatus {
4401
+ ACTIVE = "active",
4402
+ INACTIVE = "inactive"
4403
+ }
4404
+
4405
+ declare class WebhooksService {
4406
+ readonly httpRequest: BaseHttpRequest;
4407
+ constructor(httpRequest: BaseHttpRequest);
4408
+ /**
4409
+ * Register a webhook
4410
+ * Registers a new webhook.
4411
+ * @returns WebhookResponse
4412
+ * @throws ApiError
4413
+ */
4414
+ registerWebhook({ requestBody, }: {
4415
+ requestBody: RegisterWebhookRequest;
4416
+ }): CancelablePromise<WebhookResponse>;
4417
+ /**
4418
+ * List webhooks
4419
+ * Lists webhooks for the user.
4420
+ * @returns ListWebhooksResponse
4421
+ * @throws ApiError
4422
+ */
4423
+ listWebhooks({ pageToken, pageSize, status, }: {
4424
+ /**
4425
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4426
+ */
4427
+ pageToken?: string;
4428
+ /**
4429
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4430
+ */
4431
+ pageSize?: number;
4432
+ /**
4433
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
4434
+ */
4435
+ status?: WebhookStatus;
4436
+ }): CancelablePromise<ListWebhooksResponse>;
4437
+ /**
4438
+ * Get a webhook by ID
4439
+ * Retrieves a webhook by ID.
4440
+ * @returns WebhookResponse
4441
+ * @throws ApiError
4442
+ */
4443
+ getWebhook({ id, }: {
4444
+ /**
4445
+ * The webhook identifier.
4446
+ */
4447
+ id: string;
4448
+ }): CancelablePromise<WebhookResponse>;
4449
+ /**
4450
+ * Deactivate a webhook
4451
+ * Deactivates a webhook by ID.
4452
+ * @returns WebhookResponse
4453
+ * @throws ApiError
4454
+ */
4455
+ deactivateWebhook({ id, }: {
4456
+ /**
4457
+ * The webhook identifier.
4458
+ */
4459
+ id: string;
4460
+ }): CancelablePromise<WebhookResponse>;
4461
+ /**
4462
+ * Update a webhook
4463
+ * Updates an existing webhook.
4464
+ * @returns WebhookResponse
4465
+ * @throws ApiError
4466
+ */
4467
+ updateWebhook({ id, requestBody, }: {
4468
+ /**
4469
+ * The webhook identifier.
4470
+ */
4471
+ id: string;
4472
+ requestBody: UpdateWebhookRequest;
4473
+ }): CancelablePromise<WebhookResponse>;
4474
+ /**
4475
+ * Generate a shared secret
4476
+ * Generates a new shared secret.
4477
+ * @returns SharedSecretsResponse
4478
+ * @throws ApiError
4479
+ */
4480
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4481
+ /**
4482
+ * Get a shared secret
4483
+ * Get a previously generated shared secret.
4484
+ * @returns SharedSecretsResponse
4485
+ * @throws ApiError
4486
+ */
4487
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4488
+ }
4489
+
4194
4490
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4195
4491
  declare class Glacier {
4196
4492
  readonly default: DefaultService;
@@ -4209,6 +4505,9 @@ declare class Glacier {
4209
4505
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4210
4506
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4211
4507
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4508
+ readonly rpc: RpcService;
4509
+ readonly teleporter: TeleporterService;
4510
+ readonly webhooks: WebhooksService;
4212
4511
  readonly request: BaseHttpRequest;
4213
4512
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4214
4513
  }
@@ -4230,4 +4529,4 @@ declare class ApiError extends Error {
4230
4529
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4231
4530
  }
4232
4531
 
4233
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
4532
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };