@avalabs/glacier-sdk 2.8.0-canary.bf2dc9b.0 → 2.8.0-canary.c1a0f25.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 (55) hide show
  1. package/dist/index.d.ts +319 -208
  2. package/dist/index.js +126 -93
  3. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
  4. package/esm/generated/models/Asset.d.ts +3 -1
  5. package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
  6. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
  7. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  8. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  9. package/esm/generated/models/PChainSharedAsset.d.ts +3 -1
  10. package/esm/generated/models/PChainTransaction.d.ts +5 -0
  11. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  12. package/esm/generated/models/PChainTransactionType.js +2 -0
  13. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  14. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  15. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  16. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  17. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  18. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  19. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  20. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  21. package/esm/generated/models/Subnet.d.ts +17 -0
  22. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  23. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  24. package/esm/generated/models/ValidationStatusType.js +1 -0
  25. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  26. package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
  27. package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
  28. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
  29. package/esm/generated/services/DefaultService.d.ts +12 -5
  30. package/esm/generated/services/DefaultService.js +9 -3
  31. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  32. package/esm/generated/services/EvmBalancesService.js +8 -8
  33. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  34. package/esm/generated/services/EvmBlocksService.js +4 -4
  35. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  36. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  37. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  38. package/esm/generated/services/EvmTransactionsService.js +32 -32
  39. package/esm/generated/services/NfTsService.d.ts +8 -8
  40. package/esm/generated/services/NfTsService.js +4 -4
  41. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  42. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  43. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  44. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  45. package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
  46. package/esm/generated/services/PrimaryNetworkService.js +11 -11
  47. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  48. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  49. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  50. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  51. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  52. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  53. package/esm/index.d.ts +5 -0
  54. package/esm/index.js +3 -0
  55. package/package.json +2 -2
@@ -3,7 +3,10 @@ type AddressActivityMetadata = {
3
3
  * Ethereum address for the address_activity event type
4
4
  */
5
5
  address: string;
6
- topic0?: string;
6
+ /**
7
+ * Array of hexadecimal strings of the event signatures.
8
+ */
9
+ eventSignatures?: Array<string>;
7
10
  };
8
11
 
9
12
  export { AddressActivityMetadata };
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type Asset = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -18,7 +20,7 @@ type Asset = {
18
20
  /**
19
21
  * Type of asset like SECP256K1 or NFT.
20
22
  */
21
- type: string;
23
+ type: PrimaryNetworkAssetType;
22
24
  /**
23
25
  * Amount of the asset.
24
26
  */
@@ -0,0 +1,35 @@
1
+ import { Money } from './Money.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
4
+ type AssetWithPriceInfo = {
5
+ /**
6
+ * Unique ID for an asset.
7
+ */
8
+ assetId: string;
9
+ /**
10
+ * Name of this asset.
11
+ */
12
+ name: string;
13
+ /**
14
+ * Symbol for this asset (max 4 characters).
15
+ */
16
+ symbol: string;
17
+ /**
18
+ * Denomination of this asset to represent fungibility.
19
+ */
20
+ denomination: number;
21
+ /**
22
+ * Type of asset like SECP256K1 or NFT.
23
+ */
24
+ type: PrimaryNetworkAssetType;
25
+ /**
26
+ * Amount of the asset.
27
+ */
28
+ amount: string;
29
+ /**
30
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
31
+ */
32
+ historicalPrice?: Money;
33
+ };
34
+
35
+ export { AssetWithPriceInfo };
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type CChainSharedAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -18,7 +20,7 @@ type CChainSharedAssetBalance = {
18
20
  /**
19
21
  * Type of asset like SECP256K1 or NFT.
20
22
  */
21
- type: string;
23
+ type: PrimaryNetworkAssetType;
22
24
  /**
23
25
  * Amount of the asset.
24
26
  */
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetWithPriceInfo } from './AssetWithPriceInfo.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type HistoricalReward = {
@@ -14,10 +14,7 @@ type HistoricalReward = {
14
14
  rewardType: RewardType;
15
15
  utxoId: string;
16
16
  outputIndex: number;
17
- /**
18
- * An object containing P-chain Asset ID and the amount of that Asset ID.
19
- */
20
- reward: Asset;
17
+ reward: AssetWithPriceInfo;
21
18
  rewardTxHash: string;
22
19
  };
23
20
 
@@ -1,6 +1,7 @@
1
1
  import { ActiveValidatorDetails } from './ActiveValidatorDetails.js';
2
2
  import { CompletedValidatorDetails } from './CompletedValidatorDetails.js';
3
3
  import { PendingValidatorDetails } from './PendingValidatorDetails.js';
4
+ import { RemovedValidatorDetails } from './RemovedValidatorDetails.js';
4
5
 
5
6
  type ListValidatorDetailsResponse = {
6
7
  /**
@@ -10,7 +11,7 @@ type ListValidatorDetailsResponse = {
10
11
  /**
11
12
  * The list of validator Details.
12
13
  */
13
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
14
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
14
15
  };
15
16
 
16
17
  export { ListValidatorDetailsResponse };
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type PChainSharedAsset = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -18,7 +20,7 @@ type PChainSharedAsset = {
18
20
  /**
19
21
  * Type of asset like SECP256K1 or NFT.
20
22
  */
21
- type: string;
23
+ type: PrimaryNetworkAssetType;
22
24
  /**
23
25
  * Amount of the asset.
24
26
  */
@@ -1,6 +1,7 @@
1
1
  import { Asset } from './Asset.js';
2
2
  import { PChainTransactionType } from './PChainTransactionType.js';
3
3
  import { PChainUtxo } from './PChainUtxo.js';
4
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
4
5
 
5
6
  type PChainTransaction = {
6
7
  /**
@@ -67,6 +68,10 @@ type PChainTransaction = {
67
68
  * Present for RewardValidatorTx
68
69
  */
69
70
  stakingTxHash?: string;
71
+ /**
72
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
73
+ */
74
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
70
75
  };
71
76
 
72
77
  export { PChainTransaction };
@@ -12,6 +12,8 @@ declare enum PChainTransactionType {
12
12
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
13
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
+ BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
15
17
  UNKNOWN = "UNKNOWN"
16
18
  }
17
19
 
@@ -12,6 +12,8 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
12
12
  PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
13
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
14
  PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
15
+ PChainTransactionType2["BASE_TX"] = "BaseTx";
16
+ PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
15
17
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
16
18
  return PChainTransactionType2;
17
19
  })(PChainTransactionType || {});
