@avalabs/glacier-sdk 3.1.0-canary.86d3f73.0 → 3.1.0-canary.878b592.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 (86) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +615 -103
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
  6. package/esm/generated/core/OpenAPI.js +1 -1
  7. package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
  8. package/esm/generated/models/AddressActivityEventType.js +1 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -4
  10. package/esm/generated/models/AvaxSupplyResponse.d.ts +44 -0
  11. package/esm/generated/models/Blockchain.d.ts +10 -0
  12. package/esm/generated/models/BlockchainId.d.ts +0 -2
  13. package/esm/generated/models/BlockchainId.js +1 -1
  14. package/esm/generated/models/BlockchainIds.d.ts +1 -3
  15. package/esm/generated/models/BlockchainIds.js +1 -1
  16. package/esm/generated/models/BlockchainInfo.d.ts +12 -0
  17. package/esm/generated/models/EVMAddressActivityRequest.d.ts +2 -4
  18. package/esm/generated/models/EVMAddressActivityResponse.d.ts +2 -2
  19. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  20. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  21. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  22. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  23. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  24. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  25. package/esm/generated/models/InternalTransaction.d.ts +16 -15
  26. package/esm/generated/models/ListIcmMessagesResponse.d.ts +2 -1
  27. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +4 -0
  28. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +2 -1
  29. package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
  30. package/esm/generated/models/PChainTransaction.d.ts +5 -0
  31. package/esm/generated/models/PChainUtxo.d.ts +4 -0
  32. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  33. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  34. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  35. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  36. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  37. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  38. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  39. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  40. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  41. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  42. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  43. package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
  44. package/esm/generated/models/{PlatformBalanceThresholdFilter.d.ts → PrimaryNetworkBalanceThresholdFilter.d.ts} +2 -2
  45. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  46. package/esm/generated/models/SignatureAggregatorRequest.d.ts +21 -1
  47. package/esm/generated/models/TeleporterMessageInfo.d.ts +2 -2
  48. package/esm/generated/models/Transaction.d.ts +2 -2
  49. package/esm/generated/models/Utxo.d.ts +4 -0
  50. package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
  51. package/esm/generated/models/UtxosSortByOption.js +1 -0
  52. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  53. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  54. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  55. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  56. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  57. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  58. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  59. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  60. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  61. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  62. package/esm/generated/models/XChainId.d.ts +0 -1
  63. package/esm/generated/models/XChainId.js +1 -1
  64. package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
  65. package/esm/generated/services/AvaxSupplyService.js +1 -0
  66. package/esm/generated/services/HealthCheckService.d.ts +9 -2
  67. package/esm/generated/services/HealthCheckService.js +1 -1
  68. package/esm/generated/services/PrimaryNetworkService.d.ts +4 -4
  69. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  70. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +56 -1
  71. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  72. package/esm/generated/services/WebhooksService.d.ts +9 -7
  73. package/esm/index.d.ts +29 -8
  74. package/esm/index.js +1 -1
  75. package/package.json +5 -5
  76. package/esm/generated/models/EventType.d.ts +0 -7
  77. package/esm/generated/models/EventType.js +0 -1
  78. package/esm/generated/models/PlatformActivityKeyType.d.ts +0 -10
  79. package/esm/generated/models/PlatformActivityKeyType.js +0 -1
  80. package/esm/generated/models/PlatformActivityMetadata.d.ts +0 -37
  81. package/esm/generated/models/PlatformActivityRequest.d.ts +0 -31
  82. package/esm/generated/models/PlatformActivityRequest.js +0 -1
  83. package/esm/generated/models/PlatformActivityResponse.d.ts +0 -17
  84. package/esm/generated/models/PlatformActivitySubEvents.d.ts +0 -11
  85. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +0 -10
  86. package/esm/generated/models/PlatformAddressActivitySubEventType.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,61 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type AvaxSupplyResponse = {
58
+ /**
59
+ * The circulating supply of AVAX.
60
+ */
61
+ circulatingSupply: string;
62
+ /**
63
+ * The total supply of AVAX.
64
+ */
65
+ totalSupply: string;
66
+ /**
67
+ * The total P-chain burned fees of AVAX.
68
+ */
69
+ totalPBurned: string;
70
+ /**
71
+ * The total C-chain burned fees of AVAX.
72
+ */
73
+ totalCBurned: string;
74
+ /**
75
+ * The total X-chain burned fees of AVAX.
76
+ */
77
+ totalXBurned: string;
78
+ /**
79
+ * The total staked AVAX.
80
+ */
81
+ totalStaked: string;
82
+ /**
83
+ * The total locked AVAX.
84
+ */
85
+ totalLocked: string;
86
+ /**
87
+ * The total rewards AVAX.
88
+ */
89
+ totalRewards: string;
90
+ /**
91
+ * The last updated time of the AVAX supply.
92
+ */
93
+ lastUpdated: string;
94
+ /**
95
+ * The genesis unlock amount of the AVAX supply.
96
+ */
97
+ genesisUnlock: string;
98
+ };
99
+
100
+ declare class AvaxSupplyService {
101
+ readonly httpRequest: BaseHttpRequest;
102
+ constructor(httpRequest: BaseHttpRequest);
103
+ /**
104
+ * Get AVAX supply information
105
+ * Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
106
+ * @returns AvaxSupplyResponse Successful response
107
+ * @throws ApiError
108
+ */
109
+ getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
110
+ }
111
+
57
112
  type LogsFormatMetadata = {
58
113
  /**
59
114
  * The IP address of the client that made the request.
@@ -2084,11 +2139,11 @@ type TeleporterMessageInfo = {
2084
2139
  /**
2085
2140
  * chain id of the source chain. valid only for destination transactions
2086
2141
  */
2087
- sourceChainId?: Record<string, any>;
2142
+ sourceChainId?: string;
2088
2143
  /**
2089
2144
  * chain id of the destination chain. valid only for source transactions
2090
2145
  */
2091
- destinationChainId?: Record<string, any>;
2146
+ destinationChainId?: string;
2092
2147
  };
