@avalabs/glacier-sdk 3.1.0-canary.8185ffa.0 → 3.1.0-canary.8540495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +288 -100
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/AddressActivityEventType.js +1 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -4
- package/esm/generated/models/Blockchain.d.ts +8 -0
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +10 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +2 -4
- package/esm/generated/models/EVMAddressActivityResponse.d.ts +2 -2
- package/esm/generated/models/InternalTransaction.d.ts +16 -15
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +2 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +4 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/PChainTransaction.d.ts +5 -0
- package/esm/generated/models/PChainUtxo.d.ts +4 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
- package/esm/generated/models/{PlatformBalanceThresholdFilter.d.ts → PrimaryNetworkBalanceThresholdFilter.d.ts} +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +2 -2
- package/esm/generated/models/Transaction.d.ts +2 -2
- package/esm/generated/models/Utxo.d.ts +4 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -0
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainId.d.ts +0 -1
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +16 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +48 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +9 -7
- package/esm/index.d.ts +22 -8
- package/esm/index.js +1 -1
- package/package.json +5 -5
- package/esm/generated/models/EventType.d.ts +0 -7
- package/esm/generated/models/EventType.js +0 -1
- package/esm/generated/models/PlatformActivityKeyType.d.ts +0 -10
- package/esm/generated/models/PlatformActivityKeyType.js +0 -1
- package/esm/generated/models/PlatformActivityMetadata.d.ts +0 -37
- package/esm/generated/models/PlatformActivityRequest.d.ts +0 -31
- package/esm/generated/models/PlatformActivityRequest.js +0 -1
- package/esm/generated/models/PlatformActivityResponse.d.ts +0 -17
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +0 -11
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +0 -10
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ValidatorActivityEventType } from './ValidatorActivityEventType.js';
|
|
2
|
+
import { ValidatorActivityMetadata } from './ValidatorActivityMetadata.js';
|
|
3
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
|
+
|
|
5
|
+
type ValidatorActivityResponse = {
|
|
6
|
+
id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
chainId: string;
|
|
9
|
+
status: WebhookStatusType;
|
|
10
|
+
createdAt: number;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
eventType: ValidatorActivityEventType;
|
|
14
|
+
metadata: ValidatorActivityMetadata;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type { ValidatorActivityResponse };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ValidatorActivitySubEvents = {
|
|
2
|
+
/**
|
|
3
|
+
* Array of validator activity sub-event types
|
|
4
|
+
*/
|
|
5
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type { ValidatorActivitySubEvents };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type WebhookInternalTransaction = {
|
|
2
|
+
/**
|
|
3
|
+
* Sender address
|
|
4
|
+
*/
|
|
5
|
+
from: string;
|
|
6
|
+
/**
|
|
7
|
+
* Recipient address
|
|
8
|
+
*/
|
|
9
|
+
to: string;
|
|
10
|
+
/**
|
|
11
|
+
* Internal transaction type
|
|
12
|
+
*/
|
|
13
|
+
internalTxType: string;
|
|
14
|
+
/**
|
|
15
|
+
* Value transferred
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
/**
|
|
19
|
+
* Gas used
|
|
20
|
+
*/
|
|
21
|
+
gasUsed: string;
|
|
22
|
+
/**
|
|
23
|
+
* Gas limit
|
|
24
|
+
*/
|
|
25
|
+
gasLimit: string;
|
|
26
|
+
/**
|
|
27
|
+
* Transaction hash
|
|
28
|
+
*/
|
|
29
|
+
transactionHash: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type { WebhookInternalTransaction };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare enum XChainId {
|
|
2
2
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3
3
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
5
4
|
X_CHAIN = "x-chain"
|
|
6
5
|
}
|
|
7
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var N=(N=>(N._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",N._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",N.X_CHAIN="x-chain",N))(N||{});export{N as XChainId};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
3
|
+
|
|
4
|
+
declare class AvaxSupplyService {
|
|
5
|
+
readonly httpRequest: BaseHttpRequest;
|
|
6
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
7
|
+
/**
|
|
8
|
+
* Get AVAX supply information
|
|
9
|
+
* Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
|
|
10
|
+
* @returns void
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
getAvaxSupply(): CancelablePromise<void>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { AvaxSupplyService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getAvaxSupply(){return this.httpRequest.request({method:"GET",url:"/v1/avax/supply",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 AvaxSupplyService};
|
|
@@ -84,7 +84,7 @@ declare class PrimaryNetworkService {
|
|
|
84
84
|
*/
|
|
85
85
|
pageToken?: string;
|
|
86
86
|
/**
|
|
87
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
87
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
88
88
|
*/
|
|
89
89
|
pageSize?: number;
|
|
90
90
|
/**
|
|
@@ -124,7 +124,7 @@ declare class PrimaryNetworkService {
|
|
|
124
124
|
*/
|
|
125
125
|
pageToken?: string;
|
|
126
126
|
/**
|
|
127
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
127
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
128
128
|
*/
|
|
129
129
|
pageSize?: number;
|
|
130
130
|
/**
|
|
@@ -150,7 +150,7 @@ declare class PrimaryNetworkService {
|
|
|
150
150
|
}): CancelablePromise<Subnet>;
|
|
151
151
|
/**
|
|
152
152
|
* List validators
|
|
153
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
153
|
+
* Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
|
|
154
154
|
* @returns ListValidatorDetailsResponse Successful response
|
|
155
155
|
* @throws ApiError
|
|
156
156
|
*/
|
|
@@ -168,7 +168,7 @@ declare class PrimaryNetworkService {
|
|
|
168
168
|
*/
|
|
169
169
|
pageSize?: number;
|
|
170
170
|
/**
|
|
171
|
-
* A comma separated list of node ids to filter by.
|
|
171
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
172
172
|
*/
|
|
173
173
|
nodeIds?: string;
|
|
174
174
|
/**
|
|
@@ -1 +1 @@
|
|
|
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."}})}getBlockchainById({blockchainId:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}",path:{blockchainId:e,network: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."}})}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."}})}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};
|
|
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=100,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."}})}getBlockchainById({blockchainId:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}",path:{blockchainId:e,network: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."}})}listSubnets({network:e,pageToken:r,pageSize:t=100,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."}})}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};
|
|
@@ -2,7 +2,9 @@ import { BlockchainId } from '../models/BlockchainId.js';
|
|
|
2
2
|
import { ListPChainUtxosResponse } from '../models/ListPChainUtxosResponse.js';
|
|
3
3
|
import { ListUtxosResponse } from '../models/ListUtxosResponse.js';
|
|
4
4
|
import { Network } from '../models/Network.js';
|
|
5
|
+
import { PrimaryNetworkAddressesBodyDto } from '../models/PrimaryNetworkAddressesBodyDto.js';
|
|
5
6
|
import { SortOrder } from '../models/SortOrder.js';
|
|
7
|
+
import { UtxosSortByOption } from '../models/UtxosSortByOption.js';
|
|
6
8
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
9
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
8
10
|
|
|
@@ -15,7 +17,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
15
17
|
* @returns any Successful response
|
|
16
18
|
* @throws ApiError
|
|
17
19
|
*/
|
|
18
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
20
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
|
|
19
21
|
/**
|
|
20
22
|
* A primary network blockchain id or alias.
|
|
21
23
|
*/
|
|
@@ -44,6 +46,51 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
44
46
|
* Boolean filter to include spent UTXOs.
|
|
45
47
|
*/
|
|
46
48
|
includeSpent?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
51
|
+
*/
|
|
52
|
+
sortBy?: UtxosSortByOption;
|
|
53
|
+
/**
|
|
54
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
55
|
+
*/
|
|
56
|
+
sortOrder?: SortOrder;
|
|
57
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
58
|
+
/**
|
|
59
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
60
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
61
|
+
* @returns any Successful response
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
|
|
65
|
+
/**
|
|
66
|
+
* A primary network blockchain id or alias.
|
|
67
|
+
*/
|
|
68
|
+
blockchainId: BlockchainId;
|
|
69
|
+
/**
|
|
70
|
+
* Either mainnet or testnet/fuji.
|
|
71
|
+
*/
|
|
72
|
+
network: Network;
|
|
73
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
74
|
+
/**
|
|
75
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
76
|
+
*/
|
|
77
|
+
pageToken?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
80
|
+
*/
|
|
81
|
+
pageSize?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
84
|
+
*/
|
|
85
|
+
assetId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Boolean filter to include spent UTXOs.
|
|
88
|
+
*/
|
|
89
|
+
includeSpent?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
92
|
+
*/
|
|
93
|
+
sortBy?: UtxosSortByOption;
|
|
47
94
|
/**
|
|
48
95
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
49
96
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:s,pageSize:n=10,assetId:a,includeSpent:i,sortOrder:
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:s,pageSize:n=10,assetId:a,includeSpent:o,sortBy:i,sortOrder:h}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{addresses:t,pageToken:s,pageSize:n,assetId:a,includeSpent:o,sortBy:i,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."}})}getUtxosByAddressesV2({blockchainId:e,network:r,requestBody:t,pageToken:s,pageSize:n=10,assetId:a,includeSpent:o,sortBy:i,sortOrder:h}){return this.httpRequest.request({method:"POST",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{pageToken:s,pageSize:n,assetId:a,includeSpent:o,sortBy:i,sortOrder:h},body:t,mediaType:"application/json",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 PrimaryNetworkUtxOsService};
|
|
@@ -3,10 +3,12 @@ import { EVMAddressActivityRequest } from '../models/EVMAddressActivityRequest.j
|
|
|
3
3
|
import { EVMAddressActivityResponse } from '../models/EVMAddressActivityResponse.js';
|
|
4
4
|
import { ListWebhookAddressesResponse } from '../models/ListWebhookAddressesResponse.js';
|
|
5
5
|
import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { PrimaryNetworkAddressActivityRequest } from '../models/PrimaryNetworkAddressActivityRequest.js';
|
|
7
|
+
import { PrimaryNetworkAddressActivityResponse } from '../models/PrimaryNetworkAddressActivityResponse.js';
|
|
8
8
|
import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
|
|
9
9
|
import { UpdateWebhookRequest } from '../models/UpdateWebhookRequest.js';
|
|
10
|
+
import { ValidatorActivityRequest } from '../models/ValidatorActivityRequest.js';
|
|
11
|
+
import { ValidatorActivityResponse } from '../models/ValidatorActivityResponse.js';
|
|
10
12
|
import { WebhookStatus } from '../models/WebhookStatus.js';
|
|
11
13
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
12
14
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
@@ -21,8 +23,8 @@ declare class WebhooksService {
|
|
|
21
23
|
* @throws ApiError
|
|
22
24
|
*/
|
|
23
25
|
createWebhook({ requestBody, }: {
|
|
24
|
-
requestBody: (EVMAddressActivityRequest |
|
|
25
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
26
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
27
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
26
28
|
/**
|
|
27
29
|
* List webhooks
|
|
28
30
|
* Lists webhooks for the user.
|
|
@@ -54,7 +56,7 @@ declare class WebhooksService {
|
|
|
54
56
|
* The webhook identifier.
|
|
55
57
|
*/
|
|
56
58
|
id: string;
|
|
57
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
59
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
58
60
|
/**
|
|
59
61
|
* Deactivate a webhook
|
|
60
62
|
* Deactivates a webhook by ID.
|
|
@@ -66,7 +68,7 @@ declare class WebhooksService {
|
|
|
66
68
|
* The webhook identifier.
|
|
67
69
|
*/
|
|
68
70
|
id: string;
|
|
69
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
71
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
70
72
|
/**
|
|
71
73
|
* Update a webhook
|
|
72
74
|
* Updates an existing webhook.
|
|
@@ -79,7 +81,7 @@ declare class WebhooksService {
|
|
|
79
81
|
*/
|
|
80
82
|
id: string;
|
|
81
83
|
requestBody: UpdateWebhookRequest;
|
|
82
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
84
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
83
85
|
/**
|
|
84
86
|
* Generate or rotate a shared secret
|
|
85
87
|
* Generates a new shared secret or rotate an existing one.
|
package/esm/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { AccessListData } from './generated/models/AccessListData.js';
|
|
|
7
7
|
export { AccessRequest } from './generated/models/AccessRequest.js';
|
|
8
8
|
export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
|
|
9
9
|
export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
|
|
10
|
+
export { AddressActivityEventType } from './generated/models/AddressActivityEventType.js';
|
|
10
11
|
export { AddressActivityMetadata } from './generated/models/AddressActivityMetadata.js';
|
|
11
12
|
export { AddressesChangeRequest } from './generated/models/AddressesChangeRequest.js';
|
|
12
13
|
export { AggregatedAssetAmount } from './generated/models/AggregatedAssetAmount.js';
|
|
@@ -19,6 +20,7 @@ export { BalanceOwner } from './generated/models/BalanceOwner.js';
|
|
|
19
20
|
export { Blockchain } from './generated/models/Blockchain.js';
|
|
20
21
|
export { BlockchainId } from './generated/models/BlockchainId.js';
|
|
21
22
|
export { BlockchainIds } from './generated/models/BlockchainIds.js';
|
|
23
|
+
export { BlockchainInfo } from './generated/models/BlockchainInfo.js';
|
|
22
24
|
export { BlsCredentials } from './generated/models/BlsCredentials.js';
|
|
23
25
|
export { CChainAtomicBalances } from './generated/models/CChainAtomicBalances.js';
|
|
24
26
|
export { CChainExportTransaction } from './generated/models/CChainExportTransaction.js';
|
|
@@ -66,7 +68,6 @@ export { Erc721Transfer } from './generated/models/Erc721Transfer.js';
|
|
|
66
68
|
export { Erc721TransferDetails } from './generated/models/Erc721TransferDetails.js';
|
|
67
69
|
export { ERCToken } from './generated/models/ERCToken.js';
|
|
68
70
|
export { ERCTransfer } from './generated/models/ERCTransfer.js';
|
|
69
|
-
export { EventType } from './generated/models/EventType.js';
|
|
70
71
|
export { EVMAddressActivityRequest } from './generated/models/EVMAddressActivityRequest.js';
|
|
71
72
|
export { EVMAddressActivityResponse } from './generated/models/EVMAddressActivityResponse.js';
|
|
72
73
|
export { EvmBlock } from './generated/models/EvmBlock.js';
|
|
@@ -167,16 +168,18 @@ export { PendingIcmMessage } from './generated/models/PendingIcmMessage.js';
|
|
|
167
168
|
export { PendingReward } from './generated/models/PendingReward.js';
|
|
168
169
|
export { PendingTeleporterMessage } from './generated/models/PendingTeleporterMessage.js';
|
|
169
170
|
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
170
|
-
export {
|
|
171
|
-
export { PlatformActivityMetadata } from './generated/models/PlatformActivityMetadata.js';
|
|
172
|
-
export { PlatformActivityRequest } from './generated/models/PlatformActivityRequest.js';
|
|
173
|
-
export { PlatformActivityResponse } from './generated/models/PlatformActivityResponse.js';
|
|
174
|
-
export { PlatformActivitySubEvents } from './generated/models/PlatformActivitySubEvents.js';
|
|
175
|
-
export { PlatformAddressActivitySubEventType } from './generated/models/PlatformAddressActivitySubEventType.js';
|
|
176
|
-
export { PlatformBalanceThresholdFilter } from './generated/models/PlatformBalanceThresholdFilter.js';
|
|
171
|
+
export { PlatformAddressActivityKeyType } from './generated/models/PlatformAddressActivityKeyType.js';
|
|
177
172
|
export { PricingProviders } from './generated/models/PricingProviders.js';
|
|
173
|
+
export { PrimaryNetworkAddressActivityEventType } from './generated/models/PrimaryNetworkAddressActivityEventType.js';
|
|
174
|
+
export { PrimaryNetworkAddressActivityMetadata } from './generated/models/PrimaryNetworkAddressActivityMetadata.js';
|
|
175
|
+
export { PrimaryNetworkAddressActivityRequest } from './generated/models/PrimaryNetworkAddressActivityRequest.js';
|
|
176
|
+
export { PrimaryNetworkAddressActivityResponse } from './generated/models/PrimaryNetworkAddressActivityResponse.js';
|
|
177
|
+
export { PrimaryNetworkAddressActivitySubEvents } from './generated/models/PrimaryNetworkAddressActivitySubEvents.js';
|
|
178
|
+
export { PrimaryNetworkAddressActivitySubEventType } from './generated/models/PrimaryNetworkAddressActivitySubEventType.js';
|
|
179
|
+
export { PrimaryNetworkAddressesBodyDto } from './generated/models/PrimaryNetworkAddressesBodyDto.js';
|
|
178
180
|
export { PrimaryNetworkAssetCap } from './generated/models/PrimaryNetworkAssetCap.js';
|
|
179
181
|
export { PrimaryNetworkAssetType } from './generated/models/PrimaryNetworkAssetType.js';
|
|
182
|
+
export { PrimaryNetworkBalanceThresholdFilter } from './generated/models/PrimaryNetworkBalanceThresholdFilter.js';
|
|
180
183
|
export { PrimaryNetworkBlock } from './generated/models/PrimaryNetworkBlock.js';
|
|
181
184
|
export { PrimaryNetworkChainInfo } from './generated/models/PrimaryNetworkChainInfo.js';
|
|
182
185
|
export { PrimaryNetworkChainName } from './generated/models/PrimaryNetworkChainName.js';
|
|
@@ -238,12 +241,20 @@ export { UsageMetricsValueDTO } from './generated/models/UsageMetricsValueDTO.js
|
|
|
238
241
|
export { UtilityAddresses } from './generated/models/UtilityAddresses.js';
|
|
239
242
|
export { Utxo } from './generated/models/Utxo.js';
|
|
240
243
|
export { UtxoCredential } from './generated/models/UtxoCredential.js';
|
|
244
|
+
export { UtxosSortByOption } from './generated/models/UtxosSortByOption.js';
|
|
241
245
|
export { UtxoType } from './generated/models/UtxoType.js';
|
|
242
246
|
export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
|
|
247
|
+
export { ValidatorActivityEventType } from './generated/models/ValidatorActivityEventType.js';
|
|
248
|
+
export { ValidatorActivityKeyType } from './generated/models/ValidatorActivityKeyType.js';
|
|
249
|
+
export { ValidatorActivityMetadata } from './generated/models/ValidatorActivityMetadata.js';
|
|
250
|
+
export { ValidatorActivityRequest } from './generated/models/ValidatorActivityRequest.js';
|
|
251
|
+
export { ValidatorActivityResponse } from './generated/models/ValidatorActivityResponse.js';
|
|
252
|
+
export { ValidatorActivitySubEvents } from './generated/models/ValidatorActivitySubEvents.js';
|
|
243
253
|
export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetails.js';
|
|
244
254
|
export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
|
|
245
255
|
export { VmName } from './generated/models/VmName.js';
|
|
246
256
|
export { WebhookAddressActivityResponse } from './generated/models/WebhookAddressActivityResponse.js';
|
|
257
|
+
export { WebhookInternalTransaction } from './generated/models/WebhookInternalTransaction.js';
|
|
247
258
|
export { WebhookStatus } from './generated/models/WebhookStatus.js';
|
|
248
259
|
export { WebhookStatusType } from './generated/models/WebhookStatusType.js';
|
|
249
260
|
export { XChainAssetDetails } from './generated/models/XChainAssetDetails.js';
|
|
@@ -254,6 +265,7 @@ export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTr
|
|
|
254
265
|
export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
|
|
255
266
|
export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
|
|
256
267
|
export { XChainVertex } from './generated/models/XChainVertex.js';
|
|
268
|
+
export { AvaxSupplyService } from './generated/services/AvaxSupplyService.js';
|
|
257
269
|
export { DataApiUsageMetricsService } from './generated/services/DataApiUsageMetricsService.js';
|
|
258
270
|
export { DefaultService } from './generated/services/DefaultService.js';
|
|
259
271
|
export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
|
|
@@ -276,3 +288,5 @@ export { PrimaryNetworkVerticesService } from './generated/services/PrimaryNetwo
|
|
|
276
288
|
export { SignatureAggregatorService } from './generated/services/SignatureAggregatorService.js';
|
|
277
289
|
export { TeleporterService } from './generated/services/TeleporterService.js';
|
|
278
290
|
export { WebhooksService } from './generated/services/WebhooksService.js';
|
|
291
|
+
export { FetchHttpRequest } from './generated/core/FetchHttpRequest.js';
|
|
292
|
+
export { ApiRequestOptions } from './generated/core/ApiRequestOptions.js';
|
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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{CommonBalanceType}from"./generated/models/CommonBalanceType.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{DeliveredIcmMessage}from"./generated/models/DeliveredIcmMessage.js";export{DeliveredSourceNotIndexedIcmMessage}from"./generated/models/DeliveredSourceNotIndexedIcmMessage.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{
|
|
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{AddressActivityEventType}from"./generated/models/AddressActivityEventType.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{CommonBalanceType}from"./generated/models/CommonBalanceType.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{DeliveredIcmMessage}from"./generated/models/DeliveredIcmMessage.js";export{DeliveredSourceNotIndexedIcmMessage}from"./generated/models/DeliveredSourceNotIndexedIcmMessage.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{EVMAddressActivityRequest}from"./generated/models/EVMAddressActivityRequest.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{HealthCheckResultDto}from"./generated/models/HealthCheckResultDto.js";export{HealthIndicatorResultDto}from"./generated/models/HealthIndicatorResultDto.js";export{IcmRewardDetails}from"./generated/models/IcmRewardDetails.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{PendingIcmMessage}from"./generated/models/PendingIcmMessage.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PlatformAddressActivityKeyType}from"./generated/models/PlatformAddressActivityKeyType.js";export{PrimaryNetworkAddressActivityEventType}from"./generated/models/PrimaryNetworkAddressActivityEventType.js";export{PrimaryNetworkAddressActivityRequest}from"./generated/models/PrimaryNetworkAddressActivityRequest.js";export{PrimaryNetworkAddressActivitySubEventType}from"./generated/models/PrimaryNetworkAddressActivitySubEventType.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{PrimaryNetworkRpcMetricsGroupByEnum}from"./generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js";export{PrimaryNetworkRpcTimeIntervalGranularity}from"./generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js";export{PrimaryNetworkRpcUsageMetricsResponseDTO}from"./generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{PrimaryNetworkType}from"./generated/models/PrimaryNetworkType.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{UtxosSortByOption}from"./generated/models/UtxosSortByOption.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{ValidatorActivityEventType}from"./generated/models/ValidatorActivityEventType.js";export{ValidatorActivityKeyType}from"./generated/models/ValidatorActivityKeyType.js";export{ValidatorActivityRequest}from"./generated/models/ValidatorActivityRequest.js";export{VmName}from"./generated/models/VmName.js";export{WebhookAddressActivityResponse}from"./generated/models/WebhookAddressActivityResponse.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{AvaxSupplyService}from"./generated/services/AvaxSupplyService.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{InterchainMessagingService}from"./generated/services/InterchainMessagingService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{NotificationsService}from"./generated/services/NotificationsService.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{FetchHttpRequest}from"./generated/core/FetchHttpRequest.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "3.1.0-canary.
|
|
3
|
+
"version": "3.1.0-canary.8540495.0+8540495",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"
|
|
15
|
-
"require": "./dist/index.cjs",
|
|
14
|
+
"types": "./esm/index.d.ts",
|
|
16
15
|
"import": "./esm/index.js",
|
|
17
|
-
"
|
|
16
|
+
"require": "./dist/index.cjs",
|
|
17
|
+
"default": "./esm/index.js"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"bugs": {
|
|
39
39
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "8540495eb5ae9c8ea9b4e2cf2b6a525b7c7647d3"
|
|
42
42
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=(a=>(a.ADDRESS_ACTIVITY="address_activity",a.PLATFORM_ADDRESS_ACTIVITY="platform_address_activity",a.VALIDATOR_ACTIVITY="validator_activity",a))(a||{});export{a as EventType};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var d=(d=>(d.ADDRESSES="addresses",d.NODE_ID="nodeId",d.SUBNET_ID="subnetId",d))(d||{});export{d as PlatformActivityKeyType};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { PlatformActivityKeyType } from './PlatformActivityKeyType.js';
|
|
2
|
-
import { PlatformActivitySubEvents } from './PlatformActivitySubEvents.js';
|
|
3
|
-
import { PlatformBalanceThresholdFilter } from './PlatformBalanceThresholdFilter.js';
|
|
4
|
-
|
|
5
|
-
type PlatformActivityMetadata = {
|
|
6
|
-
keyType: PlatformActivityKeyType;
|
|
7
|
-
/**
|
|
8
|
-
* Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
|
|
9
|
-
*/
|
|
10
|
-
keys: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* Sub-events to monitor
|
|
13
|
-
*/
|
|
14
|
-
subEvents?: PlatformActivitySubEvents;
|
|
15
|
-
/**
|
|
16
|
-
* Array of hexadecimal strings of the event signatures.
|
|
17
|
-
*/
|
|
18
|
-
eventSignatures?: Array<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Array of node IDs to filter the events
|
|
21
|
-
*/
|
|
22
|
-
nodeIds?: Array<string>;
|
|
23
|
-
/**
|
|
24
|
-
* Array of subnet IDs to filter the events
|
|
25
|
-
*/
|
|
26
|
-
subnetIds?: Array<string>;
|
|
27
|
-
/**
|
|
28
|
-
* Balance threshold filter
|
|
29
|
-
*/
|
|
30
|
-
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
31
|
-
/**
|
|
32
|
-
* L1 validator fee balance threshold in nAVAX
|
|
33
|
-
*/
|
|
34
|
-
l1ValidatorFeeBalanceThreshold?: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type { PlatformActivityMetadata };
|