@avalabs/glacier-sdk 3.1.0-canary.c11d301.0 → 3.1.0-canary.c6e87d2.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.
- package/dist/index.d.ts +214 -88
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +0 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/PChainTransaction.d.ts +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
- package/esm/generated/models/Subnet.d.ts +9 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +21 -22
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +4 -3
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +34 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/index.d.ts +8 -6
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
|
@@ -17,7 +17,6 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
|
|
|
17
17
|
import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
|
|
18
18
|
import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
|
|
19
19
|
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
20
|
-
import { RpcService } from './services/RpcService.js';
|
|
21
20
|
import { SignatureAggregatorService } from './services/SignatureAggregatorService.js';
|
|
22
21
|
import { TeleporterService } from './services/TeleporterService.js';
|
|
23
22
|
import { WebhooksService } from './services/WebhooksService.js';
|
|
@@ -41,7 +40,6 @@ declare class Glacier {
|
|
|
41
40
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
42
41
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
43
42
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
44
|
-
readonly rpc: RpcService;
|
|
45
43
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
46
44
|
readonly teleporter: TeleporterService;
|
|
47
45
|
readonly webhooks: WebhooksService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as
|
|
1
|
+
import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as c}from"./services/HealthCheckService.js";import{NfTsService as h}from"./services/NfTsService.js";import{OperationsService as v}from"./services/OperationsService.js";import{PrimaryNetworkService as n}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as p}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as w}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as S}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as k}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as N}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as u}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as E}from"./services/SignatureAggregatorService.js";import{TeleporterService as f}from"./services/TeleporterService.js";import{WebhooksService as l}from"./services/WebhooksService.js";class q{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(q,j=e){this.request=new j({BASE:q?.BASE??"https://glacier-api-dev.avax.network",VERSION:q?.VERSION??"Beta",WITH_CREDENTIALS:q?.WITH_CREDENTIALS??!1,CREDENTIALS:q?.CREDENTIALS??"include",TOKEN:q?.TOKEN,USERNAME:q?.USERNAME,PASSWORD:q?.PASSWORD,HEADERS:q?.HEADERS,ENCODE_PATH:q?.ENCODE_PATH}),this.dataApiUsageMetrics=new r(this.request),this.default=new s(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new i(this.request),this.evmChains=new o(this.request),this.evmContracts=new a(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new c(this.request),this.nfTs=new h(this.request),this.operations=new v(this.request),this.primaryNetwork=new n(this.request),this.primaryNetworkBalances=new p(this.request),this.primaryNetworkBlocks=new w(this.request),this.primaryNetworkRewards=new S(this.request),this.primaryNetworkTransactions=new k(this.request),this.primaryNetworkUtxOs=new N(this.request),this.primaryNetworkVertices=new u(this.request),this.signatureAggregator=new E(this.request),this.teleporter=new f(this.request),this.webhooks=new l(this.request)}}export{q as Glacier};
|
|
@@ -9,7 +9,7 @@ type CreateWebhookRequest = {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
/**
|
|
12
|
-
* Whether to include traces in the webhook payload.
|
|
12
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
13
13
|
*/
|
|
14
14
|
includeInternalTxs?: boolean;
|
|
15
15
|
/**
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BalanceOwner } from './BalanceOwner.js';
|
|
2
|
+
|
|
3
|
+
type L1ValidatorDetailsFull = {
|
|
4
|
+
/**
|
|
5
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
6
|
+
*/
|
|
7
|
+
validationId: string;
|
|
8
|
+
nodeId: string;
|
|
9
|
+
subnetId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
12
|
+
*/
|
|
13
|
+
weight: number;
|
|
14
|
+
/**
|
|
15
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
16
|
+
*/
|
|
17
|
+
remainingBalance: number;
|
|
18
|
+
/**
|
|
19
|
+
* The timestamp of the transaction which created this L1 validator
|
|
20
|
+
*/
|
|
21
|
+
creationTimestamp: number;
|
|
22
|
+
blsCredentials: Record<string, any>;
|
|
23
|
+
/**
|
|
24
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
25
|
+
*/
|
|
26
|
+
remainingBalanceOwner: BalanceOwner;
|
|
27
|
+
/**
|
|
28
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
29
|
+
*/
|
|
30
|
+
deactivationOwner: BalanceOwner;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { L1ValidatorDetailsFull };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type L1ValidatorDetailsTransaction = {
|
|
2
|
+
/**
|
|
3
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4
|
+
*/
|
|
5
|
+
validationId: string;
|
|
6
|
+
nodeId: string;
|
|
7
|
+
subnetId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
10
|
+
*/
|
|
11
|
+
weight: number;
|
|
12
|
+
/**
|
|
13
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
14
|
+
*/
|
|
15
|
+
remainingBalance: number;
|
|
16
|
+
/**
|
|
17
|
+
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
18
|
+
*/
|
|
19
|
+
balanceChange?: number;
|
|
20
|
+
blsCredentials?: Record<string, any>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { L1ValidatorDetailsTransaction };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { L1ValidatorDetailsFull } from './L1ValidatorDetailsFull.js';
|
|
2
|
+
|
|
3
|
+
type ListL1ValidatorsResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* 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.
|
|
6
|
+
*/
|
|
7
|
+
nextPageToken?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
10
|
+
*/
|
|
11
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListL1ValidatorsResponse };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { BlsCredentials } from './BlsCredentials.js';
|
|
3
|
+
import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
|
|
4
|
+
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
3
5
|
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
4
6
|
import { PChainUtxo } from './PChainUtxo.js';
|
|
5
7
|
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
@@ -38,6 +40,10 @@ type PChainTransaction = {
|
|
|
38
40
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
39
41
|
*/
|
|
40
42
|
amountStaked: Array<AssetAmount>;
|
|
43
|
+
/**
|
|
44
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
45
|
+
*/
|
|
46
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
41
47
|
/**
|
|
42
48
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
43
49
|
*/
|
|
@@ -58,6 +64,14 @@ type PChainTransaction = {
|
|
|
58
64
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
59
65
|
*/
|
|
60
66
|
subnetId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
69
|
+
*/
|
|
70
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
71
|
+
/**
|
|
72
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
73
|
+
*/
|
|
74
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
61
75
|
/**
|
|
62
76
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
63
77
|
*/
|
|
@@ -14,6 +14,11 @@ declare enum PChainTransactionType {
|
|
|
14
14
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
15
|
BASE_TX = "BaseTx",
|
|
16
16
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
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",
|
|
17
22
|
UNKNOWN = "UNKNOWN"
|
|
18
23
|
}
|
|
19
24
|
|
|
@@ -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.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
|
|
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))(T||{});export{T as PChainTransactionType};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Network } from './Network.js';
|
|
2
2
|
import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
|
|
3
3
|
|
|
4
4
|
type PrimaryNetworkChainInfo = {
|
|
5
5
|
chainName: PrimaryNetworkChainName;
|
|
6
|
-
network:
|
|
6
|
+
network: Network;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { PrimaryNetworkChainInfo };
|
|
@@ -14,6 +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_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",
|
|
17
22
|
UNKNOWN = "UNKNOWN",
|
|
18
23
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
19
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.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 @@
|
|
|
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
|
*/
|
|
@@ -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,4 +1,5 @@
|
|
|
1
1
|
import { BlockchainInfo } from './BlockchainInfo.js';
|
|
2
|
+
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
2
3
|
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
3
4
|
|
|
4
5
|
type Subnet = {
|
|
@@ -24,6 +25,14 @@ type Subnet = {
|
|
|
24
25
|
* Latest subnet owner details for this Subnet.
|
|
25
26
|
*/
|
|
26
27
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the subnet is an L1 or not.
|
|
30
|
+
*/
|
|
31
|
+
isL1: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* L1 validator manager details.
|
|
34
|
+
*/
|
|
35
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
27
36
|
blockchains: Array<BlockchainInfo>;
|
|
28
37
|
};
|
|
29
38
|
|
|
@@ -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};
|
|
@@ -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,5 +1,7 @@
|
|
|
1
1
|
import { LogsResponseDTO } from '../models/LogsResponseDTO.js';
|
|
2
|
+
import { RpcUsageMetricsGroupByEnum } from '../models/RpcUsageMetricsGroupByEnum.js';
|
|
2
3
|
import { RpcUsageMetricsResponseDTO } from '../models/RpcUsageMetricsResponseDTO.js';
|
|
4
|
+
import { SubnetRpcTimeIntervalGranularity } from '../models/SubnetRpcTimeIntervalGranularity.js';
|
|
3
5
|
import { TimeIntervalGranularityExtended } from '../models/TimeIntervalGranularityExtended.js';
|
|
4
6
|
import { UsageMetricsGroupByEnum } from '../models/UsageMetricsGroupByEnum.js';
|
|
5
7
|
import { UsageMetricsResponseDTO } from '../models/UsageMetricsResponseDTO.js';
|
|
@@ -15,7 +17,7 @@ declare class DataApiUsageMetricsService {
|
|
|
15
17
|
* @returns UsageMetricsResponseDTO Successful response
|
|
16
18
|
* @throws ApiError
|
|
17
19
|
*/
|
|
18
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
20
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
19
21
|
/**
|
|
20
22
|
* Organization ID to fetch usage metrics for
|
|
21
23
|
*/
|
|
@@ -25,7 +27,7 @@ declare class DataApiUsageMetricsService {
|
|
|
25
27
|
*/
|
|
26
28
|
startTimestamp?: number;
|
|
27
29
|
/**
|
|
28
|
-
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
30
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
29
31
|
*/
|
|
30
32
|
endTimestamp?: number;
|
|
31
33
|
/**
|
|
@@ -40,10 +42,6 @@ declare class DataApiUsageMetricsService {
|
|
|
40
42
|
* Filter data by chain ID.
|
|
41
43
|
*/
|
|
42
44
|
chainId?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Filter data by request path.
|
|
45
|
-
*/
|
|
46
|
-
requestPath?: string;
|
|
47
45
|
/**
|
|
48
46
|
* Filter data by response status code.
|
|
49
47
|
*/
|
|
@@ -56,6 +54,10 @@ declare class DataApiUsageMetricsService {
|
|
|
56
54
|
* Filter data by API key ID.
|
|
57
55
|
*/
|
|
58
56
|
apiKeyId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Filter data by request path.
|
|
59
|
+
*/
|
|
60
|
+
requestPath?: string;
|
|
59
61
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
60
62
|
/**
|
|
61
63
|
* Get logs for requests made by client
|
|
@@ -63,7 +65,7 @@ declare class DataApiUsageMetricsService {
|
|
|
63
65
|
* @returns LogsResponseDTO Successful response
|
|
64
66
|
* @throws ApiError
|
|
65
67
|
*/
|
|
66
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
68
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
67
69
|
/**
|
|
68
70
|
* Organization ID to fetch usage metrics for
|
|
69
71
|
*/
|
|
@@ -73,17 +75,13 @@ declare class DataApiUsageMetricsService {
|
|
|
73
75
|
*/
|
|
74
76
|
startTimestamp?: number;
|
|
75
77
|
/**
|
|
76
|
-
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
78
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
77
79
|
*/
|
|
78
80
|
endTimestamp?: number;
|
|
79
81
|
/**
|
|
80
82
|
* Filter data by chain ID.
|
|
81
83
|
*/
|
|
82
84
|
chainId?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Filter data by request path.
|
|
85
|
-
*/
|
|
86
|
-
requestPath?: string;
|
|
87
85
|
/**
|
|
88
86
|
* Filter data by response status code.
|
|
89
87
|
*/
|
|
@@ -96,6 +94,10 @@ declare class DataApiUsageMetricsService {
|
|
|
96
94
|
* Filter data by API key ID.
|
|
97
95
|
*/
|
|
98
96
|
apiKeyId?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Filter data by request path.
|
|
99
|
+
*/
|
|
100
|
+
requestPath?: string;
|
|
99
101
|
/**
|
|
100
102
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
101
103
|
*/
|
|
@@ -107,35 +109,32 @@ declare class DataApiUsageMetricsService {
|
|
|
107
109
|
}): CancelablePromise<LogsResponseDTO>;
|
|
108
110
|
/**
|
|
109
111
|
* Get usage metrics for the Subnet RPC
|
|
110
|
-
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
112
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
111
113
|
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
112
114
|
* @throws ApiError
|
|
113
115
|
*/
|
|
114
|
-
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId,
|
|
116
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
115
117
|
/**
|
|
116
|
-
*
|
|
118
|
+
* Time interval granularity for data aggregation for subnet
|
|
119
|
+
* rpc metrics
|
|
117
120
|
*/
|
|
118
|
-
timeInterval?:
|
|
121
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
119
122
|
/**
|
|
120
123
|
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
121
124
|
*/
|
|
122
125
|
startTimestamp?: number;
|
|
123
126
|
/**
|
|
124
|
-
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
127
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
125
128
|
*/
|
|
126
129
|
endTimestamp?: number;
|
|
127
130
|
/**
|
|
128
131
|
* Query param for the criterion used for grouping metrics
|
|
129
132
|
*/
|
|
130
|
-
groupBy?:
|
|
133
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
131
134
|
/**
|
|
132
135
|
* Filter data by chain ID.
|
|
133
136
|
*/
|
|
134
137
|
chainId?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Filter data by request path.
|
|
137
|
-
*/
|
|
138
|
-
requestPath?: string;
|
|
139
138
|
/**
|
|
140
139
|
* Filter data by response status code.
|
|
141
140
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,responseCode:i,requestType:o,apiKeyId:h,requestPath:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,responseCode:i,requestType:o,apiKeyId:h,requestPath:d},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getApiLogs({orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,responseCode:n,requestType:a,apiKeyId:i,requestPath:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,responseCode:n,requestType:a,apiKeyId:i,requestPath:o,pageToken:h,pageSize:d},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getRpcUsageMetrics({timeInterval:e,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,responseCode:a,rpcMethod:i,rlBypassApiToken:o}){return this.httpRequest.request({method:"GET",url:"/v1/rpcUsageMetrics",query:{timeInterval:e,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,responseCode:a,rpcMethod:i,rlBypassApiToken:o},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as DataApiUsageMetricsService};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiFeature } from '../models/ApiFeature.js';
|
|
2
2
|
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
3
|
+
import { ListAddressChainsResponse } from '../models/ListAddressChainsResponse.js';
|
|
3
4
|
import { ListChainsResponse } from '../models/ListChainsResponse.js';
|
|
4
5
|
import { Network } from '../models/Network.js';
|
|
5
6
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -38,8 +39,8 @@ declare class EvmChainsService {
|
|
|
38
39
|
}): CancelablePromise<GetChainResponse>;
|
|
39
40
|
/**
|
|
40
41
|
* Get chains for address
|
|
41
|
-
* Gets
|
|
42
|
-
* @returns
|
|
42
|
+
* Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
43
|
+
* @returns ListAddressChainsResponse Successful response
|
|
43
44
|
* @throws ApiError
|
|
44
45
|
*/
|
|
45
46
|
getAddressChains({ address, }: {
|
|
@@ -47,7 +48,7 @@ declare class EvmChainsService {
|
|
|
47
48
|
* A wallet address.
|
|
48
49
|
*/
|
|
49
50
|
address: string;
|
|
50
|
-
}): CancelablePromise<
|
|
51
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
export { EvmChainsService };
|
|
@@ -34,7 +34,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
34
34
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
35
35
|
* @throws ApiError
|
|
36
36
|
*/
|
|
37
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
37
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
38
38
|
/**
|
|
39
39
|
* A primary network blockchain id or alias.
|
|
40
40
|
*/
|
|
@@ -47,6 +47,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
47
47
|
* A primary network (P or X chain) nodeId.
|
|
48
48
|
*/
|
|
49
49
|
nodeId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Query param for retrieving items after a specific timestamp.
|
|
52
|
+
*/
|
|
53
|
+
startTimestamp?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Query param for retrieving items before a specific timestamp.
|
|
56
|
+
*/
|
|
57
|
+
endTimestamp?: number;
|
|
50
58
|
/**
|
|
51
59
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
52
60
|
*/
|
|
@@ -62,7 +70,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
62
70
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
63
71
|
* @throws ApiError
|
|
64
72
|
*/
|
|
65
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
73
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
66
74
|
/**
|
|
67
75
|
* A primary network blockchain id or alias.
|
|
68
76
|
*/
|
|
@@ -71,6 +79,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
71
79
|
* Either mainnet or testnet/fuji.
|
|
72
80
|
*/
|
|
73
81
|
network: Network;
|
|
82
|
+
/**
|
|
83
|
+
* Query param for retrieving items after a specific timestamp.
|
|
84
|
+
*/
|
|
85
|
+
startTimestamp?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Query param for retrieving items before a specific timestamp.
|
|
88
|
+
*/
|
|
89
|
+
endTimestamp?: number;
|
|
74
90
|
/**
|
|
75
91
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
76
92
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:r,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:r,blockId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:r,nodeId:t,
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:r,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:r,blockId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:r,nodeId:t,startTimestamp:n,endTimestamp:s,pageToken:a,pageSize:i=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:r,nodeId:t},query:{startTimestamp:n,endTimestamp:s,pageToken:a,pageSize:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:r,startTimestamp:t,endTimestamp:n,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:r},query:{startTimestamp:t,endTimestamp:n,pageToken:s,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkBlocksService};
|