2093
2148
 
2094
2149
  type GetTransactionResponse = {
@@ -2221,33 +2276,31 @@ type ListErc721TransactionsResponse = {
2221
2276
 
2222
2277
  type InternalTransaction = {
2223
2278
  /**
2224
- * Sender address
2279
+ * The block number on the chain.
2225
2280
  */
2226
- from: string;
2281
+ blockNumber: string;
2227
2282
  /**
2228
- * Recipient address
2283
+ * The block finality timestamp.
2229
2284
  */
2230
- to: string;
2285
+ blockTimestamp: number;
2231
2286
  /**
2232
- * Internal transaction type
2287
+ * The block hash identifier.
2233
2288
  */
2234
- internalTxType: string;
2289
+ blockHash: string;
2235
2290
  /**
2236
- * Value transferred
2291
+ * The transaction hash identifier.
2237
2292
  */
2293
+ txHash: string;
2294
+ from: RichAddress;
2295
+ to: RichAddress;
2296
+ internalTxType: InternalTransactionOpCall;
2238
2297
  value: string;
2239
2298
  /**
2240
- * Gas used
2299
+ * True if the internal transaction was reverted.
2241
2300
  */
2301
+ isReverted: boolean;
2242
2302
  gasUsed: string;
2243
- /**
2244
- * Gas limit
2245
- */
2246
2303
  gasLimit: string;
2247
- /**
2248
- * Transaction hash
2249
- */
2250
- transactionHash: string;
2251
2304
  };
2252
2305
 
2253
2306
  type ListInternalTransactionsResponse = {
@@ -2706,11 +2759,18 @@ declare class HealthCheckService {
2706
2759
  constructor(httpRequest: BaseHttpRequest);
2707
2760
  /**
2708
2761
  * Get the health of the service
2709
- * Check the health of the service.
2710
- * @returns HealthCheckResultDto The health of the service
2762
+ * Check the health of the service. This checks the read and write health of the database and cache.
2763
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
2711
2764
  * @throws ApiError
2712
2765
  */
2713
2766
  dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2767
+ /**
2768
+ * Get the liveliness of the service (reads only)
2769
+ * Check the liveliness of the service (reads only).
2770
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
2771
+ * @throws ApiError
2772
+ */
2773
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
2714
2774
  }
2715
2775
 
2716
2776
  type IcmDestinationTransaction = {
@@ -2844,7 +2904,7 @@ type ListIcmMessagesResponse = {
2844
2904
  * 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.
2845
2905
  */
2846
2906
  nextPageToken?: string;
2847
- messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2907
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2848
2908
  };
2849
2909
 
2850
2910
  declare class InterchainMessagingService {
@@ -3140,7 +3200,7 @@ declare enum PrimaryNetworkOperationType {
3140
3200
  type PrimaryNetworkOptions = {
3141
3201
  addresses?: Array<string>;
3142
3202
  cChainEvmAddresses?: Array<string>;
3143
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
3203
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
3144
3204
  };
3145
3205
 
3146
3206
  type CreatePrimaryNetworkTransactionExportRequest = {
@@ -3228,6 +3288,252 @@ declare class OperationsService {
3228
3288
  }): CancelablePromise<OperationStatusResponse>;
3229
3289
  }
3230
3290
 
3291
+ type EvmGenesisAllocDto = {
3292
+ /**
3293
+ * Account balance in hex format
3294
+ */
3295
+ balance?: string;
3296
+ /**
3297
+ * Contract bytecode in hex format
3298
+ */
3299
+ code?: string;
3300
+ /**
3301
+ * Contract storage slots
3302
+ */
3303
+ storage?: Record<string, string>;
3304
+ };
3305
+
3306
+ type EvmGenesisAllowListConfigDto = {
3307
+ /**
3308
+ * Block timestamp
3309
+ */
3310
+ blockTimestamp?: number;
3311
+ /**
3312
+ * Admin addresses
3313
+ */
3314
+ adminAddresses?: Array<string>;
3315
+ /**
3316
+ * Manager addresses
3317
+ */
3318
+ managerAddresses?: Array<string>;
3319
+ /**
3320
+ * Enabled addresses
3321
+ */
3322
+ enabledAddresses?: Array<string>;
3323
+ };
3324
+
3325
+ type EvmGenesisFeeConfigDto = {
3326
+ /**
3327
+ * Base fee change denominator
3328
+ */
3329
+ baseFeeChangeDenominator?: number;
3330
+ /**
3331
+ * Block gas cost step
3332
+ */
3333
+ blockGasCostStep?: number;
3334
+ /**
3335
+ * Gas limit
3336
+ */
3337
+ gasLimit?: number;
3338
+ /**
3339
+ * Maximum block gas cost
3340
+ */
3341
+ maxBlockGasCost?: number;
3342
+ /**
3343
+ * Minimum base fee
3344
+ */
3345
+ minBaseFee?: number;
3346
+ /**
3347
+ * Minimum block gas cost
3348
+ */
3349
+ minBlockGasCost?: number;
3350
+ /**
3351
+ * Target block rate
3352
+ */
3353
+ targetBlockRate?: number;
3354
+ /**
3355
+ * Target gas
3356
+ */
3357
+ targetGas?: number;
3358
+ };
3359
+
3360
+ type EvmGenesisWarpConfigDto = {
3361
+ /**
3362
+ * Block timestamp
3363
+ */
3364
+ blockTimestamp?: number;
3365
+ /**
3366
+ * Quorum numerator
3367
+ */
3368
+ quorumNumerator?: number;
3369
+ /**
3370
+ * Require primary network signers
3371
+ */
3372
+ requirePrimaryNetworkSigners?: boolean;
3373
+ };
3374
+
3375
+ type EvmGenesisConfigDto = {
3376
+ /**
3377
+ * Berlin block number
3378
+ */
3379
+ berlinBlock?: number;
3380
+ /**
3381
+ * Byzantium block number
3382
+ */
3383
+ byzantiumBlock?: number;
3384
+ /**
3385
+ * Chain ID
3386
+ */
3387
+ chainId?: number;
3388
+ /**
3389
+ * Constantinople block number
3390
+ */
3391
+ constantinopleBlock?: number;
3392
+ /**
3393
+ * EIP-150 block number
3394
+ */
3395
+ eip150Block?: number;
3396
+ /**
3397
+ * EIP-150 hash
3398
+ */
3399
+ eip150Hash?: string;
3400
+ /**
3401
+ * EIP-155 block number
3402
+ */
3403
+ eip155Block?: number;
3404
+ /**
3405
+ * EIP-158 block number
3406
+ */
3407
+ eip158Block?: number;
3408
+ /**
3409
+ * Fee configuration
3410
+ */
3411
+ feeConfig?: EvmGenesisFeeConfigDto;
3412
+ /**
3413
+ * Homestead block number
3414
+ */
3415
+ homesteadBlock?: number;
3416
+ /**
3417
+ * Istanbul block number
3418
+ */
3419
+ istanbulBlock?: number;
3420
+ /**
3421
+ * London block number
3422
+ */
3423
+ londonBlock?: number;
3424
+ /**
3425
+ * Muir Glacier block number
3426
+ */
3427
+ muirGlacierBlock?: number;
3428
+ /**
3429
+ * Petersburg block number
3430
+ */
3431
+ petersburgBlock?: number;
3432
+ /**
3433
+ * Subnet EVM timestamp
3434
+ */
3435
+ subnetEVMTimestamp?: number;
3436
+ /**
3437
+ * Allow fee recipients
3438
+ */
3439
+ allowFeeRecipients?: boolean;
3440
+ /**
3441
+ * Warp configuration
3442
+ */
3443
+ warpConfig?: EvmGenesisWarpConfigDto;
3444
+ /**
3445
+ * Transaction allow list configuration
3446
+ */
3447
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
3448
+ /**
3449
+ * Contract deployer allow list configuration
3450
+ */
3451
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
3452
+ /**
3453
+ * Contract native minter configuration
3454
+ */
3455
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
3456
+ /**
3457
+ * Fee manager configuration
3458
+ */
3459
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
3460
+ /**
3461
+ * Reward manager configuration
3462
+ */
3463
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
3464
+ };
3465
+
3466
+ type EvmGenesisDto = {
3467
+ /**
3468
+ * Airdrop amount
3469
+ */
3470
+ airdropAmount?: number | null;
3471
+ /**
3472
+ * Airdrop hash
3473
+ */
3474
+ airdropHash?: string;
3475
+ /**
3476
+ * Allocation of accounts and balances
3477
+ */
3478
+ alloc?: Record<string, EvmGenesisAllocDto>;
3479
+ /**
3480
+ * Base fee per gas
3481
+ */
3482
+ baseFeePerGas?: number | null;
3483
+ /**
3484
+ * Blob gas used
3485
+ */
3486
+ blobGasUsed?: string | null;
3487
+ /**
3488
+ * Coinbase address
3489
+ */
3490
+ coinbase?: string;
3491
+ /**
3492
+ * Genesis configuration
3493
+ */
3494
+ config?: EvmGenesisConfigDto;
3495
+ /**
3496
+ * Difficulty
3497
+ */
3498
+ difficulty?: string;
3499
+ /**
3500
+ * Excess blob gas
3501
+ */
3502
+ excessBlobGas?: string | null;
3503
+ /**
3504
+ * Extra data
3505
+ */
3506
+ extraData?: string;
3507
+ /**
3508
+ * Gas limit
3509
+ */
3510
+ gasLimit?: string;
3511
+ /**
3512
+ * Gas used
3513
+ */
3514
+ gasUsed?: string;
3515
+ /**
3516
+ * Mix hash
3517
+ */
3518
+ mixHash?: string;
3519
+ /**
3520
+ * Nonce
3521
+ */
3522
+ nonce?: string;
3523
+ /**
3524
+ * Block number
3525
+ */
3526
+ number?: string;
3527
+ /**
3528
+ * Parent hash
3529
+ */
3530
+ parentHash?: string;
3531
+ /**
3532
+ * Block timestamp
3533
+ */
3534
+ timestamp?: string;
3535
+ };
3536
+
3231
3537
  type Blockchain = {
3232
3538
  createBlockTimestamp: number;
3233
3539
  createBlockNumber: string;
@@ -3235,16 +3541,22 @@ type Blockchain = {
3235
3541
  vmId: string;
3236
3542
  subnetId: string;
3237
3543
  blockchainName: string;
3544
+ /**
3545
+ * EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
3546
+ */
3547
+ evmChainId: number;
3548
+ /**
3549
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
3550
+ */
3551
+ genesisData?: (EvmGenesisDto | string);
3238
3552
  };
3239
3553
 
3240
3554
  declare enum BlockchainIds {
3241
3555
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3242
3556
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3243
3557
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3244
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3245
3558
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3246
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3247
- V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
3559
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
3248
3560
  }
3249
3561
 
3250
3562
  type ChainAddressChainIdMap = {
@@ -3434,6 +3746,10 @@ type ListL1ValidatorsResponse = {
3434
3746
  * The list of L1 validations for the given Subnet ID, NodeId or validationId
3435
3747
  */
3436
3748
  validators: Array<L1ValidatorDetailsFull>;
3749
+ /**
3750
+ * Block height at which the L1 validator's remaining balance is calculated
3751
+ */
3752
+ blockHeight: string;
3437
3753
  };
3438
3754
 
3439
3755
  type L1ValidatorManagerDetails = {
@@ -3759,7 +4075,6 @@ type XChainAssetDetails = {
3759
4075
  declare enum XChainId {
3760
4076
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3761
4077
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3762
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3763
4078
  X_CHAIN = "x-chain"
3764
4079
  }
3765
4080
 
@@ -3830,7 +4145,7 @@ declare class PrimaryNetworkService {
3830
4145
  */
3831
4146
  pageToken?: string;
3832
4147
  /**
3833
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4148
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3834
4149
  */
3835
4150
  pageSize?: number;
3836
4151
  /**
@@ -3870,7 +4185,7 @@ declare class PrimaryNetworkService {
3870
4185
  */
3871
4186
  pageToken?: string;
3872
4187
  /**
3873
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4188
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3874
4189
  */
3875
4190
  pageSize?: number;
3876
4191
  /**
@@ -3896,7 +4211,7 @@ declare class PrimaryNetworkService {
3896
4211
  }): CancelablePromise<Subnet>;
3897
4212
  /**
3898
4213
  * List validators
3899
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
4214
+ * Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
3900
4215
  * @returns ListValidatorDetailsResponse Successful response
3901
4216
  * @throws ApiError
3902
4217
  */
@@ -3914,7 +4229,7 @@ declare class PrimaryNetworkService {
3914
4229
  */
3915
4230
  pageSize?: number;
3916
4231
  /**
3917
- * A comma separated list of node ids to filter by.
4232
+ * A comma separated list of node ids to filter by. Supports substring matching.
3918
4233
  */
3919
4234
  nodeIds?: string;
3920
4235
  /**
@@ -4075,10 +4390,8 @@ declare enum BlockchainId {
4075
4390
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
4076
4391
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4077
4392
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4078
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
4079
4393
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
4080
4394
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
4081
- V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
4082
4395
  P_CHAIN = "p-chain",
4083
4396
  X_CHAIN = "x-chain",
4084
4397
  C_CHAIN = "c-chain"
@@ -4668,6 +4981,10 @@ type Utxo = {
4668
4981
  * UTXO ID for this output.
4669
4982
  */
4670
4983
  utxoId: string;
4984
+ /**
4985
+ * The bytes of the UTXO
4986
+ */
4987
+ utxoBytes?: string;
4671
4988
  /**
4672
4989
  * Unix timestamp in seconds at which this output was consumed.
4673
4990
  */
@@ -4836,6 +5153,15 @@ type ListCChainAtomicTransactionsResponse = {
4836
5153
  chainInfo: PrimaryNetworkChainInfo;
4837
5154
  };
4838
5155
 
5156
+ type BlockchainInfo = {
5157
+ chainName: string;
5158
+ vmId: string;
5159
+ /**
5160
+ * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
5161
+ */
5162
+ genesisData?: (EvmGenesisDto | string);
5163
+ };
5164
+
4839
5165
  type L1ValidatorDetailsTransaction = {
4840
5166
  /**
4841
5167
  * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
@@ -4916,6 +5242,10 @@ type PChainUtxo = {
4916
5242
  * UTXO ID for this output.
4917
5243
  */
4918
5244
  utxoId: string;
5245
+ /**
5246
+ * The bytes of the UTXO
5247
+ */
5248
+ utxoBytes?: string;
4919
5249
  /**
4920
5250
  * @deprecated
4921
5251
  */
@@ -5064,6 +5394,10 @@ type PChainTransaction = {
5064
5394
  * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
5065
5395
  */
5066
5396
  blsCredentials?: BlsCredentials;
5397
+ /**
5398
+ * Details of the blockchain that was created in the CreateChainTx
5399
+ */
5400
+ blockchainInfo?: BlockchainInfo;
5067
5401
  };
5068
5402
 
5069
5403
  type ListPChainTransactionsResponse = {
@@ -5434,6 +5768,18 @@ type ListUtxosResponse = {
5434
5768
  chainInfo: PrimaryNetworkChainInfo;
5435
5769
  };
5436
5770
 
5771
+ type PrimaryNetworkAddressesBodyDto = {
5772
+ /**
5773
+ * Comma-separated list of primary network addresses
5774
+ */
5775
+ addresses: string;
5776
+ };
5777
+
5778
+ declare enum UtxosSortByOption {
5779
+ TIMESTAMP = "timestamp",
5780
+ AMOUNT = "amount"
5781
+ }
5782
+
5437
5783
  declare class PrimaryNetworkUtxOsService {
5438
5784
  readonly httpRequest: BaseHttpRequest;
5439
5785
  constructor(httpRequest: BaseHttpRequest);
@@ -5443,7 +5789,7 @@ declare class PrimaryNetworkUtxOsService {
5443
5789
  * @returns any Successful response
5444
5790
  * @throws ApiError
5445
5791
  */
5446
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
5792
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5447
5793
  /**
5448
5794
  * A primary network blockchain id or alias.
5449
5795
  */
@@ -5468,10 +5814,63 @@ declare class PrimaryNetworkUtxOsService {
5468
5814
  * Asset ID for any asset (only applicable X-Chain)
5469
5815
  */
5470
5816
  assetId?: string;
5817
+ /**
5818
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5819
+ */
5820
+ minUtxoAmount?: number;
5471
5821
  /**
5472
5822
  * Boolean filter to include spent UTXOs.
5473
5823
  */
5474
5824
  includeSpent?: boolean;
5825
+ /**
5826
+ * Which property to sort by, in conjunction with sortOrder.
5827
+ */
5828
+ sortBy?: UtxosSortByOption;
5829
+ /**
5830
+ * 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.
5831
+ */
5832
+ sortOrder?: SortOrder;
5833
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5834
+ /**
5835
+ * List UTXOs v2 - Supports querying for more addresses
5836
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
5837
+ * @returns any Successful response
5838
+ * @throws ApiError
5839
+ */
5840
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5841
+ /**
5842
+ * A primary network blockchain id or alias.
5843
+ */
5844
+ blockchainId: BlockchainId;
5845
+ /**
5846
+ * Either mainnet or testnet/fuji.
5847
+ */
5848
+ network: Network;
5849
+ requestBody: PrimaryNetworkAddressesBodyDto;
5850
+ /**
5851
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5852
+ */
5853
+ pageToken?: string;
5854
+ /**
5855
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
5856
+ */
5857
+ pageSize?: number;
5858
+ /**
5859
+ * Asset ID for any asset (only applicable X-Chain)
5860
+ */
5861
+ assetId?: string;
5862
+ /**
5863
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5864
+ */
5865
+ minUtxoAmount?: number;
5866
+ /**
5867
+ * Boolean filter to include spent UTXOs.
5868
+ */
5869
+ includeSpent?: boolean;
5870
+ /**
5871
+ * Which property to sort by, in conjunction with sortOrder.
5872
+ */
5873
+ sortBy?: UtxosSortByOption;
5475
5874
  /**
5476
5875
  * 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.
5477
5876
  */
@@ -5585,10 +5984,30 @@ type SignatureAggregationResponse = {
5585
5984
  };
5586
5985
 
5587
5986
  type SignatureAggregatorRequest = {
5588
- message: string;
5987
+ /**
5988
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
5989
+ */
5990
+ message?: string;
5991
+ /**
5992
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
5993
+ */
5589
5994
  justification?: string;
5995
+ /**
5996
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
5997
+ */
5590
5998
  signingSubnetId?: string;
5999
+ /**
6000
+ * Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
6001
+ */
5591
6002
  quorumPercentage?: number;
6003
+ /**
6004
+ * Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
6005
+ */
6006
+ quorumPercentageBuffer?: number;
6007
+ /**
6008
+ * Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
6009
+ */
6010
+ pChainHeight?: number;
5592
6011
  };
5593
6012
 
5594
6013
  declare class SignatureAggregatorService {
@@ -5756,7 +6175,7 @@ type ListTeleporterMessagesResponse = {
5756
6175
  * 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.
5757
6176
  */
5758
6177
  nextPageToken?: string;
5759
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
6178
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
5760
6179
  };
5761
6180
 
5762
6181
  declare class TeleporterService {
@@ -5854,28 +6273,23 @@ type AddressesChangeRequest = {
5854
6273
  };
5855
6274
 
5856
6275
  type AddressActivityMetadata = {
5857
- /**
5858
- * Ethereum address(es) for the address_activity event type
5859
- */
5860
- addresses: Array<string>;
5861
6276
  /**
5862
6277
  * Array of hexadecimal strings of the event signatures.
5863
6278
  */
5864
6279
  eventSignatures?: Array<string>;
6280
+ /**
6281
+ * Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
6282
+ */
6283
+ addresses: Array<string>;
5865
6284
  };
5866
6285
 
5867
- declare enum PrimaryNetworkType {
5868
- MAINNET = "mainnet",
5869
- FUJI = "fuji"
5870
- }
5871
-
5872
6286
  type EVMAddressActivityRequest = {
5873
6287
  eventType: EVMAddressActivityRequest.eventType;
5874
6288
  url: string;
5875
- chainId: string;
5876
- network?: PrimaryNetworkType;
5877
6289
  name?: string;
5878
6290
  description?: string;
6291
+ chainId: string;
6292
+ metadata: AddressActivityMetadata;
5879
6293
  /**
5880
6294
  * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5881
6295
  */
@@ -5884,7 +6298,6 @@ type EVMAddressActivityRequest = {
5884
6298
  * Whether to include logs in the webhook payload.
5885
6299
  */
5886
6300
  includeLogs?: boolean;
5887
- metadata: AddressActivityMetadata;
5888
6301
  };
5889
6302
  declare namespace EVMAddressActivityRequest {
5890
6303
  enum eventType {
@@ -5892,10 +6305,8 @@ declare namespace EVMAddressActivityRequest {
5892
6305
  }
5893
6306
  }
5894
6307
 
5895
- declare enum EventType {
5896
- ADDRESS_ACTIVITY = "address_activity",
5897
- PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
5898
- VALIDATOR_ACTIVITY = "validator_activity"
6308
+ declare enum AddressActivityEventType {
6309
+ ADDRESS_ACTIVITY = "address_activity"
5899
6310
  }
5900
6311
 
5901
6312
  declare enum WebhookStatusType {
@@ -5905,13 +6316,13 @@ declare enum WebhookStatusType {
5905
6316
 
5906
6317
  type EVMAddressActivityResponse = {
5907
6318
  id: string;
5908
- eventType: EventType;
5909
6319
  url: string;
5910
6320
  chainId: string;
5911
6321
  status: WebhookStatusType;
5912
6322
  createdAt: number;
5913
6323
  name: string;
5914
6324
  description: string;
6325
+ eventType: AddressActivityEventType;
5915
6326
  metadata: AddressActivityMetadata;
5916
6327
  /**
5917
6328
  * Whether to include traces in the webhook payload.
@@ -5932,30 +6343,28 @@ type ListWebhookAddressesResponse = {
5932
6343
  totalAddresses: number;
5933
6344
  };
5934
6345
 
6346
+ declare enum PrimaryNetworkAddressActivityEventType {
6347
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6348
+ }
6349
+
5935
6350
  /**
5936
- * The type of key for platform activity depending on the event type
6351
+ * The type of key to monitor for the address activity event type.
5937
6352
  */
5938
- declare enum PlatformActivityKeyType {
5939
- ADDRESSES = "addresses",
5940
- NODE_ID = "nodeId",
5941
- SUBNET_ID = "subnetId"
6353
+ declare enum PlatformAddressActivityKeyType {
6354
+ ADDRESSES = "addresses"
5942
6355
  }
5943
6356
 
5944
6357
  /**
5945
6358
  * Array of address activity sub-event types
5946
6359
  */
5947
- declare enum PlatformAddressActivitySubEventType {
5948
- BALANCE_CHANGE_PLATFORM = "balance_change_platform",
5949
- BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
6360
+ declare enum PrimaryNetworkAddressActivitySubEventType {
6361
+ BALANCE_CHANGE = "balance_change",
6362
+ BALANCE_THRESHOLD = "balance_threshold",
5950
6363
  REWARD_DISTRIBUTION = "reward_distribution"
5951
6364
  }
5952
6365
 
5953
- type PlatformActivitySubEvents = {
5954
- /**
5955
- * Array of validator activity sub-event types
5956
- */
5957
- validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
5958
- addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
6366
+ type PrimaryNetworkAddressActivitySubEvents = {
6367
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
5959
6368
  };
5960
6369
 
5961
6370
  /**
@@ -5974,7 +6383,7 @@ declare enum CommonBalanceType {
5974
6383
  ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
5975
6384
  }
5976
6385
 
5977
- type PlatformBalanceThresholdFilter = {
6386
+ type PrimaryNetworkBalanceThresholdFilter = {
5978
6387
  balanceType: CommonBalanceType;
5979
6388
  /**
5980
6389
  * Threshold for balance corresponding to balanceType in nAVAX
@@ -5982,20 +6391,71 @@ type PlatformBalanceThresholdFilter = {
5982
6391
  balanceThreshold: string;
5983
6392
  };
5984
6393
 
5985
- type PlatformActivityMetadata = {
5986
- keyType: PlatformActivityKeyType;
6394
+ type PrimaryNetworkAddressActivityMetadata = {
6395
+ /**
6396
+ * Array of hexadecimal strings of the event signatures.
6397
+ */
6398
+ eventSignatures?: Array<string>;
6399
+ keyType: PlatformAddressActivityKeyType;
5987
6400
  /**
5988
- * Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
6401
+ * Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
5989
6402
  */
5990
6403
  keys: Array<string>;
5991
6404
  /**
5992
6405
  * Sub-events to monitor
5993
6406
  */
5994
- subEvents?: PlatformActivitySubEvents;
6407
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
6408
+ /**
6409
+ * Balance threshold filter
6410
+ */
6411
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
6412
+ };
6413
+
6414
+ type PrimaryNetworkAddressActivityResponse = {
6415
+ id: string;
6416
+ url: string;
6417
+ chainId: string;
6418
+ status: WebhookStatusType;
6419
+ createdAt: number;
6420
+ name: string;
6421
+ description: string;
6422
+ eventType: PrimaryNetworkAddressActivityEventType;
6423
+ metadata: PrimaryNetworkAddressActivityMetadata;
6424
+ };
6425
+
6426
+ declare enum ValidatorActivityEventType {
6427
+ VALIDATOR_ACTIVITY = "validator_activity"
6428
+ }
6429
+
6430
+ /**
6431
+ * The type of key to monitor for the validator activity event type.
6432
+ */
6433
+ declare enum ValidatorActivityKeyType {
6434
+ NODE_ID = "nodeId",
6435
+ SUBNET_ID = "subnetId"
6436
+ }
6437
+
6438
+ type ValidatorActivitySubEvents = {
6439
+ /**
6440
+ * Array of validator activity sub-event types
6441
+ */
6442
+ validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
6443
+ };
6444
+
6445
+ type ValidatorActivityMetadata = {
5995
6446
  /**
5996
6447
  * Array of hexadecimal strings of the event signatures.
5997
6448
  */
5998
6449
  eventSignatures?: Array<string>;
6450
+ keyType: ValidatorActivityKeyType;
6451
+ /**
6452
+ * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
6453
+ */
6454
+ keys: Array<string>;
6455
+ /**
6456
+ * Sub-events to monitor
6457
+ */
6458
+ subEvents: ValidatorActivitySubEvents;
5999
6459
  /**
6000
6460
  * Array of node IDs to filter the events
6001
6461
  */
@@ -6004,26 +6464,22 @@ type PlatformActivityMetadata = {
6004
6464
  * Array of subnet IDs to filter the events
6005
6465
  */
6006
6466
  subnetIds?: Array<string>;
6007
- /**
6008
- * Balance threshold filter
6009
- */
6010
- balanceThresholdFilter?: PlatformBalanceThresholdFilter;
6011
6467
  /**
6012
6468
  * L1 validator fee balance threshold in nAVAX
6013
6469
  */
6014
6470
  l1ValidatorFeeBalanceThreshold?: string;
6015
6471
  };
6016
6472
 
6017
- type PlatformActivityResponse = {
6473
+ type ValidatorActivityResponse = {
6018
6474
  id: string;
6019
- eventType: EventType;
6020
6475
  url: string;
6021
6476
  chainId: string;
6022
6477
  status: WebhookStatusType;
6023
6478
  createdAt: number;
6024
6479
  name: string;
6025
6480
  description: string;
6026
- metadata: PlatformActivityMetadata;
6481
+ eventType: ValidatorActivityEventType;
6482
+ metadata: ValidatorActivityMetadata;
6027
6483
  };
6028
6484
 
6029
6485
  type ListWebhooksResponse = {
@@ -6031,33 +6487,29 @@ type ListWebhooksResponse = {
6031
6487
  * 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.
6032
6488
  */
6033
6489
  nextPageToken?: string;
6034
- webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6490
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6035
6491
  };
6036
6492
 
6037
- type PlatformActivityRequest = {
6038
- eventType: PlatformActivityRequest.eventType;
6493
+ declare enum PrimaryNetworkType {
6494
+ MAINNET = "mainnet",
6495
+ FUJI = "fuji"
6496
+ }
6497
+
6498
+ type PrimaryNetworkAddressActivityRequest = {
6499
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6039
6500
  url: string;
6040
- chainId: string;
6041
- network?: PrimaryNetworkType;
6042
6501
  name?: string;
6043
6502
  description?: string;
6503
+ network: PrimaryNetworkType;
6504
+ chainId: string;
6044
6505
  /**
6045
- * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6046
- */
6047
- includeInternalTxs?: boolean;
6048
- /**
6049
- * Whether to include logs in the webhook payload.
6050
- */
6051
- includeLogs?: boolean;
6052
- /**
6053
- * Metadata for platform activity
6506
+ * Metadata for platform address activity event
6054
6507
  */
6055
- metadata: PlatformActivityMetadata;
6508
+ metadata: PrimaryNetworkAddressActivityMetadata;
6056
6509
  };
6057
- declare namespace PlatformActivityRequest {
6510
+ declare namespace PrimaryNetworkAddressActivityRequest {
6058
6511
  enum eventType {
6059
- PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
6060
- VALIDATOR_ACTIVITY = "validator_activity"
6512
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6061
6513
  }
6062
6514
  }
6063
6515
 
@@ -6077,6 +6529,23 @@ type UpdateWebhookRequest = {
6077
6529
  includeLogs?: boolean;
6078
6530
  };
6079
6531
 
6532
+ type ValidatorActivityRequest = {
6533
+ eventType: ValidatorActivityRequest.eventType;
6534
+ url: string;
6535
+ name?: string;
6536
+ description?: string;
6537
+ network: PrimaryNetworkType;
6538
+ /**
6539
+ * Metadata for platform validator activity event
6540
+ */
6541
+ metadata: ValidatorActivityMetadata;
6542
+ };
6543
+ declare namespace ValidatorActivityRequest {
6544
+ enum eventType {
6545
+ VALIDATOR_ACTIVITY = "validator_activity"
6546
+ }
6547
+ }
6548
+
6080
6549
  declare enum WebhookStatus {
6081
6550
  ACTIVE = "active",
6082
6551
  INACTIVE = "inactive"
@@ -6092,8 +6561,8 @@ declare class WebhooksService {
6092
6561
  * @throws ApiError
6093
6562
  */
6094
6563
  createWebhook({ requestBody, }: {
6095
- requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
6096
- }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6564
+ requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
6565
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6097
6566
  /**
6098
6567
  * List webhooks
6099
6568
  * Lists webhooks for the user.
@@ -6125,7 +6594,7 @@ declare class WebhooksService {
6125
6594
  * The webhook identifier.
6126
6595
  */
6127
6596
  id: string;
6128
- }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6597
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6129
6598
  /**
6130
6599
  * Deactivate a webhook
6131
6600
  * Deactivates a webhook by ID.
@@ -6137,7 +6606,7 @@ declare class WebhooksService {
6137
6606
  * The webhook identifier.
6138
6607
  */
6139
6608
  id: string;
6140
- }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6609
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6141
6610
  /**
6142
6611
  * Update a webhook
6143
6612
  * Updates an existing webhook.
@@ -6150,7 +6619,7 @@ declare class WebhooksService {
6150
6619
  */
6151
6620
  id: string;
6152
6621
  requestBody: UpdateWebhookRequest;
6153
- }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6622
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6154
6623
  /**
6155
6624
  * Generate or rotate a shared secret
6156
6625
  * Generates a new shared secret or rotate an existing one.
@@ -6215,6 +6684,7 @@ declare class WebhooksService {
6215
6684
 
6216
6685
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
6217
6686
  declare class Glacier {
6687
+ readonly avaxSupply: AvaxSupplyService;
6218
6688
  readonly dataApiUsageMetrics: DataApiUsageMetricsService;
6219
6689
  readonly default: DefaultService;
6220
6690
  readonly evmBalances: EvmBalancesService;
@@ -6513,6 +6983,37 @@ type TooManyRequests = {
6513
6983
  error: string;
6514
6984
  };
6515
6985
 
6986
+ type WebhookInternalTransaction = {
6987
+ /**
6988
+ * Sender address
6989
+ */
6990
+ from: string;
6991
+ /**
6992
+ * Recipient address
6993
+ */
6994
+ to: string;
6995
+ /**
6996
+ * Internal transaction type
6997
+ */
6998
+ internalTxType: string;
6999
+ /**
7000
+ * Value transferred
7001
+ */
7002
+ value: string;
7003
+ /**
7004
+ * Gas used
7005
+ */
7006
+ gasUsed: string;
7007
+ /**
7008
+ * Gas limit
7009
+ */
7010
+ gasLimit: string;
7011
+ /**
7012
+ * Transaction hash
7013
+ */
7014
+ transactionHash: string;
7015
+ };
7016
+
6516
7017
  type Transaction = {
6517
7018
  /**
6518
7019
  * Block hash of the transaction
@@ -6617,7 +7118,7 @@ type Transaction = {
6617
7118
  /**
6618
7119
  * Internal transactions (optional)
6619
7120
  */
6620
- internalTransactions?: Array<InternalTransaction>;
7121
+ internalTransactions?: Array<WebhookInternalTransaction>;
6621
7122
  /**
6622
7123
  * Access list (optional)
6623
7124
  */
@@ -6681,5 +7182,16 @@ declare namespace WebhookAddressActivityResponse {
6681
7182
  }
6682
7183
  }
6683
7184
 
6684
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EventType, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityRequest, PlatformAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6685
- export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorHealthDetails, ValidatorsDetails, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
7185
+ declare class FetchHttpRequest extends BaseHttpRequest {
7186
+ constructor(config: OpenAPIConfig);
7187
+ /**
7188
+ * Request method
7189
+ * @param options The request options from the service
7190
+ * @returns CancelablePromise<T>
7191
+ * @throws ApiError
7192
+ */
7193
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
7194
+ }
7195
+
7196
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
7197
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };