@avalabs/glacier-sdk 3.1.0-canary.b86a6f6.0 → 3.1.0-canary.bac8d3c.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 (137) hide show
  1. package/dist/index.d.ts +1619 -372
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessListData.d.ts +12 -0
  6. package/esm/generated/models/AccessRequest.d.ts +12 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  8. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  9. package/esm/generated/models/CommonBalanceType.js +1 -0
  10. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  11. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  12. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  13. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  14. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  15. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  16. package/esm/generated/models/ERCToken.d.ts +24 -0
  17. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  18. package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
  19. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  20. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  21. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  22. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  23. package/esm/generated/models/EventType.d.ts +3 -1
  24. package/esm/generated/models/EventType.js +1 -1
  25. package/esm/generated/models/EvmBlock.d.ts +4 -0
  26. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  27. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  28. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -2
  29. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  30. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  31. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  32. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  33. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  34. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  35. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  36. package/esm/generated/models/IcmRewardDetails.js +1 -0
  37. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  38. package/esm/generated/models/InternalTransaction.d.ts +15 -16
  39. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  40. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  41. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  42. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  43. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  44. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  45. package/esm/generated/models/{ListSubnetOnlyValidatorsResponse.d.ts → ListL1ValidatorsResponse.d.ts} +4 -4
  46. package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
  47. package/esm/generated/models/Log.d.ts +40 -0
  48. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  49. package/esm/generated/models/Network.d.ts +1 -2
  50. package/esm/generated/models/Network.js +1 -1
  51. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  52. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  53. package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
  54. package/esm/generated/models/PChainTransaction.d.ts +25 -13
  55. package/esm/generated/models/PChainTransactionType.d.ts +5 -5
  56. package/esm/generated/models/PChainTransactionType.js +1 -1
  57. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  58. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  59. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  60. package/esm/generated/models/PendingIcmMessage.js +1 -0
  61. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  62. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  63. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  64. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  65. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  66. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  67. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  68. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  69. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
  70. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  71. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  72. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -2
  73. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  74. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  75. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  76. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  77. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  78. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  79. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
  80. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  81. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  82. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  83. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  84. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  85. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  86. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  87. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  88. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  89. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  90. package/esm/generated/models/Subnet.d.ts +6 -2
  91. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  92. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  93. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  94. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  95. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  96. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  97. package/esm/generated/models/Transaction.d.ts +121 -0
  98. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  99. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  100. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  101. package/esm/generated/models/UtxoType.d.ts +3 -0
  102. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  103. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  104. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  105. package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
  106. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  107. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  108. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  109. package/esm/generated/services/EvmBlocksService.js +1 -1
  110. package/esm/generated/services/EvmChainsService.d.ts +69 -4
  111. package/esm/generated/services/EvmChainsService.js +1 -1
  112. package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
  113. package/esm/generated/services/EvmTransactionsService.js +1 -1
  114. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  115. package/esm/generated/services/HealthCheckService.js +1 -1
  116. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  117. package/esm/generated/services/InterchainMessagingService.js +1 -0
  118. package/esm/generated/services/NotificationsService.d.ts +51 -0
  119. package/esm/generated/services/NotificationsService.js +1 -0
  120. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  121. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  122. package/esm/generated/services/PrimaryNetworkService.d.ts +26 -9
  123. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  124. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +3 -3
  125. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  126. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  127. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  128. package/esm/generated/services/TeleporterService.d.ts +12 -6
  129. package/esm/generated/services/WebhooksService.d.ts +26 -24
  130. package/esm/generated/services/WebhooksService.js +1 -1
  131. package/esm/index.d.ts +46 -7
  132. package/esm/index.js +1 -1
  133. package/package.json +2 -2
  134. package/esm/generated/models/BlockchainInfo.d.ts +0 -5
  135. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  136. package/esm/generated/models/SoVDetailsTransaction.d.ts +0 -23
  137. package/esm/generated/models/SovDetailsFull.d.ts +0 -33