@@ -0,0 +1,6 @@
1
+ declare enum PrimaryNetworkAssetCap {
2
+ FIXED = "fixed",
3
+ VARIABLE = "variable"
4
+ }
5
+
6
+ export { PrimaryNetworkAssetCap };
@@ -0,0 +1,7 @@
1
+ var PrimaryNetworkAssetCap = /* @__PURE__ */ ((PrimaryNetworkAssetCap2) => {
2
+ PrimaryNetworkAssetCap2["FIXED"] = "fixed";
3
+ PrimaryNetworkAssetCap2["VARIABLE"] = "variable";
4
+ return PrimaryNetworkAssetCap2;
5
+ })(PrimaryNetworkAssetCap || {});
6
+
7
+ export { PrimaryNetworkAssetCap };
@@ -0,0 +1,6 @@
1
+ declare enum PrimaryNetworkAssetType {
2
+ SECP256K1 = "secp256k1",
3
+ NFT = "nft"
4
+ }
5
+
6
+ export { PrimaryNetworkAssetType };
@@ -0,0 +1,7 @@
1
+ var PrimaryNetworkAssetType = /* @__PURE__ */ ((PrimaryNetworkAssetType2) => {
2
+ PrimaryNetworkAssetType2["SECP256K1"] = "secp256k1";
3
+ PrimaryNetworkAssetType2["NFT"] = "nft";
4
+ return PrimaryNetworkAssetType2;
5
+ })(PrimaryNetworkAssetType || {});
6
+
7
+ export { PrimaryNetworkAssetType };
@@ -12,8 +12,9 @@ declare enum PrimaryNetworkTxType {
12
12
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
13
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
- UNKNOWN = "UNKNOWN",
16
15
  BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
+ UNKNOWN = "UNKNOWN",
17
18
  CREATE_ASSET_TX = "CreateAssetTx",
18
19
  OPERATION_TX = "OperationTx"
19
20
  }
@@ -12,8 +12,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
12
12
  PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
13
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
14
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
15
- PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
16
15
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
+ PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
17
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
17
18
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
18
19
  PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
19
20
  return PrimaryNetworkTxType2;
