@avalabs/glacier-sdk
Advanced tools
Comparing version 3.1.0-canary.401b32b.0 to 3.1.0-canary.4191f64.0
@@ -12,3 +12,3 @@ import { AddressActivityMetadata } from './AddressActivityMetadata.js'; | ||
/** | ||
* Whether to include traces in the webhook payload. | ||
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114. | ||
*/ | ||
@@ -15,0 +15,0 @@ includeInternalTxs?: boolean; |
@@ -41,2 +41,6 @@ import { Money } from './Money.js'; | ||
balanceValue?: Money; | ||
/** | ||
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown. | ||
*/ | ||
tokenReputation: Erc20TokenBalance.tokenReputation | null; | ||
}; | ||
@@ -47,4 +51,11 @@ declare namespace Erc20TokenBalance { | ||
} | ||
/** | ||
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown. | ||
*/ | ||
enum tokenReputation { | ||
MALICIOUS = "Malicious", | ||
BENIGN = "Benign" | ||
} | ||
} | ||
export { Erc20TokenBalance }; |
@@ -1,1 +0,1 @@ | ||
var e,r;((r=e||(e={})).ercType||(r.ercType={})).ERC_20="ERC-20";export{e as Erc20TokenBalance}; | ||
var e,t,n;((t=e||(e={})).ercType||(t.ercType={})).ERC_20="ERC-20",(n=t.tokenReputation||(t.tokenReputation={})).MALICIOUS="Malicious",n.BENIGN="Benign";export{e as Erc20TokenBalance}; |
type EvmBlock = { | ||
/** | ||
* The EVM chain ID on which the block was created. | ||
*/ | ||
chainId: string; | ||
/** | ||
* The block number on the chain. | ||
@@ -4,0 +8,0 @@ */ |
@@ -18,2 +18,6 @@ import { Method } from './Method.js'; | ||
/** | ||
* The EVM chain ID on which the transaction occured. | ||
*/ | ||
chainId: string; | ||
/** | ||
* The index at which the transaction occured in the block (0-indexed). | ||
@@ -20,0 +24,0 @@ */ |
type GetEvmBlockResponse = { | ||
/** | ||
* The EVM chain ID on which the block was created. | ||
*/ | ||
chainId: string; | ||
/** | ||
* The block number on the chain. | ||
@@ -4,0 +8,0 @@ */ |
@@ -12,4 +12,4 @@ import { ProposerDetails } from './ProposerDetails.js'; | ||
blockSizeBytes: number; | ||
subnetOnlyValidatorsAccruedFees?: number; | ||
activeSubnetOnlyValidators?: number; | ||
l1ValidatorsAccruedFees?: number; | ||
activeL1Validators?: number; | ||
currentSupply?: string; | ||
@@ -16,0 +16,0 @@ proposerDetails?: ProposerDetails; |
@@ -18,2 +18,6 @@ import { Method } from './Method.js'; | ||
/** | ||
* The EVM chain ID on which the transaction occured. | ||
*/ | ||
chainId: string; | ||
/** | ||
* The index at which the transaction occured in the block (0-indexed). | ||
@@ -20,0 +24,0 @@ */ |
import { AssetAmount } from './AssetAmount.js'; | ||
import { BlsCredentials } from './BlsCredentials.js'; | ||
import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js'; | ||
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js'; | ||
import { PChainTransactionType } from './PChainTransactionType.js'; | ||
import { PChainUtxo } from './PChainUtxo.js'; | ||
import { SoVDetailsTransaction } from './SoVDetailsTransaction.js'; | ||
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js'; | ||
@@ -46,3 +46,3 @@ | ||
*/ | ||
amountSovBalanceBurned: Array<AssetAmount>; | ||
amountL1ValidatorBalanceBurned: Array<AssetAmount>; | ||
/** | ||
@@ -69,9 +69,9 @@ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx | ||
/** | ||
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetTx which transforms a subnet into L1 | ||
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1 | ||
*/ | ||
l1ValidatorManagerDetails?: L1ValidatorManagerDetails; | ||
/** | ||
* Details of Subnet-only-Validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time | ||
* 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 | ||
*/ | ||
l1ValidatorDetails?: Array<SoVDetailsTransaction>; | ||
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>; | ||
/** | ||
@@ -78,0 +78,0 @@ * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx |
@@ -17,7 +17,7 @@ declare enum PChainTransactionType { | ||
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx", | ||
CONVERT_SUBNET_TX = "ConvertSubnetTx", | ||
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx", | ||
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx", | ||
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx", | ||
INCREASE_BALANCE_TX = "IncreaseBalanceTx", | ||
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx", | ||
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx", | ||
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx", | ||
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx", | ||
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx", | ||
UNKNOWN = "UNKNOWN" | ||
@@ -24,0 +24,0 @@ } |
@@ -1,1 +0,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))(T||{});export{T as PChainTransactionType}; | ||
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}; |
@@ -12,4 +12,4 @@ import { ProposerDetails } from './ProposerDetails.js'; | ||
blockSizeBytes: number; | ||
subnetOnlyValidatorsAccruedFees?: number; | ||
activeSubnetOnlyValidators?: number; | ||
l1ValidatorsAccruedFees?: number; | ||
activeL1Validators?: number; | ||
currentSupply?: string; | ||
@@ -16,0 +16,0 @@ proposerDetails?: ProposerDetails; |
@@ -17,7 +17,7 @@ declare enum PrimaryNetworkTxType { | ||
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx", | ||
CONVERT_SUBNET_TX = "ConvertSubnetTx", | ||
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx", | ||
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx", | ||
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx", | ||
INCREASE_BALANCE_TX = "IncreaseBalanceTx", | ||
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx", | ||
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx", | ||
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx", | ||
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx", | ||
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx", | ||
UNKNOWN = "UNKNOWN", | ||
@@ -24,0 +24,0 @@ CREATE_ASSET_TX = "CreateAssetTx", |
@@ -1,1 +0,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}; | ||
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}; |
@@ -27,2 +27,6 @@ type RpcUsageMetricsValueAggregated = { | ||
/** | ||
* The number of API credits wasted on invalid requests | ||
*/ | ||
apiCreditsWasted: number; | ||
/** | ||
* Column name used for data aggregation | ||
@@ -29,0 +33,0 @@ */ |
type SignatureAggregatorRequest = { | ||
/** | ||
* Must be defined if justification is not defined | ||
*/ | ||
message?: string; | ||
/** | ||
* Must be defined if message is not defined | ||
*/ | ||
message: string; | ||
justification?: string; | ||
@@ -10,0 +4,0 @@ signingSubnetId?: string; |
@@ -8,2 +8,5 @@ import { WebhookStatusType } from './WebhookStatusType.js'; | ||
status?: WebhookStatusType; | ||
/** | ||
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114. | ||
*/ | ||
includeInternalTxs?: boolean; | ||
@@ -10,0 +13,0 @@ includeLogs?: boolean; |
import { LogsResponseDTO } from '../models/LogsResponseDTO.js'; | ||
import { RpcUsageMetricsGroupByEnum } from '../models/RpcUsageMetricsGroupByEnum.js'; | ||
import { RpcUsageMetricsResponseDTO } from '../models/RpcUsageMetricsResponseDTO.js'; | ||
import { SubnetRpcTimeIntervalGranularity } from '../models/SubnetRpcTimeIntervalGranularity.js'; | ||
import { TimeIntervalGranularityExtended } from '../models/TimeIntervalGranularityExtended.js'; | ||
@@ -18,3 +20,3 @@ import { UsageMetricsGroupByEnum } from '../models/UsageMetricsGroupByEnum.js'; | ||
*/ | ||
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: { | ||
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: { | ||
/** | ||
@@ -45,6 +47,2 @@ * Organization ID to fetch usage metrics for | ||
/** | ||
* Filter data by request path. | ||
*/ | ||
requestPath?: string; | ||
/** | ||
* Filter data by response status code. | ||
@@ -61,2 +59,6 @@ */ | ||
apiKeyId?: string; | ||
/** | ||
* Filter data by request path. | ||
*/ | ||
requestPath?: string; | ||
}): CancelablePromise<UsageMetricsResponseDTO>; | ||
@@ -69,3 +71,3 @@ /** | ||
*/ | ||
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: { | ||
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: { | ||
/** | ||
@@ -88,6 +90,2 @@ * Organization ID to fetch usage metrics for | ||
/** | ||
* Filter data by request path. | ||
*/ | ||
requestPath?: string; | ||
/** | ||
* Filter data by response status code. | ||
@@ -105,2 +103,6 @@ */ | ||
/** | ||
* Filter data by request path. | ||
*/ | ||
requestPath?: string; | ||
/** | ||
* A page token, received from a previous list call. Provide this to retrieve the subsequent page. | ||
@@ -116,11 +118,12 @@ */ | ||
* Get usage metrics for the Subnet RPC | ||
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. | ||
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. | ||
* @returns RpcUsageMetricsResponseDTO Successful response | ||
* @throws ApiError | ||
*/ | ||
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: { | ||
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: { | ||
/** | ||
* Query param for setting time interval of data aggregation. | ||
* Time interval granularity for data aggregation for subnet | ||
* rpc metrics | ||
*/ | ||
timeInterval?: string; | ||
timeInterval?: SubnetRpcTimeIntervalGranularity; | ||
/** | ||
@@ -137,3 +140,3 @@ * 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. | ||
*/ | ||
groupBy?: UsageMetricsGroupByEnum; | ||
groupBy?: RpcUsageMetricsGroupByEnum; | ||
/** | ||
@@ -144,6 +147,2 @@ * Filter data by chain ID. | ||
/** | ||
* Filter data by request path. | ||
*/ | ||
requestPath?: string; | ||
/** | ||
* Filter data by response status code. | ||
@@ -150,0 +149,0 @@ */ |
@@ -1,1 +0,1 @@ | ||
class e{constructor(e){this.httpRequest=e}getApiUsageMetrics({orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,requestPath:i,responseCode:o,requestType:h,apiKeyId:d}){return this.httpRequest.request({method:"GET",url:"/v1/apiUsageMetrics",query:{orgId:e,startTimestamp:r,endTimestamp:t,timeInterval:s,groupBy:n,chainId:a,requestPath:i,responseCode:o,requestType:h,apiKeyId: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,requestPath:n,responseCode:a,requestType:i,apiKeyId:o,pageToken:h,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/apiLogs",query:{orgId:e,startTimestamp:r,endTimestamp:t,chainId:s,requestPath:n,responseCode:a,requestType:i,apiKeyId: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="day",startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,requestPath:a,responseCode:i,rpcMethod:o,rlBypassApiToken:h}){return this.httpRequest.request({method:"GET",url:"/v1/rpcUsageMetrics",query:{timeInterval:e,startTimestamp:r,endTimestamp:t,groupBy:s,chainId:n,requestPath:a,responseCode:i,rpcMethod:o,rlBypassApiToken:h},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}; | ||
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}; |
@@ -5,3 +5,6 @@ import { ApiFeature } from '../models/ApiFeature.js'; | ||
import { ListChainsResponse } from '../models/ListChainsResponse.js'; | ||
import { ListEvmBlocksResponse } from '../models/ListEvmBlocksResponse.js'; | ||
import { ListNativeTransactionsResponse } from '../models/ListNativeTransactionsResponse.js'; | ||
import { Network } from '../models/Network.js'; | ||
import { TransactionStatus } from '../models/TransactionStatus.js'; | ||
import { CancelablePromise } from '../core/CancelablePromise.js'; | ||
@@ -43,3 +46,3 @@ import { BaseHttpRequest } from '../core/BaseHttpRequest.js'; | ||
* Get chains for address | ||
* Gets the list of chains an address has interacted with. | ||
* 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. | ||
* @returns ListAddressChainsResponse Successful response | ||
@@ -54,4 +57,48 @@ * @throws ApiError | ||
}): CancelablePromise<ListAddressChainsResponse>; | ||
/** | ||
* List latest transactions for all supported EVM chains | ||
* Lists the latest transactions for all supported EVM chains. Filterable by status. | ||
* @returns ListNativeTransactionsResponse Successful response | ||
* @throws ApiError | ||
*/ | ||
listAllLatestTransactions({ pageToken, pageSize, network, status, }: { | ||
/** | ||
* A page token, received from a previous list call. Provide this to retrieve the subsequent page. | ||
*/ | ||
pageToken?: string; | ||
/** | ||
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | ||
*/ | ||
pageSize?: number; | ||
/** | ||
* Either mainnet or testnet/fuji. | ||
*/ | ||
network?: Network; | ||
/** | ||
* A status filter for listed transactions. | ||
*/ | ||
status?: TransactionStatus; | ||
}): CancelablePromise<ListNativeTransactionsResponse>; | ||
/** | ||
* List latest blocks for all supported EVM chains | ||
* Lists the latest blocks for all supported EVM chains. Filterable by network. | ||
* @returns ListEvmBlocksResponse Successful response | ||
* @throws ApiError | ||
*/ | ||
listAllLatestBlocks({ pageToken, pageSize, network, }: { | ||
/** | ||
* A page token, received from a previous list call. Provide this to retrieve the subsequent page. | ||
*/ | ||
pageToken?: string; | ||
/** | ||
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | ||
*/ | ||
pageSize?: number; | ||
/** | ||
* Either mainnet or testnet/fuji. | ||
*/ | ||
network?: Network; | ||
}): CancelablePromise<ListEvmBlocksResponse>; | ||
} | ||
export { EvmChainsService }; |
@@ -1,1 +0,1 @@ | ||
class e{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:r},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."}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:e},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."}})}getAddressChains({address:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/address/{address}",path:{address:e},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 EvmChainsService}; | ||
class e{constructor(e){this.httpRequest=e}supportedChains({network:e,feature:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:e,feature:r},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."}})}getChainInfo({chainId:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:e},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."}})}getAddressChains({address:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains/address/{address}",path:{address:e},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."}})}listAllLatestTransactions({pageToken:e,pageSize:r=10,network:t,status:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/allTransactions",query:{pageToken:e,pageSize:r,network:t,status:n},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."}})}listAllLatestBlocks({pageToken:e,pageSize:r=10,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/allBlocks",query:{pageToken:e,pageSize:r,network: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."}})}}export{e as EvmChainsService}; |
@@ -317,3 +317,3 @@ import { CurrencyCode } from '../models/CurrencyCode.js'; | ||
*/ | ||
getTransactionsForBlock({ chainId, blockId, }: { | ||
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: { | ||
/** | ||
@@ -327,2 +327,10 @@ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | ||
blockId: string; | ||
/** | ||
* A page token, received from a previous list call. Provide this to retrieve the subsequent page. | ||
*/ | ||
pageToken?: string; | ||
/** | ||
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100. | ||
*/ | ||
pageSize?: number; | ||
}): CancelablePromise<ListNativeTransactionsResponse>; | ||
@@ -329,0 +337,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
class e{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:r,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:r},query:{currency: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."}})}listContractDeployments({chainId:e,address:r,pageToken:t,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s},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."}})}listTransfers({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listTransactions({chainId:e,address:r,pageToken:t,pageSize:s=10,startBlock:n,endBlock:a,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s,startBlock:n,endBlock:a,sortOrder: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."}})}listNativeTransactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listErc20Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listErc721Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listErc1155Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listInternalTransactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}getTransaction({chainId:e,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:r},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."}})}getTransactionsForBlock({chainId:e,blockId:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:r},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."}})}listLatestTransactions({chainId:e,pageToken:r,pageSize:t=10,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:r,pageSize:t,status:s},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 EvmTransactionsService}; | ||
class e{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:r,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:r},query:{currency: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."}})}listContractDeployments({chainId:e,address:r,pageToken:t,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s},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."}})}listTransfers({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listTransactions({chainId:e,address:r,pageToken:t,pageSize:s=10,startBlock:n,endBlock:a,sortOrder:i}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:r},query:{pageToken:t,pageSize:s,startBlock:n,endBlock:a,sortOrder: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."}})}listNativeTransactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listErc20Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listErc721Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listErc1155Transactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}listInternalTransactions({chainId:e,address:r,startBlock:t,endBlock:s,pageToken:n,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:r},query:{startBlock:t,endBlock:s,pageToken:n,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."}})}getTransaction({chainId:e,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:r},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."}})}getTransactionsForBlock({chainId:e,blockId:r,pageToken:t,pageSize:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:r},query:{pageToken:t,pageSize:s},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."}})}listLatestTransactions({chainId:e,pageToken:r,pageSize:t=10,status:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:r,pageSize:t,status:s},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 EvmTransactionsService}; |
@@ -37,3 +37,3 @@ import { BlockchainId } from '../models/BlockchainId.js'; | ||
*/ | ||
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: { | ||
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: { | ||
/** | ||
@@ -52,2 +52,10 @@ * A primary network blockchain id or alias. | ||
/** | ||
* Query param for retrieving items after a specific timestamp. | ||
*/ | ||
startTimestamp?: number; | ||
/** | ||
* Query param for retrieving items before a specific timestamp. | ||
*/ | ||
endTimestamp?: number; | ||
/** | ||
* A page token, received from a previous list call. Provide this to retrieve the subsequent page. | ||
@@ -67,3 +75,3 @@ */ | ||
*/ | ||
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: { | ||
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: { | ||
/** | ||
@@ -78,2 +86,10 @@ * A primary network blockchain id or alias. | ||
/** | ||
* Query param for retrieving items after a specific timestamp. | ||
*/ | ||
startTimestamp?: number; | ||
/** | ||
* Query param for retrieving items before a specific timestamp. | ||
*/ | ||
endTimestamp?: number; | ||
/** | ||
* A page token, received from a previous list call. Provide this to retrieve the subsequent page. | ||
@@ -80,0 +96,0 @@ */ |
@@ -1,1 +0,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,pageToken:n,pageSize:s=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:r,nodeId:t},query:{pageToken:n,pageSize:s},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,pageToken:t,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:r},query:{pageToken:t,pageSize:n},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}; | ||
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}; |
@@ -6,3 +6,3 @@ import { ChainAddressChainIdMapListResponse } from '../models/ChainAddressChainIdMapListResponse.js'; | ||
import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResponse.js'; | ||
import { ListSubnetOnlyValidatorsResponse } from '../models/ListSubnetOnlyValidatorsResponse.js'; | ||
import { ListL1ValidatorsResponse } from '../models/ListL1ValidatorsResponse.js'; | ||
import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js'; | ||
@@ -278,8 +278,8 @@ import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js'; | ||
/** | ||
* List subnet-only validators | ||
* Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id. | ||
* @returns ListSubnetOnlyValidatorsResponse Successful response | ||
* List L1 validators | ||
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id. | ||
* @returns ListL1ValidatorsResponse Successful response | ||
* @throws ApiError | ||
*/ | ||
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: { | ||
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: { | ||
/** | ||
@@ -298,6 +298,6 @@ * Either mainnet or testnet/fuji. | ||
/** | ||
* The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned. | ||
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned. | ||
*/ | ||
sovValidationId?: any; | ||
includeInactiveSovs?: boolean; | ||
l1ValidationId?: any; | ||
includeInactiveL1Validators?: boolean; | ||
/** | ||
@@ -311,5 +311,5 @@ * A valid node ID in format 'NodeID-HASH'. | ||
subnetId?: any; | ||
}): CancelablePromise<ListSubnetOnlyValidatorsResponse>; | ||
}): CancelablePromise<ListL1ValidatorsResponse>; | ||
} | ||
export { PrimaryNetworkService }; |
@@ -1,1 +0,1 @@ | ||
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId: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."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses:e},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."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e},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."}})}listBlockchains({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},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."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},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."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},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."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},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."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder: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."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds: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."}})}listSubnetOnlyValidators({network:e,pageToken:r,pageSize:t=10,sovValidationId:n,includeInactiveSovs:s,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnetOnlyValidators",path:{network:e},query:{pageToken:r,pageSize:t,sovValidationId:n,includeInactiveSovs:s,nodeId:a,subnetId: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."}})}}export{e as PrimaryNetworkService}; | ||
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId: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."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses:e},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."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e},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."}})}listBlockchains({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},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."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},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."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},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."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:l,maxFeePercentage:c,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:l,maxFeePercentage:c,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},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."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder: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."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds: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."}})}listL1Validators({network:e,pageToken:r,pageSize:t=10,l1ValidationId:n,includeInactiveL1Validators:s,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/l1Validators",path:{network:e},query:{pageToken:r,pageSize:t,l1ValidationId:n,includeInactiveL1Validators:s,nodeId:a,subnetId: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."}})}}export{e as PrimaryNetworkService}; |
@@ -47,3 +47,3 @@ import { BlockchainId } from '../models/BlockchainId.js'; | ||
* | ||
* For P-Chain, you can fetch all the Subnet-only-Validator (SoV) related transactions like ConvertSubnetTx, IncreaseBalanceTx etc. using the unique SoV validation ID. These transactions are further filterable by txTypes and timestamps as well. | ||
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well. | ||
* | ||
@@ -54,3 +54,3 @@ * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold. | ||
*/ | ||
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, sovValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: { | ||
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: { | ||
/** | ||
@@ -68,3 +68,3 @@ * A primary network blockchain id or alias. | ||
addresses?: string; | ||
sovValidationId?: string; | ||
l1ValidationId?: string; | ||
/** | ||
@@ -71,0 +71,0 @@ * Query param for filtering items based on transaction types. |
@@ -1,1 +0,1 @@ | ||
class e{constructor(e){this.httpRequest=e}getTxByHash({blockchainId:e,network:t,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:e,network:t,txHash:r},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."}})}listLatestPrimaryNetworkTransactions({blockchainId:e,network:t,addresses:r,sovValidationId:s,txTypes:n,startTimestamp:a,endTimestamp:i,pageToken:o,pageSize:h=10,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:e,network:t},query:{addresses:r,sovValidationId:s,txTypes:n,startTimestamp:a,endTimestamp:i,pageToken:o,pageSize:h,sortOrder: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."}})}listActivePrimaryNetworkStakingTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o,sortOrder:h},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."}})}listAssetTransactions({blockchainId:e,network:t,assetId:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",path:{blockchainId:e,network:t,assetId:r},query:{txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize: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 PrimaryNetworkTransactionsService}; | ||
class e{constructor(e){this.httpRequest=e}getTxByHash({blockchainId:e,network:t,txHash:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",path:{blockchainId:e,network:t,txHash:r},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."}})}listLatestPrimaryNetworkTransactions({blockchainId:e,network:t,addresses:r,l1ValidationId:s,txTypes:n,startTimestamp:a,endTimestamp:i,pageToken:o,pageSize:h=10,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions",path:{blockchainId:e,network:t},query:{addresses:r,l1ValidationId:s,txTypes:n,startTimestamp:a,endTimestamp:i,pageToken:o,pageSize:h,sortOrder: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."}})}listActivePrimaryNetworkStakingTransactions({blockchainId:e,network:t,addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",path:{blockchainId:e,network:t},query:{addresses:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o,sortOrder:h},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."}})}listAssetTransactions({blockchainId:e,network:t,assetId:r,txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize:o=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",path:{blockchainId:e,network:t,assetId:r},query:{txTypes:s,startTimestamp:n,endTimestamp:a,pageToken:i,pageSize: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 PrimaryNetworkTransactionsService}; |
@@ -84,2 +84,4 @@ export { Glacier } from './generated/Glacier.js'; | ||
export { InternalTransactionOpCall } from './generated/models/InternalTransactionOpCall.js'; | ||
export { L1ValidatorDetailsFull } from './generated/models/L1ValidatorDetailsFull.js'; | ||
export { L1ValidatorDetailsTransaction } from './generated/models/L1ValidatorDetailsTransaction.js'; | ||
export { L1ValidatorManagerDetails } from './generated/models/L1ValidatorManagerDetails.js'; | ||
@@ -103,2 +105,3 @@ export { ListAddressChainsResponse } from './generated/models/ListAddressChainsResponse.js'; | ||
export { ListInternalTransactionsResponse } from './generated/models/ListInternalTransactionsResponse.js'; | ||
export { ListL1ValidatorsResponse } from './generated/models/ListL1ValidatorsResponse.js'; | ||
export { ListNativeTransactionsResponse } from './generated/models/ListNativeTransactionsResponse.js'; | ||
@@ -111,3 +114,2 @@ export { ListNftTokens } from './generated/models/ListNftTokens.js'; | ||
export { ListPrimaryNetworkBlocksResponse } from './generated/models/ListPrimaryNetworkBlocksResponse.js'; | ||
export { ListSubnetOnlyValidatorsResponse } from './generated/models/ListSubnetOnlyValidatorsResponse.js'; | ||
export { ListSubnetsResponse } from './generated/models/ListSubnetsResponse.js'; | ||
@@ -170,2 +172,3 @@ export { ListTeleporterMessagesResponse } from './generated/models/ListTeleporterMessagesResponse.js'; | ||
export { RpcMetrics } from './generated/models/RpcMetrics.js'; | ||
export { RpcUsageMetricsGroupByEnum } from './generated/models/RpcUsageMetricsGroupByEnum.js'; | ||
export { RpcUsageMetricsResponseDTO } from './generated/models/RpcUsageMetricsResponseDTO.js'; | ||
@@ -179,7 +182,6 @@ export { RpcUsageMetricsValueAggregated } from './generated/models/RpcUsageMetricsValueAggregated.js'; | ||
export { SortOrder } from './generated/models/SortOrder.js'; | ||
export { SovDetailsFull } from './generated/models/SovDetailsFull.js'; | ||
export { SoVDetailsTransaction } from './generated/models/SoVDetailsTransaction.js'; | ||
export { StakingDistribution } from './generated/models/StakingDistribution.js'; | ||
export { Subnet } from './generated/models/Subnet.js'; | ||
export { SubnetOwnershipInfo } from './generated/models/SubnetOwnershipInfo.js'; | ||
export { SubnetRpcTimeIntervalGranularity } from './generated/models/SubnetRpcTimeIntervalGranularity.js'; | ||
export { TeleporterDestinationTransaction } from './generated/models/TeleporterDestinationTransaction.js'; | ||
@@ -186,0 +188,0 @@ export { TeleporterMessageInfo } from './generated/models/TeleporterMessageInfo.js'; |
@@ -1,1 +0,1 @@ | ||
export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{ApiFeature}from"./generated/models/ApiFeature.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EventType}from"./generated/models/EventType.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{InternalTransactionOpCall}from"./generated/models/InternalTransactionOpCall.js";export{Network}from"./generated/models/Network.js";export{NftTokenMetadataStatus}from"./generated/models/NftTokenMetadataStatus.js";export{OperationStatus}from"./generated/models/OperationStatus.js";export{OperationStatusCode}from"./generated/models/OperationStatusCode.js";export{OperationType}from"./generated/models/OperationType.js";export{PChainId}from"./generated/models/PChainId.js";export{PChainTransactionType}from"./generated/models/PChainTransactionType.js";export{PendingDelegatorDetails}from"./generated/models/PendingDelegatorDetails.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PrimaryNetworkAssetCap}from"./generated/models/PrimaryNetworkAssetCap.js";export{PrimaryNetworkAssetType}from"./generated/models/PrimaryNetworkAssetType.js";export{PrimaryNetworkChainName}from"./generated/models/PrimaryNetworkChainName.js";export{PrimaryNetworkOperationType}from"./generated/models/PrimaryNetworkOperationType.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{RemovedValidatorDetails}from"./generated/models/RemovedValidatorDetails.js";export{RequestType}from"./generated/models/RequestType.js";export{ResourceLinkType}from"./generated/models/ResourceLinkType.js";export{RewardType}from"./generated/models/RewardType.js";export{RpcUsageMetricsValueAggregated}from"./generated/models/RpcUsageMetricsValueAggregated.js";export{SortByOption}from"./generated/models/SortByOption.js";export{SortOrder}from"./generated/models/SortOrder.js";export{TeleporterRewardDetails}from"./generated/models/TeleporterRewardDetails.js";export{TimeIntervalGranularityExtended}from"./generated/models/TimeIntervalGranularityExtended.js";export{TransactionDirectionType}from"./generated/models/TransactionDirectionType.js";export{TransactionMethodType}from"./generated/models/TransactionMethodType.js";export{TransactionStatus}from"./generated/models/TransactionStatus.js";export{UnknownContract}from"./generated/models/UnknownContract.js";export{UsageMetricsGroupByEnum}from"./generated/models/UsageMetricsGroupByEnum.js";export{UsageMetricsValueDTO}from"./generated/models/UsageMetricsValueDTO.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{VmName}from"./generated/models/VmName.js";export{WebhookStatus}from"./generated/models/WebhookStatus.js";export{WebhookStatusType}from"./generated/models/WebhookStatusType.js";export{XChainId}from"./generated/models/XChainId.js";export{XChainLinearTransaction}from"./generated/models/XChainLinearTransaction.js";export{XChainNonLinearTransaction}from"./generated/models/XChainNonLinearTransaction.js";export{XChainTransactionType}from"./generated/models/XChainTransactionType.js";export{DataApiUsageMetricsService}from"./generated/services/DataApiUsageMetricsService.js";export{DefaultService}from"./generated/services/DefaultService.js";export{EvmBalancesService}from"./generated/services/EvmBalancesService.js";export{EvmBlocksService}from"./generated/services/EvmBlocksService.js";export{EvmChainsService}from"./generated/services/EvmChainsService.js";export{EvmContractsService}from"./generated/services/EvmContractsService.js";export{EvmTransactionsService}from"./generated/services/EvmTransactionsService.js";export{HealthCheckService}from"./generated/services/HealthCheckService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{OperationsService}from"./generated/services/OperationsService.js";export{PrimaryNetworkService}from"./generated/services/PrimaryNetworkService.js";export{PrimaryNetworkBalancesService}from"./generated/services/PrimaryNetworkBalancesService.js";export{PrimaryNetworkBlocksService}from"./generated/services/PrimaryNetworkBlocksService.js";export{PrimaryNetworkRewardsService}from"./generated/services/PrimaryNetworkRewardsService.js";export{PrimaryNetworkTransactionsService}from"./generated/services/PrimaryNetworkTransactionsService.js";export{PrimaryNetworkUtxOsService}from"./generated/services/PrimaryNetworkUtxOsService.js";export{PrimaryNetworkVerticesService}from"./generated/services/PrimaryNetworkVerticesService.js";export{SignatureAggregatorService}from"./generated/services/SignatureAggregatorService.js";export{TeleporterService}from"./generated/services/TeleporterService.js";export{WebhooksService}from"./generated/services/WebhooksService.js"; | ||
export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{ApiFeature}from"./generated/models/ApiFeature.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EventType}from"./generated/models/EventType.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{InternalTransactionOpCall}from"./generated/models/InternalTransactionOpCall.js";export{Network}from"./generated/models/Network.js";export{NftTokenMetadataStatus}from"./generated/models/NftTokenMetadataStatus.js";export{OperationStatus}from"./generated/models/OperationStatus.js";export{OperationStatusCode}from"./generated/models/OperationStatusCode.js";export{OperationType}from"./generated/models/OperationType.js";export{PChainId}from"./generated/models/PChainId.js";export{PChainTransactionType}from"./generated/models/PChainTransactionType.js";export{PendingDelegatorDetails}from"./generated/models/PendingDelegatorDetails.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PrimaryNetworkAssetCap}from"./generated/models/PrimaryNetworkAssetCap.js";export{PrimaryNetworkAssetType}from"./generated/models/PrimaryNetworkAssetType.js";export{PrimaryNetworkChainName}from"./generated/models/PrimaryNetworkChainName.js";export{PrimaryNetworkOperationType}from"./generated/models/PrimaryNetworkOperationType.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{RemovedValidatorDetails}from"./generated/models/RemovedValidatorDetails.js";export{RequestType}from"./generated/models/RequestType.js";export{ResourceLinkType}from"./generated/models/ResourceLinkType.js";export{RewardType}from"./generated/models/RewardType.js";export{RpcUsageMetricsGroupByEnum}from"./generated/models/RpcUsageMetricsGroupByEnum.js";export{RpcUsageMetricsValueAggregated}from"./generated/models/RpcUsageMetricsValueAggregated.js";export{SortByOption}from"./generated/models/SortByOption.js";export{SortOrder}from"./generated/models/SortOrder.js";export{SubnetRpcTimeIntervalGranularity}from"./generated/models/SubnetRpcTimeIntervalGranularity.js";export{TeleporterRewardDetails}from"./generated/models/TeleporterRewardDetails.js";export{TimeIntervalGranularityExtended}from"./generated/models/TimeIntervalGranularityExtended.js";export{TransactionDirectionType}from"./generated/models/TransactionDirectionType.js";export{TransactionMethodType}from"./generated/models/TransactionMethodType.js";export{TransactionStatus}from"./generated/models/TransactionStatus.js";export{UnknownContract}from"./generated/models/UnknownContract.js";export{UsageMetricsGroupByEnum}from"./generated/models/UsageMetricsGroupByEnum.js";export{UsageMetricsValueDTO}from"./generated/models/UsageMetricsValueDTO.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{VmName}from"./generated/models/VmName.js";export{WebhookStatus}from"./generated/models/WebhookStatus.js";export{WebhookStatusType}from"./generated/models/WebhookStatusType.js";export{XChainId}from"./generated/models/XChainId.js";export{XChainLinearTransaction}from"./generated/models/XChainLinearTransaction.js";export{XChainNonLinearTransaction}from"./generated/models/XChainNonLinearTransaction.js";export{XChainTransactionType}from"./generated/models/XChainTransactionType.js";export{DataApiUsageMetricsService}from"./generated/services/DataApiUsageMetricsService.js";export{DefaultService}from"./generated/services/DefaultService.js";export{EvmBalancesService}from"./generated/services/EvmBalancesService.js";export{EvmBlocksService}from"./generated/services/EvmBlocksService.js";export{EvmChainsService}from"./generated/services/EvmChainsService.js";export{EvmContractsService}from"./generated/services/EvmContractsService.js";export{EvmTransactionsService}from"./generated/services/EvmTransactionsService.js";export{HealthCheckService}from"./generated/services/HealthCheckService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{OperationsService}from"./generated/services/OperationsService.js";export{PrimaryNetworkService}from"./generated/services/PrimaryNetworkService.js";export{PrimaryNetworkBalancesService}from"./generated/services/PrimaryNetworkBalancesService.js";export{PrimaryNetworkBlocksService}from"./generated/services/PrimaryNetworkBlocksService.js";export{PrimaryNetworkRewardsService}from"./generated/services/PrimaryNetworkRewardsService.js";export{PrimaryNetworkTransactionsService}from"./generated/services/PrimaryNetworkTransactionsService.js";export{PrimaryNetworkUtxOsService}from"./generated/services/PrimaryNetworkUtxOsService.js";export{PrimaryNetworkVerticesService}from"./generated/services/PrimaryNetworkVerticesService.js";export{SignatureAggregatorService}from"./generated/services/SignatureAggregatorService.js";export{TeleporterService}from"./generated/services/TeleporterService.js";export{WebhooksService}from"./generated/services/WebhooksService.js"; |
{ | ||
"name": "@avalabs/glacier-sdk", | ||
"version": "3.1.0-canary.401b32b.0+401b32b", | ||
"version": "3.1.0-canary.4191f64.0+4191f64", | ||
"description": "sdk for interacting with glacier-api", | ||
@@ -32,3 +32,3 @@ "author": "Oliver Wang <oliver.wang@avalabs.org>", | ||
}, | ||
"gitHead": "401b32bc85d210c8c512500d55237ed9b517d41e" | ||
"gitHead": "4191f64654b561ebf17e505d54ad96ff64ee48be" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
713053
347
12517