@avalabs/glacier-sdk 3.1.0-canary.94d142e.0 → 3.1.0-canary.96ccf93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +385 -25
  3. package/esm/generated/Glacier.js +1 -1
  4. package/esm/generated/core/OpenAPI.js +1 -1
  5. package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
  6. package/esm/generated/models/Blockchain.d.ts +5 -3
  7. package/esm/generated/models/BlockchainInfo.d.ts +3 -1
  8. package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
  9. package/esm/generated/models/Erc20Transfer.d.ts +1 -1
  10. package/esm/generated/models/Erc721Transfer.d.ts +1 -1
  11. package/esm/generated/models/EvmBlock.d.ts +9 -1
  12. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  13. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  14. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  15. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  16. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  17. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  18. package/esm/generated/models/FullNativeTransactionDetails.d.ts +9 -1
  19. package/esm/generated/models/GetEvmBlockResponse.d.ts +9 -1
  20. package/esm/generated/models/InternalTransaction.d.ts +1 -1
  21. package/esm/generated/models/NativeTransaction.d.ts +9 -1
  22. package/esm/generated/models/PChainTransaction.d.ts +1 -1
  23. package/esm/generated/models/SignatureAggregatorRequest.d.ts +21 -1
  24. package/esm/generated/services/AvaxSupplyService.d.ts +3 -2
  25. package/esm/generated/services/EvmBlocksService.d.ts +1 -1
  26. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  27. package/esm/generated/services/EvmTransactionsService.d.ts +1 -1
  28. package/esm/generated/services/HealthCheckService.d.ts +9 -2
  29. package/esm/generated/services/HealthCheckService.js +1 -1
  30. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +11 -3
  31. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  32. package/esm/index.d.ts +7 -0
  33. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { EvmGenesisDto } from './EvmGenesisDto.js';