@@ -0,0 +1,19 @@
1
+ type RemovedValidatorDetails = {
2
+ txHash: string;
3
+ nodeId: string;
4
+ subnetId: string;
5
+ amountStaked: string;
6
+ delegationFee?: string;
7
+ startTimestamp: number;
8
+ endTimestamp: number;
9
+ removeTxHash: string;
10
+ removeTimestamp: number;
11
+ validationStatus: RemovedValidatorDetails.validationStatus;
12
+ };
13
+ declare namespace RemovedValidatorDetails {
14
+ enum validationStatus {
15
+ REMOVED = "removed"
16
+ }
17
+ }
18
+
19
+ export { RemovedValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var RemovedValidatorDetails;
2
+ ((RemovedValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["REMOVED"] = "removed";
5
+ })(RemovedValidatorDetails2.validationStatus || (RemovedValidatorDetails2.validationStatus = {}));
6
+ })(RemovedValidatorDetails || (RemovedValidatorDetails = {}));
7
+
8
+ export { RemovedValidatorDetails };
@@ -1,12 +1,29 @@
1
1
  import { BlockchainInfo } from './BlockchainInfo.js';
2
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
2
3
 
3
4
  type Subnet = {
4
5
  createBlockTimestamp: number;
5
6
  createBlockIndex: string;
6
7
  subnetId: string;
8
+ /**
9
+ * This field is deprecated. Use subnetOwnershipInfo instead.
10
+ * @deprecated
11
+ */
7
12
  ownerAddresses: Array<string>;
13
+ /**
14
+ * This field is deprecated. Use subnetOwnershipInfo instead.
15
+ * @deprecated
16
+ */
8
17
  threshold: number;
18
+ /**
19
+ * This field is deprecated. Use subnetOwnershipInfo instead.
20
+ * @deprecated
21
+ */
9
22
  locktime: number;
23
+ /**
24
+ * Latest subnet owner details for this Subnet.
25
+ */
26
+ subnetOwnershipInfo: SubnetOwnershipInfo;
10
27
  blockchains: Array<BlockchainInfo>;
11
28
  };
12
29
 
@@ -0,0 +1,16 @@
1
+ type SubnetOwnershipInfo = {
2
+ /**
3
+ * Locktime in seconds after which Subnet owners can control this Subnet.
4
+ */
5
+ locktime: number;
6
+ /**
7
+ * Minimum number of signatures required to sign the Subnet update transactions.
8
+ */
9
+ threshold: number;
10
+ /**
11
+ * Addresses that are eligible to sign the Subnet update transactions.
12
+ */
13
+ addresses: Array<string>;
14
+ };
15
+
16
+ export { SubnetOwnershipInfo };
@@ -1,7 +1,8 @@
1
1
  declare enum ValidationStatusType {
2
2
  COMPLETED = "completed",
3
3
  ACTIVE = "active",
4
- PENDING = "pending"
4
+ PENDING = "pending",
5
+ REMOVED = "removed"
5
6
  }
6
7
 
7
8
  export { ValidationStatusType };
@@ -2,6 +2,7 @@ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
2
2
  ValidationStatusType2["COMPLETED"] = "completed";
3
3
  ValidationStatusType2["ACTIVE"] = "active";
4
4
  ValidationStatusType2["PENDING"] = "pending";
5
+ ValidationStatusType2["REMOVED"] = "removed";
5
6
  return ValidationStatusType2;
6
7
  })(ValidationStatusType || {});
7
8
 
@@ -10,6 +10,8 @@ type WebhookResponse = {
10
10
  chainId: string;
11
11
  status: WebhookStatusType;
12
12
  createdAt: number;
13
+ name: string;
14
+ description: string;
13
15
  };
14
16
 
