@avalabs/glacier-sdk 2.8.0-canary.d096f01.0 → 2.8.0-canary.d1d734a.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/LICENSE.md +9 -0
  2. package/dist/index.d.ts +125 -33
  3. package/dist/index.js +1 -2244
  4. package/esm/generated/Glacier.js +1 -77
  5. package/esm/generated/core/ApiError.js +1 -18
  6. package/esm/generated/core/BaseHttpRequest.js +1 -7
  7. package/esm/generated/core/CancelablePromise.js +1 -93
  8. package/esm/generated/core/FetchHttpRequest.js +1 -13
  9. package/esm/generated/core/OpenAPI.js +1 -13
  10. package/esm/generated/core/request.js +1 -228
  11. package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
  12. package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
  13. package/esm/generated/models/ActiveValidatorDetails.js +1 -8
  14. package/esm/generated/models/AddressActivityMetadata.d.ts +1 -1
  15. package/esm/generated/models/BlockchainId.js +1 -13
  16. package/esm/generated/models/BlockchainIds.js +1 -10
  17. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  18. package/esm/generated/models/CChainExportTransaction.js +1 -8
  19. package/esm/generated/models/CChainImportTransaction.js +1 -8
  20. package/esm/generated/models/ChainStatus.js +1 -7
  21. package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
  22. package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
  23. package/esm/generated/models/CompletedValidatorDetails.js +1 -8
  24. package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
  25. package/esm/generated/models/ContractSubmissionErc20.js +1 -8
  26. package/esm/generated/models/ContractSubmissionErc721.js +1 -8
  27. package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
  28. package/esm/generated/models/{RegisterWebhookRequest.d.ts → CreateWebhookRequest.d.ts} +4 -2
  29. package/esm/generated/models/CurrencyCode.js +1 -19
  30. package/esm/generated/models/DelegationStatusType.js +1 -8
  31. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +2 -0
  32. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -8
  33. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +2 -0
  34. package/esm/generated/models/DeliveredTeleporterMessage.js +1 -8
  35. package/esm/generated/models/EVMOperationType.js +1 -6
  36. package/esm/generated/models/Erc1155Contract.js +1 -8
  37. package/esm/generated/models/Erc1155Token.js +1 -8
  38. package/esm/generated/models/Erc1155TokenBalance.js +1 -8
  39. package/esm/generated/models/Erc20Contract.js +1 -8
  40. package/esm/generated/models/Erc20Token.js +1 -8
  41. package/esm/generated/models/Erc20TokenBalance.js +1 -8
  42. package/esm/generated/models/Erc721Contract.js +1 -8
  43. package/esm/generated/models/Erc721Token.js +1 -8
  44. package/esm/generated/models/Erc721TokenBalance.js +1 -8
  45. package/esm/generated/models/EventType.js +1 -6
  46. package/esm/generated/models/GlacierApiFeature.js +1 -7
  47. package/esm/generated/models/InternalTransactionOpCall.js +1 -12
  48. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  49. package/esm/generated/models/Network.js +1 -7
  50. package/esm/generated/models/NetworkType.js +1 -7
  51. package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
  52. package/esm/generated/models/OperationStatus.js +1 -9
  53. package/esm/generated/models/OperationStatusCode.js +1 -8
  54. package/esm/generated/models/OperationType.js +1 -9
  55. package/esm/generated/models/PChainId.js +1 -7
  56. package/esm/generated/models/PChainTransaction.d.ts +5 -0
  57. package/esm/generated/models/PChainTransactionType.js +1 -21
  58. package/esm/generated/models/PendingDelegatorDetails.js +1 -8
  59. package/esm/generated/models/PendingTeleporterMessage.d.ts +2 -0
  60. package/esm/generated/models/PendingTeleporterMessage.js +1 -8
  61. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  62. package/esm/generated/models/PendingValidatorDetails.js +1 -8
  63. package/esm/generated/models/PrimaryNetwork.js +1 -7
  64. package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -7
  65. package/esm/generated/models/PrimaryNetworkAssetType.js +1 -7
  66. package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
  67. package/esm/generated/models/PrimaryNetworkOperationType.js +1 -8
  68. package/esm/generated/models/PrimaryNetworkTxType.js +1 -23
  69. package/esm/generated/models/RemovedValidatorDetails.d.ts +6 -0
  70. package/esm/generated/models/RemovedValidatorDetails.js +1 -8
  71. package/esm/generated/models/ResourceLinkType.js +1 -23
  72. package/esm/generated/models/RewardType.js +1 -8
  73. package/esm/generated/models/SortByOption.d.ts +9 -0
  74. package/esm/generated/models/SortByOption.js +1 -0
  75. package/esm/generated/models/SortOrder.js +1 -7
  76. package/esm/generated/models/TeleporterRewardDetails.js +1 -8
  77. package/esm/generated/models/TransactionMethodType.js +1 -8
  78. package/esm/generated/models/TransactionStatus.js +1 -7
  79. package/esm/generated/models/UnknownContract.js +1 -8
  80. package/esm/generated/models/UtxoType.js +1 -7
  81. package/esm/generated/models/ValidationStatusType.js +1 -9
  82. package/esm/generated/models/VmName.js +1 -8
  83. package/esm/generated/models/WebhookStatus.js +1 -7
  84. package/esm/generated/models/WebhookStatusType.js +1 -7
  85. package/esm/generated/models/XChainId.js +1 -8
  86. package/esm/generated/models/XChainLinearTransaction.js +1 -9
  87. package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
  88. package/esm/generated/models/XChainTransactionType.js +1 -11
  89. package/esm/generated/services/DefaultService.js +1 -13
  90. package/esm/generated/services/EvmBalancesService.d.ts +5 -1
  91. package/esm/generated/services/EvmBalancesService.js +1 -116
  92. package/esm/generated/services/EvmBlocksService.js +1 -37
  93. package/esm/generated/services/EvmChainsService.js +1 -31
  94. package/esm/generated/services/EvmContractsService.js +1 -36
  95. package/esm/generated/services/EvmTransactionsService.js +1 -251
  96. package/esm/generated/services/HealthCheckService.js +1 -16
  97. package/esm/generated/services/NfTsService.js +1 -56
  98. package/esm/generated/services/OperationsService.js +1 -28
  99. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
  100. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
  101. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -55
  102. package/esm/generated/services/PrimaryNetworkService.d.ts +23 -8
  103. package/esm/generated/services/PrimaryNetworkService.js +1 -171
  104. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
  105. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
  106. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
  107. package/esm/generated/services/RpcService.js +1 -24
  108. package/esm/generated/services/TeleporterService.d.ts +6 -1
  109. package/esm/generated/services/TeleporterService.js +1 -39
  110. package/esm/generated/services/WebhooksService.d.ts +28 -7
  111. package/esm/generated/services/WebhooksService.js +1 -108
  112. package/esm/index.d.ts +4 -1
  113. package/esm/index.js +1 -88
  114. package/package.json +2 -2