2
+
1
3
  type Blockchain = {
2
4
  createBlockTimestamp: number;
3
5
  createBlockNumber: string;
@@ -8,11 +10,11 @@ type Blockchain = {
8
10
  /**
9
11
  * EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
10
12
  */
11
- evmChainId: number;
13
+ evmChainId?: number;
12
14
  /**
13
- * The genesis data of the blockchain.
15
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
14
16
  */
15
- genesisData?: Record<string, any>;
17
+ genesisData?: (EvmGenesisDto | string);
16
18
  };
17
19
 
18
20
  export type { Blockchain };
@@ -1,10 +1,12 @@
1
+ import { EvmGenesisDto } from './EvmGenesisDto.js';
2
+
1
3
  type BlockchainInfo = {
2
4
  chainName: string;
3
5
  vmId: string;
4
6
  /**
5
7
  * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
6
8
  */
7
- genesisData?: Record<string, any>;
9
+ genesisData?: (EvmGenesisDto | string);
8
10
  };
9
11
 
10
12
  export type { BlockchainInfo };
@@ -7,7 +7,7 @@ type Erc1155Transfer = {
7
7
  */
8
8
  blockNumber: string;
9
9
  /**
10
- * The block finality timestamp.
10
+ * The block creation (proposal) timestamp in seconds
11
11
  */
12
12
  blockTimestamp: number;
13
13
  /**
@@ -7,7 +7,7 @@ type Erc20Transfer = {
7
7
  */
8
8
  blockNumber: string;
9
9
  /**
10
- * The block finality timestamp.
10
+ * The block creation (proposal) timestamp in seconds
11
11
  */
12
12
  blockTimestamp: number;
13
13
  /**
@@ -7,7 +7,7 @@ type Erc721Transfer = {
7
7
  */
8
8
  blockNumber: string;
9
9
  /**
10
- * The block finality timestamp.
10
+ * The block creation (proposal) timestamp in seconds
11
11
  */
12
12
  blockTimestamp: number;
13
13
  /**
@@ -8,9 +8,17 @@ type EvmBlock = {
8
8
  */
9
9
  blockNumber: string;
10
10
  /**
11
- * The block finality timestamp.
11
+ * The block creation (proposal) timestamp in seconds
12
12
  */
13
13
  blockTimestamp: number;
14
+ /**
15
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
16
+ */
17
+ blockTimestampMilliseconds: number;
18
+ /**
19
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
20
+ */
21
+ blockMinDelayExcess: number;
14
22
  /**
15
23
  * The block hash identifier.
16
24
  */
@@ -0,0 +1,16 @@
1
+ type EvmGenesisAllocDto = {
2
+ /**
3
+ * Account balance in hex format
4
+ */
5
+ balance?: string;
6
+ /**
7
+ * Contract bytecode in hex format
8
+ */
9
+ code?: string;
10
+ /**
11
+ * Contract storage slots
12
+ */
13
+ storage?: Record<string, string>;
14
+ };
15
+
16
+ export type { EvmGenesisAllocDto };
@@ -0,0 +1,20 @@
1
+ type EvmGenesisAllowListConfigDto = {
2
+ /**
3
+ * Block timestamp
4
+ */
5
+ blockTimestamp?: number;
6
+ /**
7
+ * Admin addresses
8
+ */
9
+ adminAddresses?: Array<string>;
10
+ /**
11
+ * Manager addresses
12
+ */
13
+ managerAddresses?: Array<string>;
14
+ /**
15
+ * Enabled addresses
16
+ */
17
+ enabledAddresses?: Array<string>;
18
+ };
19
+
20
+ export type { EvmGenesisAllowListConfigDto };
@@ -0,0 +1,96 @@
1
+ import { EvmGenesisAllowListConfigDto } from './EvmGenesisAllowListConfigDto.js';
2
+ import { EvmGenesisFeeConfigDto } from './EvmGenesisFeeConfigDto.js';
3
+ import { EvmGenesisWarpConfigDto } from './EvmGenesisWarpConfigDto.js';
4
+
5
+ type EvmGenesisConfigDto = {
6
+ /**
7
+ * Berlin block number
8
+ */
9
+ berlinBlock?: number;
10
+ /**
11
+ * Byzantium block number
12
+ */
13
+ byzantiumBlock?: number;
14
+ /**
15
+ * Chain ID
16
+ */
17
+ chainId?: number;
18
+ /**
19
+ * Constantinople block number
20
+ */
21
+ constantinopleBlock?: number;
22
+ /**
23
+ * EIP-150 block number
24
+ */
25
+ eip150Block?: number;
26
+ /**
27
+ * EIP-150 hash
28
+ */
29
+ eip150Hash?: string;
30
+ /**
31
+ * EIP-155 block number
32
+ */
33
+ eip155Block?: number;
34
+ /**
35
+ * EIP-158 block number
36
+ */
37
+ eip158Block?: number;
38
+ /**
39
+ * Fee configuration
40
+ */
41
+ feeConfig?: EvmGenesisFeeConfigDto;
42
+ /**
43
+ * Homestead block number
44
+ */
45
+ homesteadBlock?: number;
46
+ /**
47
+ * Istanbul block number
48
+ */
49
+ istanbulBlock?: number;
50
+ /**
51
+ * London block number
52
+ */
53
+ londonBlock?: number;
54
+ /**
55
+ * Muir Glacier block number
56
+ */
57
+ muirGlacierBlock?: number;
58
+ /**
59
+ * Petersburg block number
60
+ */
61
+ petersburgBlock?: number;
62
+ /**
63
+ * Subnet EVM timestamp
64
+ */
65
+ subnetEVMTimestamp?: number;
66
+ /**
67
+ * Allow fee recipients
68
+ */
69
+ allowFeeRecipients?: boolean;
70
+ /**
71
+ * Warp configuration
72
+ */
73
+ warpConfig?: EvmGenesisWarpConfigDto;
74
+ /**
75
+ * Transaction allow list configuration
76
+ */
77
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
78
+ /**
79
+ * Contract deployer allow list configuration
80
+ */
81
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
82
+ /**
83
+ * Contract native minter configuration
84
+ */
85
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
86
+ /**
87
+ * Fee manager configuration
88
+ */
89
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
90
+ /**
91
+ * Reward manager configuration
92
+ */
93
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
94
+ };
95
+
96
+ export type { EvmGenesisConfigDto };
@@ -0,0 +1,75 @@
1
+ import { EvmGenesisAllocDto } from './EvmGenesisAllocDto.js';
2
+ import { EvmGenesisConfigDto } from './EvmGenesisConfigDto.js';
3
+
4
+ type EvmGenesisDto = {
5
+ /**
6
+ * Airdrop amount
7
+ */
8
+ airdropAmount?: number | null;
9
+ /**
10
+ * Airdrop hash
11
+ */
12
+ airdropHash?: string;
13
+ /**
14
+ * Allocation of accounts and balances
15
+ */
16
+ alloc?: Record<string, EvmGenesisAllocDto>;
17
+ /**
18
+ * Base fee per gas
19
+ */
20
+ baseFeePerGas?: number | null;
21
+ /**
22
+ * Blob gas used
23
+ */
24
+ blobGasUsed?: string | null;
25
+ /**
26
+ * Coinbase address
27
+ */
28
+ coinbase?: string;
29
+ /**
30
+ * Genesis configuration
31
+ */
32
+ config?: EvmGenesisConfigDto;
33
+ /**
34
+ * Difficulty
35
+ */
36
+ difficulty?: string;
37
+ /**
38
+ * Excess blob gas
39
+ */
40
+ excessBlobGas?: string | null;
41
+ /**
42
+ * Extra data
43
+ */
44
+ extraData?: string;
45
+ /**
46
+ * Gas limit
47
+ */
48
+ gasLimit?: string;
49
+ /**
50
+ * Gas used
51
+ */
52
+ gasUsed?: string;
53
+ /**
54
+ * Mix hash
55
+ */
56
+ mixHash?: string;
57
+ /**
58
+ * Nonce
59
+ */
60
+ nonce?: string;
61
+ /**
62
+ * Block number
63
+ */
64
+ number?: string;
65
+ /**
66
+ * Parent hash
67
+ */
68
+ parentHash?: string;
69
+ /**
70
+ * Block timestamp
71
+ */
72
+ timestamp?: string;
73
+ };
74
+
75
+ export type { EvmGenesisDto };
@@ -0,0 +1,36 @@
1
+ type EvmGenesisFeeConfigDto = {
2
+ /**
3
+ * Base fee change denominator
4
+ */
5
+ baseFeeChangeDenominator?: number;
6
+ /**
7
+ * Block gas cost step
8
+ */
9
+ blockGasCostStep?: number;
10
+ /**
11
+ * Gas limit
12
+ */
13
+ gasLimit?: number;
14
+ /**
15
+ * Maximum block gas cost
16
+ */
17
+ maxBlockGasCost?: number;
18
+ /**
19
+ * Minimum base fee
20
+ */
21
+ minBaseFee?: number;
22
+ /**
23
+ * Minimum block gas cost
24
+ */
25
+ minBlockGasCost?: number;
26
+ /**
27
+ * Target block rate
28
+ */
29
+ targetBlockRate?: number;
30
+ /**
31
+ * Target gas
32
+ */
33
+ targetGas?: number;
34
+ };
35
+
36
+ export type { EvmGenesisFeeConfigDto };
@@ -0,0 +1,16 @@
1
+ type EvmGenesisWarpConfigDto = {
2
+ /**
3
+ * Block timestamp
4
+ */
5
+ blockTimestamp?: number;
6
+ /**
7
+ * Quorum numerator
8
+ */
9
+ quorumNumerator?: number;
10
+ /**
11
+ * Require primary network signers
12
+ */
13
+ requirePrimaryNetworkSigners?: boolean;
14
+ };
15
+
16
+ export type { EvmGenesisWarpConfigDto };
@@ -7,9 +7,17 @@ type FullNativeTransactionDetails = {
7
7
  */
8
8
  blockNumber: string;
9
9
  /**
10
- * The block finality timestamp.
10
+ * The block creation (proposal) timestamp in seconds
11
11
  */
12
12
  blockTimestamp: number;
13
+ /**
14
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
15
+ */
16
+ blockTimestampMilliseconds: number;
17
+ /**
18
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
19
+ */
20
+ blockMinDelayExcess: number;
13
21
  /**
14
22
  * The block hash identifier.
15
23
  */
@@ -8,9 +8,17 @@ type GetEvmBlockResponse = {
8
8
  */
9
9
  blockNumber: string;
10
10
  /**
11
- * The block finality timestamp.
11
+ * The block creation (proposal) timestamp in seconds
12
12
  */
13
13
  blockTimestamp: number;
14
+ /**
15
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
16
+ */
17
+ blockTimestampMilliseconds: number;
18
+ /**
19
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
20
+ */
21
+ blockMinDelayExcess: number;
14
22
  /**
15
23
  * The block hash identifier.
16
24
  */
@@ -7,7 +7,7 @@ type InternalTransaction = {
7
7
  */
8
8
  blockNumber: string;
9
9
  /**
10
- * The block finality timestamp.
10
+ * The block creation (proposal) timestamp in seconds
11
11
  */
12
12
  blockTimestamp: number;
13
13
  /**
@@ -7,9 +7,17 @@ type NativeTransaction = {
7
7
  */
8
8
  blockNumber: string;
9
9
  /**
10
- * The block finality timestamp.
10
+ * The block creation (proposal) timestamp in seconds
11
11
  */
12
12
  blockTimestamp: number;
13
+ /**
14
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
15
+ */
16
+ blockTimestampMilliseconds: number;
17
+ /**
18
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
19
+ */
20
+ blockMinDelayExcess: number;
13
21
  /**
14
22
  * The block hash identifier.
15
23
  */
@@ -14,7 +14,7 @@ type PChainTransaction = {
14
14
  txHash: string;
15
15
  txType: PChainTransactionType;
16
16
  /**
17
- * The block finality timestamp.
17
+ * The block creation (proposal) timestamp in seconds
18
18
  */
19
19
  blockTimestamp: number;
20
20
  /**
@@ -1,8 +1,28 @@
1
1
  type SignatureAggregatorRequest = {
2
- message: string;
2
+ /**
3
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
4
+ */
5
+ message?: string;
6
+ /**
7
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
8
+ */
3
9
  justification?: string;
10
+ /**
11
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
12
+ */
4
13
  signingSubnetId?: string;
14
+ /**
15
+ * Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
16
+ */
5
17
  quorumPercentage?: number;
18
+ /**
19
+ * Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
20
+ */
21
+ quorumPercentageBuffer?: number;
22
+ /**
23
+ * Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
24
+ */
25
+ pChainHeight?: number;
6
26
  };
7
27
 
8
28
  export type { SignatureAggregatorRequest };
@@ -1,3 +1,4 @@
1
+ import { AvaxSupplyResponse } from '../models/AvaxSupplyResponse.js';
1
2
  import { CancelablePromise } from '../core/CancelablePromise.js';
2
3
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
3
4
 
@@ -7,10 +8,10 @@ declare class AvaxSupplyService {
7
8
  /**
8
9
  * Get AVAX supply information
9
10
  * 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
+ * @returns AvaxSupplyResponse Successful response
11
12
  * @throws ApiError
12
13
  */
13
- getAvaxSupply(): CancelablePromise<void>;
14
+ getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
14
15
  }
15
16
 
16
17
  export { AvaxSupplyService };
@@ -9,7 +9,7 @@ declare class EvmBlocksService {
9
9
  constructor(httpRequest: BaseHttpRequest);
10
10
  /**
11
11
  * List latest blocks across all supported EVM chains
12
- * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
12
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
13
13
  * @returns ListEvmBlocksResponse Successful response
14
14
  * @throws ApiError
15
15
  */
@@ -14,7 +14,7 @@ declare class EvmChainsService {
14
14
  constructor(httpRequest: BaseHttpRequest);
15
15
  /**
16
16
  * List all chains associated with a given address
17
- * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
17
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
18
18
  * @returns ListAddressChainsResponse Successful response
19
19
  * @throws ApiError
20
20
  */
@@ -19,7 +19,7 @@ declare class EvmTransactionsService {
19
19
  constructor(httpRequest: BaseHttpRequest);
20
20
  /**
21
21
  * List the latest transactions across all supported EVM chains
22
- * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
22
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
23
23
  * @returns ListNativeTransactionsResponse Successful response
24
24
  * @throws ApiError
25
25
  */
@@ -7,11 +7,18 @@ declare class HealthCheckService {
7
7
  constructor(httpRequest: BaseHttpRequest);
8
8
  /**
9
9
  * Get the health of the service
10
- * Check the health of the service.
11
- * @returns HealthCheckResultDto The health of the service
10
+ * Check the health of the service. This checks the read and write health of the database and cache.
11
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
12
12
  * @throws ApiError
13
13
  */
14
14
  dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
15
+ /**
16
+ * Get the liveliness of the service (reads only)
17
+ * Check the liveliness of the service (reads only).
18
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
19
+ * @throws ApiError
20
+ */
21
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
15
22
  }
16
23
 
17
24
  export { HealthCheckService };
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}dataHealthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",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 HealthCheckService};
1
+ class e{constructor(e){this.httpRequest=e}dataHealthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",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."}})}liveCheck(){return this.httpRequest.request({method:"GET",url:"/v1/live-check",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 HealthCheckService};
@@ -17,7 +17,7 @@ declare class PrimaryNetworkUtxOsService {
17
17
  * @returns any Successful response
18
18
  * @throws ApiError
19
19
  */
20
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
20
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
21
21
  /**
22
22
  * A primary network blockchain id or alias.
23
23
  */
@@ -42,6 +42,10 @@ declare class PrimaryNetworkUtxOsService {
42
42
  * Asset ID for any asset (only applicable X-Chain)
43
43
  */
44
44
  assetId?: string;
45
+ /**
46
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
47
+ */
48
+ minUtxoAmount?: number;
45
49
  /**
46
50
  * Boolean filter to include spent UTXOs.
47
51
  */
@@ -61,7 +65,7 @@ declare class PrimaryNetworkUtxOsService {
61
65
  * @returns any Successful response
62
66
  * @throws ApiError
63
67
  */
64
- getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
68
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
65
69
  /**
66
70
  * A primary network blockchain id or alias.
67
71
  */
@@ -76,13 +80,17 @@ declare class PrimaryNetworkUtxOsService {
76
80
  */
77
81
  pageToken?: string;
78
82
  /**
79
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
83
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
80
84
  */
81
85
  pageSize?: number;
82
86
  /**
83
87
  * Asset ID for any asset (only applicable X-Chain)
84
88
  */
85
89
  assetId?: string;
90
+ /**
91
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
92
+ */
93
+ minUtxoAmount?: number;
86
94
  /**
87
95
  * Boolean filter to include spent UTXOs.
88
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: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};
1
+ class e{constructor(e){this.httpRequest=e}getUtxosByAddresses({blockchainId:e,network:r,addresses:t,pageToken:n,pageSize:s=10,assetId:o,minUtxoAmount:a,includeSpent:i,sortBy:h,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{addresses:t,pageToken:n,pageSize:s,assetId:o,minUtxoAmount:a,includeSpent:i,sortBy: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."}})}getUtxosByAddressesV2({blockchainId:e,network:r,requestBody:t,pageToken:n,pageSize:s=10,assetId:o,minUtxoAmount:a,includeSpent:i,sortBy:h,sortOrder:d}){return this.httpRequest.request({method:"POST",url:"/v1/networks/{network}/blockchains/{blockchainId}/utxos",path:{blockchainId:e,network:r},query:{pageToken:n,pageSize:s,assetId:o,minUtxoAmount:a,includeSpent:i,sortBy:h,sortOrder:d},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};
package/esm/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export { AggregatedAssetAmount } from './generated/models/AggregatedAssetAmount.
14
14
  export { ApiFeature } from './generated/models/ApiFeature.js';
15
15
  export { AssetAmount } from './generated/models/AssetAmount.js';
16
16
  export { AssetWithPriceInfo } from './generated/models/AssetWithPriceInfo.js';
17
+ export { AvaxSupplyResponse } from './generated/models/AvaxSupplyResponse.js';
17
18
  export { BadGateway } from './generated/models/BadGateway.js';
18
19
  export { BadRequest } from './generated/models/BadRequest.js';
19
20
  export { BalanceOwner } from './generated/models/BalanceOwner.js';
@@ -71,6 +72,12 @@ export { ERCTransfer } from './generated/models/ERCTransfer.js';
71
72
  export { EVMAddressActivityRequest } from './generated/models/EVMAddressActivityRequest.js';
72
73
  export { EVMAddressActivityResponse } from './generated/models/EVMAddressActivityResponse.js';
73
74
  export { EvmBlock } from './generated/models/EvmBlock.js';
75
+ export { EvmGenesisAllocDto } from './generated/models/EvmGenesisAllocDto.js';
76
+ export { EvmGenesisAllowListConfigDto } from './generated/models/EvmGenesisAllowListConfigDto.js';
77
+ export { EvmGenesisConfigDto } from './generated/models/EvmGenesisConfigDto.js';
78
+ export { EvmGenesisDto } from './generated/models/EvmGenesisDto.js';
79
+ export { EvmGenesisFeeConfigDto } from './generated/models/EvmGenesisFeeConfigDto.js';
80
+ export { EvmGenesisWarpConfigDto } from './generated/models/EvmGenesisWarpConfigDto.js';
74
81
  export { EVMInput } from './generated/models/EVMInput.js';
75
82
  export { EvmNetworkOptions } from './generated/models/EvmNetworkOptions.js';
76
83
  export { EVMOperationType } from './generated/models/EVMOperationType.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "3.1.0-canary.94d142e.0+94d142e",
3
+ "version": "3.1.0-canary.96ccf93.0+96ccf93",
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",
@@ -38,5 +38,5 @@
38
38
  "bugs": {
39
39
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
40
40
  },
41
- "gitHead": "94d142e41732efc02e7e549ec51ba047088df1db"
41
+ "gitHead": "96ccf93f54271087a35210cdd88bddc9d16c0822"
42
42
  }