15
17
  export { WebhookResponse };
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type XChainAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -18,7 +20,7 @@ type XChainAssetBalance = {
18
20
  /**
19
21
  * Type of asset like SECP256K1 or NFT.
20
22
  */
21
- type: string;
23
+ type: PrimaryNetworkAssetType;
22
24
  /**
23
25
  * Amount of the asset.
24
26
  */
@@ -1,3 +1,6 @@
1
+ import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
1
4
  type XChainAssetDetails = {
2
5
  /**
3
6
  * Unique ID for an asset.
@@ -18,15 +21,15 @@ type XChainAssetDetails = {
18
21
  /**
19
22
  * Type of asset like SECP256K1 or NFT.
20
23
  */
21
- type: string;
24
+ type: PrimaryNetworkAssetType;
22
25
  /**
23
26
  * Timestamp in seconds this asset was created on.
24
27
  */
25
28
  createdAtTimestamp: number;
26
29
  /**
27
- * Cap represents if an asset can be or is fixed cap.
30
+ * Cap represents if an asset is a variable or fixed cap asset.
28
31
  */
29
- cap: string;
32
+ cap: PrimaryNetworkAssetCap;
30
33
  };
31
34
 
32
35
  export { XChainAssetDetails };
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type XChainSharedAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -18,7 +20,7 @@ type XChainSharedAssetBalance = {
18
20
  /**
19
21
  * Type of asset like SECP256K1 or NFT.
20
22
  */
21
- type: string;
23
+ type: PrimaryNetworkAssetType;
22
24
  /**
23
25
  * Amount of the asset.
24
26
  */
@@ -29,15 +29,15 @@ declare class DefaultService {
29
29
  * @returns ListWebhooksResponse
30
30
  * @throws ApiError
31
31
  */
32
- listWebhooks({ pageSize, pageToken, status, }: {
33
- /**
34
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
35
- */
36
- pageSize?: number;
32
+ listWebhooks({ pageToken, pageSize, status, }: {
37
33
  /**
38
34
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
39
35
  */
40
36
  pageToken?: string;
37
+ /**
38
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
39
+ */
40
+ pageSize?: number;
41
41
  /**
42
42
  * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
43
43
  */
@@ -62,6 +62,13 @@ declare class DefaultService {
62
62
  * @throws ApiError
63
63
  */
64
64
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
+ /**
66
+ * Get a shared secret
67
+ * Get a previously generated shared secret.
68
+ * @returns SharedSecretsResponse
69
+ * @throws ApiError
70
+ */
71
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
72
  }
66
73
 
67
74
  export { DefaultService };
@@ -19,16 +19,16 @@ class DefaultService {
19
19
  });
20
20
  }
21
21
  listWebhooks({
22
- pageSize = 10,
23
22
  pageToken,
23
+ pageSize = 10,
24
24
  status
25
25
  }) {
26
26
  return this.httpRequest.request({
27
27
  method: "GET",
28
28
  url: "/v1/webhooks",
29
29
  query: {
30
- "pageSize": pageSize,
31
30
  "pageToken": pageToken,
31
+ "pageSize": pageSize,
32
32
  "status": status
33
33
  }
34
34
  });
@@ -47,7 +47,13 @@ class DefaultService {
47
47
  generateSharedSecret() {
48
48
  return this.httpRequest.request({
49
49
  method: "POST",
50
- url: "/v1/webhooks:generateSharedSecret"
50
+ url: "/v1/webhooks:generateOrRotateSharedSecret"
51
+ });
52
+ }
53
+ getSharedSecret() {
54
+ return this.httpRequest.request({
55
+ method: "GET",
56
+ url: "/v1/webhooks:getSharedSecret"
51
57
  });
52
58
  }
53
59
  }
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
20
20
  */
21
21
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
22
22
  /**
23
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
23
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
24
24
  */
25
25
  chainId: string;
26
26
  /**
@@ -46,9 +46,9 @@ declare class EvmBalancesService {
46
46
  * @returns ListErc20BalancesResponse
47
47
  * @throws ApiError
48
48
  */
49
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
49
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
50
50
  /**
51
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
51
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
52
  */
53
53
  chainId: string;
54
54
  /**
@@ -59,14 +59,14 @@ declare class EvmBalancesService {
59
59
  * The block number, if not defined the block number will be the latest block.
60
60
  */
61
61
  blockNumber?: string;
62
- /**
63
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
64
- */
65
- pageSize?: number;
66
62
  /**
67
63
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
68
64
  */
69
65
  pageToken?: string;
66
+ /**
67
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
68
+ */
69
+ pageSize?: number;
70
70
  /**
71
71
  * A comma separated list of contract addresses to filter by.
72
72
  */
@@ -84,23 +84,23 @@ declare class EvmBalancesService {
84
84
  * @returns ListErc721BalancesResponse
85
85
  * @throws ApiError
86
86
  */
87
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
87
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
88
88
  /**
89
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
89
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
90
90
  */
91
91
  chainId: string;
92
92
  /**
93
93
  * A wallet address.
94
94
  */
95
95
  address: string;
96
- /**
97
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
98
- */
99
- pageSize?: number;
100
96
  /**
101
97
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
102
98
  */
103
99
  pageToken?: string;
100
+ /**
101
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
102
+ */
103
+ pageSize?: number;
104
104
  /**
105
105
  * A contract addresses to filter by.
106
106
  */
@@ -116,9 +116,9 @@ declare class EvmBalancesService {
116
116
  * @returns ListErc1155BalancesResponse
117
117
  * @throws ApiError
118
118
  */
119
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
119
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
120
120
  /**
121
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
121
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
122
122
  */
123
123
  chainId: string;
124
124
  /**
@@ -129,14 +129,14 @@ declare class EvmBalancesService {
129
129
  * The block number, if not defined the block number will be the latest block.
130
130
  */
131
131
  blockNumber?: string;
132
- /**
133
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
134
- */
135
- pageSize?: number;
136
132
  /**
137
133
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
138
134
  */
139
135
  pageToken?: string;
136
+ /**
137
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
138
+ */
139
+ pageSize?: number;
140
140
  /**
141
141
  * A contract addresses to filter by.
142
142
  */
@@ -150,23 +150,23 @@ declare class EvmBalancesService {
150
150
  * @returns ListCollectibleBalancesResponse
151
151
  * @throws ApiError
152
152
  */
153
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
153
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
154
154
  /**
155
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
155
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
156
156
  */
157
157
  chainId: string;
158
158
  /**
159
159
  * A wallet address.
160
160
  */
161
161
  address: string;
162
- /**
163
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
164
- */
165
- pageSize?: number;
166
162
  /**
167
163
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
168
164
  */
169
165
  pageToken?: string;
166
+ /**
167
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
168
+ */
169
+ pageSize?: number;
170
170
  /**
171
171
  * A contract addresses to filter by.
172
172
  */
@@ -25,8 +25,8 @@ class EvmBalancesService {
25
25
  chainId,
26
26
  address,
27
27
  blockNumber,
28
- pageSize = 10,
29
28
  pageToken,
29
+ pageSize = 10,
30
30
  contractAddresses,
31
31
  currency
32
32
  }) {
@@ -39,8 +39,8 @@ class EvmBalancesService {
39
39
  },
40
40
  query: {
41
41
  "blockNumber": blockNumber,
42
- "pageSize": pageSize,
43
42
  "pageToken": pageToken,
43
+ "pageSize": pageSize,
44
44
  "contractAddresses": contractAddresses,
45
45
  "currency": currency
46
46
  }
@@ -49,8 +49,8 @@ class EvmBalancesService {
49
49
  listErc721Balances({
50
50
  chainId,
51
51
  address,
52
- pageSize = 10,
53
52
  pageToken,
53
+ pageSize = 10,
54
54
  contractAddress
55
55
  }) {
56
56
  return this.httpRequest.request({
@@ -61,8 +61,8 @@ class EvmBalancesService {
61
61
  "address": address
62
62
  },
63
63
  query: {
64
- "pageSize": pageSize,
65
64
  "pageToken": pageToken,
65
+ "pageSize": pageSize,
66
66
  "contractAddress": contractAddress
67
67
  }
68
68
  });
@@ -71,8 +71,8 @@ class EvmBalancesService {
71
71
  chainId,
72
72
  address,
73
73
  blockNumber,
74
- pageSize = 10,
75
74
  pageToken,
75
+ pageSize = 10,
76
76
  contractAddress
77
77
  }) {
78
78
  return this.httpRequest.request({
@@ -84,8 +84,8 @@ class EvmBalancesService {
84
84
  },
85
85
  query: {
86
86
  "blockNumber": blockNumber,
87
- "pageSize": pageSize,
88
87
  "pageToken": pageToken,
88
+ "pageSize": pageSize,
89
89
  "contractAddress": contractAddress
90
90
  }
91
91
  });
@@ -93,8 +93,8 @@ class EvmBalancesService {
93
93
  listCollectibleBalances({
94
94
  chainId,
95
95
  address,
96
- pageSize = 10,
97
96
  pageToken,
97
+ pageSize = 10,
98
98
  contractAddress
99
99
  }) {
100
100
  return this.httpRequest.request({
@@ -105,8 +105,8 @@ class EvmBalancesService {
105
105
  "address": address
106
106
  },
107
107
  query: {
108
- "pageSize": pageSize,
109
108
  "pageToken": pageToken,
109
+ "pageSize": pageSize,
110
110
  "contractAddress": contractAddress
111
111
  }
112
112
  });