@@ -0,0 +1,8 @@
1
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
2
+ HOURLY = "hourly",
3
+ DAILY = "daily",
4
+ WEEKLY = "weekly",
5
+ MONTHLY = "monthly"
6
+ }
7
+
8
+ export { PrimaryNetworkRpcTimeIntervalGranularity };
@@ -0,0 +1 @@
1
+ var l=(l=>(l.HOURLY="hourly",l.DAILY="daily",l.WEEKLY="weekly",l.MONTHLY="monthly",l))(l||{});export{l as PrimaryNetworkRpcTimeIntervalGranularity};
@@ -0,0 +1,27 @@
1
+ import { RpcMetrics } from './RpcMetrics.js';
2
+
3
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
4
+ /**
5
+ * Duration in which the metrics value is aggregated
6
+ */
7
+ aggregateDuration: string;
8
+ /**
9
+ * Metrics values
10
+ */
11
+ metrics: Array<RpcMetrics>;
12
+ /**
13
+ * Network type for which the metrics are aggregated
14
+ */
15
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
16
+ };
17
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
18
+ /**
19
+ * Network type for which the metrics are aggregated
20
+ */
21
+ enum network {
22
+ MAINNET = "mainnet",
23
+ TESTNET = "testnet"
24
+ }
25
+ }
26
+
27
+ export { PrimaryNetworkRpcUsageMetricsResponseDTO };
@@ -0,0 +1 @@
1
+ var t,e,n;e=t||(t={}),(n=e.network||(e.network={})).MAINNET="mainnet",n.TESTNET="testnet";export{t as PrimaryNetworkRpcUsageMetricsResponseDTO};
@@ -14,11 +14,11 @@ declare enum PrimaryNetworkTxType {
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
15
  BASE_TX = "BaseTx",
16
16
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
- CONVERT_SUBNET_TX = "ConvertSubnetTx",
18
- REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
19
- SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
20
- DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
21
- INCREASE_BALANCE_TX = "IncreaseBalanceTx",
17
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
18
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
19
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
20
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
21
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
22
22
  UNKNOWN = "UNKNOWN",
23
23
  CREATE_ASSET_TX = "CreateAssetTx",
24
24
  OPERATION_TX = "OperationTx"
@@ -1 +1 @@
1
- var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TX="ConvertSubnetTx",T.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",T.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",T.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",T.INCREASE_BALANCE_TX="IncreaseBalanceTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
1
+ var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TO_L1TX="ConvertSubnetToL1Tx",T.REGISTER_L1VALIDATOR_TX="RegisterL1ValidatorTx",T.SET_L1VALIDATOR_WEIGHT_TX="SetL1ValidatorWeightTx",T.DISABLE_L1VALIDATOR_TX="DisableL1ValidatorTx",T.INCREASE_L1VALIDATOR_BALANCE_TX="IncreaseL1ValidatorBalanceTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
@@ -0,0 +1,6 @@
1
+ declare enum PrimaryNetworkType {
2
+ MAINNET = "mainnet",
3
+ FUJI = "fuji"
4
+ }
5
+
6
+ export { PrimaryNetworkType };
@@ -0,0 +1 @@
1
+ var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as PrimaryNetworkType};
@@ -5,6 +5,9 @@ type RemovedValidatorDetails = {
5
5
  nodeId: string;
6
6
  subnetId: string;
7
7
  amountStaked: string;
8
+ /**
9
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
10
+ */
8
11
  delegationFee?: string;
9
12
  startTimestamp: number;
10
13
  endTimestamp: number;
@@ -12,7 +15,13 @@ type RemovedValidatorDetails = {
12
15
  * Present for AddPermissionlessValidatorTx
13
16
  */
14
17
  blsCredentials?: BlsCredentials;
18
+ /**
19
+ * The transaction hash that removed the permissioned subnet validator.
20
+ */
15
21
  removeTxHash: string;
22
+ /**
23
+ * The timestamp of the transaction that removed the permissioned subnet validator.
24
+ */
16
25
  removeTimestamp: number;
17
26
  validationStatus: RemovedValidatorDetails.validationStatus;
18
27
  };
@@ -0,0 +1,7 @@
1
+ declare enum RpcUsageMetricsGroupByEnum {
2
+ RPC_METHOD = "rpcMethod",
3
+ RESPONSE_CODE = "responseCode",
4
+ RL_BYPASS_TOKEN = "rlBypassToken"
5
+ }
6
+
7
+ export { RpcUsageMetricsGroupByEnum };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.RPC_METHOD="rpcMethod",e.RESPONSE_CODE="responseCode",e.RL_BYPASS_TOKEN="rlBypassToken",e))(e||{});export{e as RpcUsageMetricsGroupByEnum};
@@ -23,6 +23,10 @@ type RpcUsageMetricsValueAggregated = {
23
23
  * The number of invalid requests
24
24
  */
25
25
  invalidRequests: number;
26
+ /**
27
+ * The number of API credits wasted on invalid requests
28
+ */
29
+ apiCreditsWasted: number;
26
30
  /**
27
31
  * Column name used for data aggregation
28
32
  */
@@ -40,6 +44,10 @@ declare namespace RpcUsageMetricsValueAggregated {
40
44
  RPC_METHOD = "rpcMethod",
41
45
  RESPONSE_CODE = "responseCode",
42
46
  RL_BYPASS_TOKEN = "rlBypassToken",
47
+ REQUEST_PATH = "requestPath",
48
+ COUNTRY = "country",
49
+ CONTINENT = "continent",
50
+ USER_AGENT = "userAgent",
43
51
  NONE = "None"
44
52
  }
45
53
  }