package/LICENSE.md CHANGED
@@ -0,0 +1,9 @@
1
+ Copyright (C) 2021, Ava Labs, Inc. All rights reserved.
2
+
3
+ Subject to the limited license below (**”License””), you may not, and you may not permit anyone else to, copy, reproduce, aggregate, republish, download, post, distribute, license, sublicense, reverse engineer, modify, or create derivative works based on this software (collectively, **“Software”\*\*).
4
+
5
+ You are hereby granted a limited, non-exclusive, non-sublicensable and non-transferable license to download and use the Software as-is solely (i) for use in connection with the Avalanche Public Blockchain platform, having a NetworkID of 1 (Mainnet) or 5 (Fuji), and associated blockchains, comprised exclusively of the Avalanche X-Chain, C-Chain, P-Chain and any subnets linked to the P-Chain (**“Avalanche Authorized Platform”**) or (ii) for non-production, testing or research purposes without any commercial application within the Avalanche ecosystem (**“Non-Commercial Use”**); provided that, in each case, you may not use or allow use of the Software (a) in connection with any forks of the Avalanche Authorized Platform, (b) in any manner not operationally connected to the Avalanche Authorized Platform other than for Non-Commercial Use, or (c) to the extent the number of monthly active users or the number of total installs of any software that uses the Software across all versions thereof exceeds 10,000 at any time. You may not modify or alter the Software in any way.
6
+
7
+ You hereby acknowledge and agree to the terms set forth at www.avalabs.org/important-notice.
8
+
9
+ **TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED ON AN “AS IS” BASIS, AND AVA LABS EXPRESSLY DISCLAIMS AND EXCLUDES ALL REPRESENTATIONS, WARRANTIES AND OTHER TERMS AND CONDITIONS, WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION BY OPERATION OF LAW OR BY CUSTOM, STATUTE OR OTHERWISE, AND INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTY, TERM, OR CONDITION OF NON-INFRINGEMENT, MERCHANTABILITY, TITLE, OR FITNESS FOR PARTICULAR PURPOSE. YOU USE THE SOFTWARE AT YOUR OWN RISK. AVA LABS EXPRESSLY DISCLAIMS ALL LIABILITY (INCLUDING FOR ALL DIRECT, CONSEQUENTIAL OR OTHER DAMAGES OR LOSSES) RELATED TO ANY USE OF THE SOFTWARE.**
package/dist/index.d.ts CHANGED
@@ -362,7 +362,7 @@ declare class EvmBalancesService {
362
362
  * @returns ListErc20BalancesResponse
363
363
  * @throws ApiError
364
364
  */
365
- listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
366
366
  /**
367
367
  * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
368
368
  */
@@ -383,6 +383,10 @@ declare class EvmBalancesService {
383
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
384
384
  */
385
385
  pageSize?: number;
386
+ /**
387
+ * whether to filter out spam tokens from the response. Default is true.
388
+ */
389
+ filterSpamTokens?: boolean;
386
390
  /**
387
391
  * A comma separated list of contract addresses to filter by.
388
392
  */
@@ -2307,6 +2311,11 @@ type ListSubnetsResponse = {
2307
2311
  subnets: Array<Subnet>;
2308
2312
  };
2309
2313
 
2314
+ type BlsCredentials = {
2315
+ publicKey: string;
2316
+ proofOfPossession: string;
2317
+ };
2318
+
2310
2319
  type Rewards = {
2311
2320
  validationRewardAmount: string;
2312
2321
  delegationRewardAmount: string;
@@ -2341,6 +2350,10 @@ type ActiveValidatorDetails = {
2341
2350
  delegationFee?: string;
2342
2351
  startTimestamp: number;
2343
2352
  endTimestamp: number;
2353
+ /**
2354
+ * Present for AddPermissionlessValidatorTx
2355
+ */
2356
+ blsCredentials?: BlsCredentials;
2344
2357
  stakePercentage: number;
2345
2358
  delegatorCount: number;
2346
2359
  amountDelegated?: string;
@@ -2365,6 +2378,10 @@ type CompletedValidatorDetails = {
2365
2378
  delegationFee?: string;
2366
2379
  startTimestamp: number;
2367
2380
  endTimestamp: number;
2381
+ /**
2382
+ * Present for AddPermissionlessValidatorTx
2383
+ */
2384
+ blsCredentials?: BlsCredentials;
2368
2385
  delegatorCount: number;
2369
2386
  rewards: Rewards;
2370
2387
  validationStatus: CompletedValidatorDetails.validationStatus;
@@ -2383,6 +2400,10 @@ type PendingValidatorDetails = {
2383
2400
  delegationFee?: string;
2384
2401
  startTimestamp: number;
2385
2402
  endTimestamp: number;
2403
+ /**
2404
+ * Present for AddPermissionlessValidatorTx
2405
+ */
2406
+ blsCredentials?: BlsCredentials;
2386
2407
  validationStatus: PendingValidatorDetails.validationStatus;
2387
2408
  };
2388
2409
  declare namespace PendingValidatorDetails {
@@ -2399,6 +2420,10 @@ type RemovedValidatorDetails = {
2399
2420
  delegationFee?: string;
2400
2421
  startTimestamp: number;
2401
2422
  endTimestamp: number;
2423
+ /**
2424
+ * Present for AddPermissionlessValidatorTx
2425
+ */
2426
+ blsCredentials?: BlsCredentials;
2402
2427
  removeTxHash: string;
2403
2428
  removeTimestamp: number;
2404
2429
  validationStatus: RemovedValidatorDetails.validationStatus;
@@ -2425,6 +2450,14 @@ declare enum Network {
2425
2450
  FUJI = "fuji"
2426
2451
  }
2427
2452
 
2453
+ declare enum SortByOption {
2454
+ BLOCK_INDEX = "blockIndex",
2455
+ DELEGATION_CAPACITY = "delegationCapacity",
2456
+ TIME_REMAINING = "timeRemaining",
2457
+ DELEGATION_FEE = "delegationFee",
2458
+ UPTIME_PERFORMANCE = "uptimePerformance"
2459
+ }
2460
+
2428
2461
  declare enum ValidationStatusType {
2429
2462
  COMPLETED = "completed",
2430
2463
  ACTIVE = "active",
@@ -2584,7 +2617,7 @@ declare class PrimaryNetworkService {
2584
2617
  * @returns ListValidatorDetailsResponse
2585
2618
  * @throws ApiError
2586
2619
  */
2587
- listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2620
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2588
2621
  /**
2589
2622
  * Either mainnet or a testnet.
2590
2623
  */
@@ -2601,6 +2634,12 @@ declare class PrimaryNetworkService {
2601
2634
  * A comma separated list of node ids to filter by.
2602
2635
  */
2603
2636
  nodeIds?: string;
2637
+ /**
2638
+ * Which property to sort by, in conjunction with sortOrder.
2639
+ *
2640
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2641
+ */
2642
+ sortBy?: SortByOption;
2604
2643
  /**
2605
2644
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2606
2645
  */
@@ -2626,13 +2665,21 @@ declare class PrimaryNetworkService {
2626
2665
  */
2627
2666
  maxTimeRemaining?: number;
2628
2667
  /**
2629
- * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2668
+ * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
2630
2669
  */
2631
2670
  minFeePercentage?: number;
2632
2671
  /**
2633
- * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2672
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
2634
2673
  */
2635
2674
  maxFeePercentage?: number;
2675
+ /**
2676
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2677
+ */
2678
+ minUptimePerformance?: number;
2679
+ /**
2680
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2681
+ */
2682
+ maxUptimePerformance?: number;
2636
2683
  /**
2637
2684
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2638
2685
  */
@@ -2644,7 +2691,7 @@ declare class PrimaryNetworkService {
2644
2691
  * @returns ListValidatorDetailsResponse
2645
2692
  * @throws ApiError
2646
2693
  */
2647
- getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2694
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2648
2695
  /**
2649
2696
  * Either mainnet or a testnet.
2650
2697
  */
@@ -2661,14 +2708,14 @@ declare class PrimaryNetworkService {
2661
2708
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2662
2709
  */
2663
2710
  pageSize?: number;
2664
- /**
2665
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2666
- */
2667
- sortOrder?: SortOrder;
2668
2711
  /**
2669
2712
  * Validation status of the node.
2670
2713
  */
2671
2714
  validationStatus?: ValidationStatusType;
2715
+ /**
2716
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2717
+ */
2718
+ sortOrder?: SortOrder;
2672
2719
  }): CancelablePromise<ListValidatorDetailsResponse>;
2673
2720
  /**
2674
2721
  * List delegators
@@ -3595,6 +3642,10 @@ type PChainTransaction = {
3595
3642
  * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3596
3643
  */
3597
3644
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3645
+ /**
3646
+ * Present for AddPermissionlessValidatorTx
3647
+ */
3648
+ blsCredentials?: BlsCredentials;
3598
3649
  };
3599
3650
 
3600
3651
  type ListPChainTransactionsResponse = {
@@ -4198,6 +4249,8 @@ type DeliveredSourceNotIndexedTeleporterMessage = {
4198
4249
  teleporterContractAddress: string;
4199
4250
  sourceBlockchainId: string;
4200
4251
  destinationBlockchainId: string;
4252
+ sourceEvmChainId: string;
4253
+ destinationEvmChainId: string;
4201
4254
  messageNonce: string;
4202
4255
  from: string;
4203
4256
  to: string;
@@ -4226,6 +4279,8 @@ type DeliveredTeleporterMessage = {
4226
4279
  teleporterContractAddress: string;
4227
4280
  sourceBlockchainId: string;
4228
4281
  destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4229
4284
  messageNonce: string;
4230
4285
  from: string;
4231
4286
  to: string;
@@ -4249,6 +4304,8 @@ type PendingTeleporterMessage = {
4249
4304
  teleporterContractAddress: string;
4250
4305
  sourceBlockchainId: string;
4251
4306
  destinationBlockchainId: string;
4307
+ sourceEvmChainId: string;
4308
+ destinationEvmChainId: string;
4252
4309
  messageNonce: string;
4253
4310
  from: string;
4254
4311
  to: string;
@@ -4295,7 +4352,7 @@ declare class TeleporterService {
4295
4352
  * @returns ListTeleporterMessagesResponse
4296
4353
  * @throws ApiError
4297
4354
  */
4298
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4355
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
4299
4356
  /**
4300
4357
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4301
4358
  */
@@ -4320,6 +4377,10 @@ declare class TeleporterService {
4320
4377
  * The address of the sender of the teleporter message.
4321
4378
  */
4322
4379
  from?: string;
4380
+ /**
4381
+ * mainnet or testnet.
4382
+ */
4383
+ network?: NetworkType;
4323
4384
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4324
4385
  }
4325
4386
 
@@ -4334,7 +4395,7 @@ type AddressActivityMetadata = {
4334
4395
  /**
4335
4396
  * Ethereum address(es) for the address_activity event type
4336
4397
  */
4337
- addresses: Array<any[]>;
4398
+ addresses: Array<string>;
4338
4399
  /**
4339
4400
  * Array of hexadecimal strings of the event signatures.
4340
4401
  */
@@ -4345,6 +4406,32 @@ declare enum EventType {
4345
4406
  ADDRESS_ACTIVITY = "address_activity"
4346
4407
  }
4347
4408
 
4409
+ type CreateWebhookRequest = {
4410
+ url: string;
4411
+ chainId: string;
4412
+ eventType: EventType;
4413
+ metadata: AddressActivityMetadata;
4414
+ name?: string;
4415
+ description?: string;
4416
+ /**
4417
+ * Whether to include traces in the webhook payload.
4418
+ */
4419
+ includeInternalTxs?: boolean;
4420
+ /**
4421
+ * Whether to include logs in the webhook payload.
4422
+ */
4423
+ includeLogs?: boolean;
4424
+ };
4425
+
4426
+ type ListWebhookAddressesResponse = {
4427
+ /**
4428
+ * 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.
4429
+ */
4430
+ nextPageToken?: string;
4431
+ addresses: Array<string>;
4432
+ totalAddresses: number;
4433
+ };
4434
+
4348
4435
  declare enum WebhookStatusType {
4349
4436
  ACTIVE = "active",
4350
4437
  INACTIVE = "inactive"
@@ -4378,21 +4465,6 @@ type ListWebhooksResponse = {
4378
4465
  webhooks: Array<WebhookResponse>;
4379
4466
  };
4380
4467
 
4381
- type RegisterWebhookRequest = {
4382
- url: string;
4383
- chainId: string;
4384
- eventType: EventType;
4385
- metadata: AddressActivityMetadata;
4386
- /**
4387
- * Whether to include traces in the webhook payload.
4388
- */
4389
- includeInternalTxs?: boolean;
4390
- /**
4391
- * Whether to include logs in the webhook payload.
4392
- */
4393
- includeLogs?: boolean;
4394
- };
4395
-
4396
4468
  type SharedSecretsResponse = {
4397
4469
  secret: string;
4398
4470
  };
@@ -4420,8 +4492,8 @@ declare class WebhooksService {
4420
4492
  * @returns WebhookResponse
4421
4493
  * @throws ApiError
4422
4494
  */
4423
- registerWebhook({ requestBody, }: {
4424
- requestBody: RegisterWebhookRequest;
4495
+ createWebhook({ requestBody, }: {
4496
+ requestBody: CreateWebhookRequest;
4425
4497
  }): CancelablePromise<WebhookResponse>;
4426
4498
  /**
4427
4499
  * List webhooks
@@ -4495,8 +4567,8 @@ declare class WebhooksService {
4495
4567
  */
4496
4568
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4497
4569
  /**
4498
- * Add address(es) to a webhook
4499
- * Adding address(es) to a given webhook.
4570
+ * Add addresses to webhook
4571
+ * Add addresses to webhook.
4500
4572
  * @returns WebhookResponse
4501
4573
  * @throws ApiError
4502
4574
  */
@@ -4508,8 +4580,8 @@ declare class WebhooksService {
4508
4580
  requestBody: AddressesChangeRequest;
4509
4581
  }): CancelablePromise<WebhookResponse>;
4510
4582
  /**
4511
- * Remove address(es) from a webhook
4512
- * Removing address(es) from a given webhook.
4583
+ * Remove addresses from webhook
4584
+ * Remove addresses from webhook.
4513
4585
  * @returns WebhookResponse
4514
4586
  * @throws ApiError
4515
4587
  */
@@ -4520,6 +4592,26 @@ declare class WebhooksService {
4520
4592
  id: string;
4521
4593
  requestBody: AddressesChangeRequest;
4522
4594
  }): CancelablePromise<WebhookResponse>;
4595
+ /**
4596
+ * List adresses by webhook
4597
+ * List adresses by webhook.
4598
+ * @returns ListWebhookAddressesResponse
4599
+ * @throws ApiError
4600
+ */
4601
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4602
+ /**
4603
+ * The webhook identifier.
4604
+ */
4605
+ id: string;
4606
+ /**
4607
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4608
+ */
4609
+ pageToken?: string;
4610
+ /**
4611
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4612
+ */
4613
+ pageSize?: number;
4614
+ }): CancelablePromise<ListWebhookAddressesResponse>;
4523
4615
  }
4524
4616
 
4525
4617
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4571,4 +4663,4 @@ type NextPageToken = {
4571
4663
  nextPageToken?: string;
4572
4664
  };
4573
4665
 
4574
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, 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, ListTeleporterMessagesResponse, 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 };
4666
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, 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, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, 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, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, 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 };