@@ -1 +1 @@
1
- var e,o,r;o=e||(e={}),(r=o.groupedBy||(o.groupedBy={})).RPC_METHOD="rpcMethod",r.RESPONSE_CODE="responseCode",r.RL_BYPASS_TOKEN="rlBypassToken",r.NONE="None";export{e as RpcUsageMetricsValueAggregated};
1
+ var e,E,o;E=e||(e={}),(o=E.groupedBy||(E.groupedBy={})).RPC_METHOD="rpcMethod",o.RESPONSE_CODE="responseCode",o.RL_BYPASS_TOKEN="rlBypassToken",o.REQUEST_PATH="requestPath",o.COUNTRY="country",o.CONTINENT="continent",o.USER_AGENT="userAgent",o.NONE="None";export{e as RpcUsageMetricsValueAggregated};
@@ -1,11 +1,5 @@
1
1
  type SignatureAggregatorRequest = {
2
- /**
3
- * Must be defined if justification is not defined
4
- */
5
- message?: string;
6
- /**
7
- * Must be defined if message is not defined
8
- */
2
+ message: string;
9
3
  justification?: string;
10
4
  signingSubnetId?: string;
11
5
  quorumPercentage?: number;
@@ -1,6 +1,15 @@
1
1
  type StakingDistribution = {
2
+ /**
3
+ * AvalancheGo version for the validator node.
4
+ */
2
5
  version: string;
6
+ /**
7
+ * The total amount staked by validators using this version.
8
+ */
3
9
  amountStaked: string;
10
+ /**
11
+ * The number of validators using this version.
12
+ */
4
13
  validatorCount: number;
5
14
  };
6
15
 
@@ -1,4 +1,4 @@
1
- import { BlockchainInfo } from './BlockchainInfo.js';
1
+ import { Blockchain } from './Blockchain.js';
2
2
  import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
3
3
  import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
4
4
 
@@ -29,11 +29,15 @@ type Subnet = {
29
29
  * Whether the subnet is an L1 or not.
30
30
  */
31
31
  isL1: boolean;
32
+ /**
33
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
34
+ */
35
+ l1ConversionTransactionHash?: string;
32
36
  /**
33
37
  * L1 validator manager details.
34
38
  */
35
39
  l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
36
- blockchains: Array<BlockchainInfo>;
40
+ blockchains: Array<Blockchain>;
37
41
  };
38
42
 
39
43
  export { Subnet };
@@ -0,0 +1,8 @@
1
+ declare enum SubnetRpcTimeIntervalGranularity {
2
+ HOURLY = "hourly",
3
+ DAILY = "daily",
4
+ WEEKLY = "weekly",
5
+ MONTHLY = "monthly"
6
+ }
7
+
8
+ export { SubnetRpcTimeIntervalGranularity };
@@ -0,0 +1 @@
1
+ var l=(l=>(l.HOURLY="hourly",l.DAILY="daily",l.WEEKLY="weekly",l.MONTHLY="monthly",l))(l||{});export{l as SubnetRpcTimeIntervalGranularity};
@@ -1,18 +1,18 @@
1
1
  import { RpcMetrics } from './RpcMetrics.js';
2
2
 
3
- type RpcUsageMetricsResponseDTO = {
3
+ type SubnetRpcUsageMetricsResponseDTO = {
4
4
  /**
5
5
  * Duration in which the metrics value is aggregated
6
6
  */
7
7
  aggregateDuration: string;
8
- /**
9
- * ChainId for which the metrics are aggregated
10
- */
11
- chainId: string;
12
8
  /**
13
9
  * Metrics values
14
10
  */
15
11
  metrics: Array<RpcMetrics>;
12
+ /**
13
+ * ChainId for which the metrics are aggregated
14
+ */
15
+ chainId: string;
16
16
  };
17
17
 
18
- export { RpcUsageMetricsResponseDTO };
18
+ export { SubnetRpcUsageMetricsResponseDTO };
@@ -0,0 +1,16 @@
1
+ type SubscribeRequest = {
2
+ /**
3
+ * The access token to use for authentication
4
+ */
5
+ accessToken: string;
6
+ /**
7
+ * The node ID to subscribe to
8
+ */
9
+ nodeId: string;
10
+ /**
11
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
12
+ */
13
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
14
+ };
15
+
16
+ export { SubscribeRequest };
@@ -0,0 +1,8 @@
1
+ type SubscriptionsRequest = {
2
+ /**
3
+ * The access token to use for authentication
4
+ */
5
+ accessToken: string;
6
+ };
7
+
8
+ export { SubscriptionsRequest };
@@ -0,0 +1,14 @@
1
+ type SubscriptionsResponse = {
2
+ /**
3
+ * The email address of the user
4
+ */
5
+ email: string;
6
+ /**
7
+ * The subscriptions of the user
8
+ */
9
+ subscriptions: Record<string, {
10
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
11
+ }>;
12
+ };
13
+
14
+ export { SubscriptionsResponse };
@@ -0,0 +1,121 @@
1
+ import { AccessListData } from './AccessListData.js';
2
+ import { ERCTransfer } from './ERCTransfer.js';
3
+ import { InternalTransaction } from './InternalTransaction.js';
4
+ import { NetworkTokenInfo } from './NetworkTokenInfo.js';
5
+
6
+ type Transaction = {
7
+ /**
8
+ * Block hash of the transaction
9
+ */
10
+ blockHash: string;
11
+ /**
12
+ * Block number of the transaction
13
+ */
14
+ blockNumber: string;
15
+ /**
16
+ * Sender address
17
+ */
18
+ from: string;
19
+ /**
20
+ * Gas limit for the transaction
21
+ */
22
+ gas: string;
23
+ /**
24
+ * Gas price used
25
+ */
26
+ gasPrice: string;
27
+ /**
28
+ * Maximum fee per gas
29
+ */
30
+ maxFeePerGas: string;
31
+ /**
32
+ * Maximum priority fee per gas
33
+ */
34
+ maxPriorityFeePerGas: string;
35
+ /**
36
+ * Transaction hash
37
+ */
38
+ txHash: string;
39
+ /**
40
+ * Transaction status
41
+ */
42
+ txStatus: string;
43
+ /**
44
+ * Input data
45
+ */
46
+ input: string;
47
+ /**
48
+ * Nonce value
49
+ */
50
+ nonce: string;
51
+ /**
52
+ * Recipient address
53
+ */
54
+ to: string;
55
+ /**
56
+ * Transaction index
57
+ */
58
+ transactionIndex: number;
59
+ /**
60
+ * Value transferred in the transaction
61
+ */
62
+ value: string;
63
+ /**
64
+ * Transaction type
65
+ */
66
+ type: number;
67
+ /**
68
+ * Chain ID of the network
69
+ */
70
+ chainId: string;
71
+ /**
72
+ * Cumulative gas used
73
+ */
74
+ receiptCumulativeGasUsed: string;
75
+ /**
76
+ * Gas used
77
+ */
78
+ receiptGasUsed: string;
79
+ /**
80
+ * Effective gas price
81
+ */
82
+ receiptEffectiveGasPrice: string;
83
+ /**
84
+ * Receipt root
85
+ */
86
+ receiptRoot: string;
87
+ /**
88
+ * Block timestamp
89
+ */
90
+ blockTimestamp: number;
91
+ /**
92
+ * Contract address (optional)
93
+ */
94
+ contractAddress?: string;
95
+ /**
96
+ * ERC20 transfers
97
+ */
98
+ erc20Transfers: Array<ERCTransfer>;
99
+ /**
100
+ * ERC721 transfers
101
+ */
102
+ erc721Transfers: Array<ERCTransfer>;
103
+ /**
104
+ * ERC1155 transfers
105
+ */
106
+ erc1155Transfers: Array<ERCTransfer>;
107
+ /**
108
+ * Internal transactions (optional)
109
+ */
110
+ internalTransactions?: Array<InternalTransaction>;
111
+ /**
112
+ * Access list (optional)
113
+ */
114
+ accessList?: Array<AccessListData>;
115
+ /**
116
+ * Network token info (optional)
117
+ */
118
+ networkToken?: NetworkTokenInfo;
119
+ };
120
+
121
+ export { Transaction };
@@ -0,0 +1,15 @@
1
+ import { Log } from './Log.js';
2
+ import { Transaction } from './Transaction.js';
3
+
4
+ type TransactionEvent = {
5
+ /**
6
+ * Transaction details
7
+ */
8
+ transaction: Transaction;
9
+ /**
10
+ * Array of log events
11
+ */
12
+ logs?: Array<Log>;
13
+ };
14
+
15
+ export { TransactionEvent };
@@ -0,0 +1,12 @@
1
+ type UnsubscribeRequest = {
2
+ /**
3
+ * The access token to use for authentication
4
+ */
5
+ accessToken: string;
6
+ /**
7
+ * The node ID to subscribe to
8
+ */
9
+ nodeId: string;
10
+ };
11
+
12
+ export { UnsubscribeRequest };
@@ -5,6 +5,9 @@ type UpdateWebhookRequest = {
5
5
  description?: string;
6
6
  url?: string;
7
7
  status?: WebhookStatusType;
8
+ /**
9
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
10
+ */
8
11
  includeInternalTxs?: boolean;
9
12
  includeLogs?: boolean;
10
13
  };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Indicates whether the UTXO is staked or transferable
3
+ */
1
4
  declare enum UtxoType {
2
5
  STAKE = "STAKE",
3
6
  TRANSFER = "TRANSFER"
@@ -3,8 +3,14 @@ import { StakingDistribution } from './StakingDistribution.js';
3
3
  type ValidatorsDetails = {
4
4
  validatorCount: number;
5
5
  totalAmountStaked: string;
6
+ /**
7
+ * Total potential rewards from currently active validations and delegations.
8
+ */
6
9
  estimatedAnnualStakingReward: string;
7
10
  stakingDistributionByVersion: Array<StakingDistribution>;
11
+ /**
12
+ * Ratio of total active stake amount to the current supply.
13
+ */
8
14
  stakingRatio: string;
9
15
  };
10
16
 
@@ -0,0 +1,30 @@
1
+ import { TransactionEvent } from './TransactionEvent.js';
2
+
3
+ type WebhookAddressActivityResponse = {
4
+ /**
5
+ * Webhook ID
6
+ */
7
+ webhookId: string;
8
+ /**
9
+ * Event type
10
+ */
11
+ eventType: WebhookAddressActivityResponse.eventType;
12
+ /**
13
+ * Message ID
14
+ */
15
+ messageId: string;
16
+ /**
17
+ * Event details
18
+ */
19
+ event: TransactionEvent;
20
+ };
21
+ declare namespace WebhookAddressActivityResponse {
22
+ /**
23
+ * Event type
24
+ */
25
+ enum eventType {
26
+ ADDRESS_ACTIVITY = "address_activity"
27
+ }
28
+ }
29
+
30
+ export { WebhookAddressActivityResponse };
@@ -0,0 +1 @@
1
+ var e,t;((t=e||(e={})).eventType||(t.eventType={})).ADDRESS_ACTIVITY="address_activity";export{e as WebhookAddressActivityResponse};