@avalabs/glacier-sdk 2.8.0-alpha.163 → 2.8.0-alpha.165
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +187 -177
- package/dist/index.js +105 -91
- package/esm/generated/models/Asset.d.ts +3 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +2 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/services/DefaultService.d.ts +5 -5
- package/esm/generated/services/DefaultService.js +2 -2
- package/esm/generated/services/EvmBalancesService.d.ts +20 -20
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmTransactionsService.d.ts +45 -45
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +5 -5
- package/esm/generated/services/NfTsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
- package/esm/generated/services/PrimaryNetworkService.js +11 -11
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/TeleporterService.d.ts +5 -5
- package/esm/generated/services/TeleporterService.js +2 -2
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/package.json +2 -2
|
@@ -22,8 +22,8 @@ class EvmTransactionsService {
|
|
|
22
22
|
listContractDeployments({
|
|
23
23
|
chainId,
|
|
24
24
|
address,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
pageToken,
|
|
26
|
+
pageSize = 10
|
|
27
27
|
}) {
|
|
28
28
|
return this.httpRequest.request({
|
|
29
29
|
method: "GET",
|
|
@@ -33,8 +33,8 @@ class EvmTransactionsService {
|
|
|
33
33
|
"address": address
|
|
34
34
|
},
|
|
35
35
|
query: {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"pageToken": pageToken,
|
|
37
|
+
"pageSize": pageSize
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -43,8 +43,8 @@ class EvmTransactionsService {
|
|
|
43
43
|
address,
|
|
44
44
|
startBlock,
|
|
45
45
|
endBlock,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
pageToken,
|
|
47
|
+
pageSize = 10
|
|
48
48
|
}) {
|
|
49
49
|
return this.httpRequest.request({
|
|
50
50
|
method: "GET",
|
|
@@ -56,16 +56,16 @@ class EvmTransactionsService {
|
|
|
56
56
|
query: {
|
|
57
57
|
"startBlock": startBlock,
|
|
58
58
|
"endBlock": endBlock,
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"pageToken": pageToken,
|
|
60
|
+
"pageSize": pageSize
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
listTransactions({
|
|
65
65
|
chainId,
|
|
66
66
|
address,
|
|
67
|
-
pageSize = 10,
|
|
68
67
|
pageToken,
|
|
68
|
+
pageSize = 10,
|
|
69
69
|
startBlock,
|
|
70
70
|
endBlock,
|
|
71
71
|
sortOrder
|
|
@@ -78,8 +78,8 @@ class EvmTransactionsService {
|
|
|
78
78
|
"address": address
|
|
79
79
|
},
|
|
80
80
|
query: {
|
|
81
|
-
"pageSize": pageSize,
|
|
82
81
|
"pageToken": pageToken,
|
|
82
|
+
"pageSize": pageSize,
|
|
83
83
|
"startBlock": startBlock,
|
|
84
84
|
"endBlock": endBlock,
|
|
85
85
|
"sortOrder": sortOrder
|
|
@@ -91,8 +91,8 @@ class EvmTransactionsService {
|
|
|
91
91
|
address,
|
|
92
92
|
startBlock,
|
|
93
93
|
endBlock,
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
pageToken,
|
|
95
|
+
pageSize = 10
|
|
96
96
|
}) {
|
|
97
97
|
return this.httpRequest.request({
|
|
98
98
|
method: "GET",
|
|
@@ -104,8 +104,8 @@ class EvmTransactionsService {
|
|
|
104
104
|
query: {
|
|
105
105
|
"startBlock": startBlock,
|
|
106
106
|
"endBlock": endBlock,
|
|
107
|
-
"
|
|
108
|
-
"
|
|
107
|
+
"pageToken": pageToken,
|
|
108
|
+
"pageSize": pageSize
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -114,8 +114,8 @@ class EvmTransactionsService {
|
|
|
114
114
|
address,
|
|
115
115
|
startBlock,
|
|
116
116
|
endBlock,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
pageToken,
|
|
118
|
+
pageSize = 10
|
|
119
119
|
}) {
|
|
120
120
|
return this.httpRequest.request({
|
|
121
121
|
method: "GET",
|
|
@@ -127,8 +127,8 @@ class EvmTransactionsService {
|
|
|
127
127
|
query: {
|
|
128
128
|
"startBlock": startBlock,
|
|
129
129
|
"endBlock": endBlock,
|
|
130
|
-
"
|
|
131
|
-
"
|
|
130
|
+
"pageToken": pageToken,
|
|
131
|
+
"pageSize": pageSize
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
}
|
|
@@ -137,8 +137,8 @@ class EvmTransactionsService {
|
|
|
137
137
|
address,
|
|
138
138
|
startBlock,
|
|
139
139
|
endBlock,
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
pageToken,
|
|
141
|
+
pageSize = 10
|
|
142
142
|
}) {
|
|
143
143
|
return this.httpRequest.request({
|
|
144
144
|
method: "GET",
|
|
@@ -150,8 +150,8 @@ class EvmTransactionsService {
|
|
|
150
150
|
query: {
|
|
151
151
|
"startBlock": startBlock,
|
|
152
152
|
"endBlock": endBlock,
|
|
153
|
-
"
|
|
154
|
-
"
|
|
153
|
+
"pageToken": pageToken,
|
|
154
|
+
"pageSize": pageSize
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
}
|
|
@@ -160,8 +160,8 @@ class EvmTransactionsService {
|
|
|
160
160
|
address,
|
|
161
161
|
startBlock,
|
|
162
162
|
endBlock,
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
pageToken,
|
|
164
|
+
pageSize = 10
|
|
165
165
|
}) {
|
|
166
166
|
return this.httpRequest.request({
|
|
167
167
|
method: "GET",
|
|
@@ -173,8 +173,8 @@ class EvmTransactionsService {
|
|
|
173
173
|
query: {
|
|
174
174
|
"startBlock": startBlock,
|
|
175
175
|
"endBlock": endBlock,
|
|
176
|
-
"
|
|
177
|
-
"
|
|
176
|
+
"pageToken": pageToken,
|
|
177
|
+
"pageSize": pageSize
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
}
|
|
@@ -183,8 +183,8 @@ class EvmTransactionsService {
|
|
|
183
183
|
address,
|
|
184
184
|
startBlock,
|
|
185
185
|
endBlock,
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
pageToken,
|
|
187
|
+
pageSize = 10
|
|
188
188
|
}) {
|
|
189
189
|
return this.httpRequest.request({
|
|
190
190
|
method: "GET",
|
|
@@ -196,8 +196,8 @@ class EvmTransactionsService {
|
|
|
196
196
|
query: {
|
|
197
197
|
"startBlock": startBlock,
|
|
198
198
|
"endBlock": endBlock,
|
|
199
|
-
"
|
|
200
|
-
"
|
|
199
|
+
"pageToken": pageToken,
|
|
200
|
+
"pageSize": pageSize
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
}
|
|
@@ -229,8 +229,8 @@ class EvmTransactionsService {
|
|
|
229
229
|
}
|
|
230
230
|
listLatestTransactions({
|
|
231
231
|
chainId,
|
|
232
|
-
pageSize = 10,
|
|
233
232
|
pageToken,
|
|
233
|
+
pageSize = 10,
|
|
234
234
|
status
|
|
235
235
|
}) {
|
|
236
236
|
return this.httpRequest.request({
|
|
@@ -240,8 +240,8 @@ class EvmTransactionsService {
|
|
|
240
240
|
"chainId": chainId
|
|
241
241
|
},
|
|
242
242
|
query: {
|
|
243
|
-
"pageSize": pageSize,
|
|
244
243
|
"pageToken": pageToken,
|
|
244
|
+
"pageSize": pageSize,
|
|
245
245
|
"status": status
|
|
246
246
|
}
|
|
247
247
|
});
|
|
@@ -33,7 +33,7 @@ declare class NfTsService {
|
|
|
33
33
|
* @returns ListNftTokens
|
|
34
34
|
* @throws ApiError
|
|
35
35
|
*/
|
|
36
|
-
listTokens({ chainId, address,
|
|
36
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
37
37
|
/**
|
|
38
38
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
39
|
*/
|
|
@@ -42,14 +42,14 @@ declare class NfTsService {
|
|
|
42
42
|
* Contract address on the relevant chain.
|
|
43
43
|
*/
|
|
44
44
|
address: string;
|
|
45
|
-
/**
|
|
46
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
47
|
-
*/
|
|
48
|
-
pageSize?: number;
|
|
49
45
|
/**
|
|
50
46
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
51
47
|
*/
|
|
52
48
|
pageToken?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
51
|
+
*/
|
|
52
|
+
pageSize?: number;
|
|
53
53
|
}): CancelablePromise<ListNftTokens>;
|
|
54
54
|
/**
|
|
55
55
|
* Get token details
|
|
@@ -20,8 +20,8 @@ class NfTsService {
|
|
|
20
20
|
listTokens({
|
|
21
21
|
chainId,
|
|
22
22
|
address,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
pageToken,
|
|
24
|
+
pageSize = 10
|
|
25
25
|
}) {
|
|
26
26
|
return this.httpRequest.request({
|
|
27
27
|
method: "GET",
|
|
@@ -31,8 +31,8 @@ class NfTsService {
|
|
|
31
31
|
"address": address
|
|
32
32
|
},
|
|
33
33
|
query: {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"pageToken": pageToken,
|
|
35
|
+
"pageSize": pageSize
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -34,7 +34,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
34
34
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
35
35
|
* @throws ApiError
|
|
36
36
|
*/
|
|
37
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
37
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
38
38
|
/**
|
|
39
39
|
* A primary network blockchain id or alias.
|
|
40
40
|
*/
|
|
@@ -47,14 +47,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
47
47
|
* A primary network (P or X chain) nodeId.
|
|
48
48
|
*/
|
|
49
49
|
nodeId: string;
|
|
50
|
-
/**
|
|
51
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
52
|
-
*/
|
|
53
|
-
pageSize?: number;
|
|
54
50
|
/**
|
|
55
51
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
56
52
|
*/
|
|
57
53
|
pageToken?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
56
|
+
*/
|
|
57
|
+
pageSize?: number;
|
|
58
58
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* List latest blocks
|
|
@@ -62,7 +62,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
62
62
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
63
63
|
* @throws ApiError
|
|
64
64
|
*/
|
|
65
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
65
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
66
66
|
/**
|
|
67
67
|
* A primary network blockchain id or alias.
|
|
68
68
|
*/
|
|
@@ -71,14 +71,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
71
71
|
* Either mainnet or a testnet.
|
|
72
72
|
*/
|
|
73
73
|
network: Network;
|
|
74
|
-
/**
|
|
75
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
76
|
-
*/
|
|
77
|
-
pageSize?: number;
|
|
78
74
|
/**
|
|
79
75
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
80
76
|
*/
|
|
81
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
82
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -21,8 +21,8 @@ class PrimaryNetworkBlocksService {
|
|
|
21
21
|
blockchainId,
|
|
22
22
|
network,
|
|
23
23
|
nodeId,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
pageToken,
|
|
25
|
+
pageSize = 10
|
|
26
26
|
}) {
|
|
27
27
|
return this.httpRequest.request({
|
|
28
28
|
method: "GET",
|
|
@@ -33,16 +33,16 @@ class PrimaryNetworkBlocksService {
|
|
|
33
33
|
"nodeId": nodeId
|
|
34
34
|
},
|
|
35
35
|
query: {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
36
|
+
"pageToken": pageToken,
|
|
37
|
+
"pageSize": pageSize
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
listLatestPrimaryNetworkBlocks({
|
|
42
42
|
blockchainId,
|
|
43
43
|
network,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
pageToken,
|
|
45
|
+
pageSize = 10
|
|
46
46
|
}) {
|
|
47
47
|
return this.httpRequest.request({
|
|
48
48
|
method: "GET",
|
|
@@ -52,8 +52,8 @@ class PrimaryNetworkBlocksService {
|
|
|
52
52
|
"network": network
|
|
53
53
|
},
|
|
54
54
|
query: {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
55
|
+
"pageToken": pageToken,
|
|
56
|
+
"pageSize": pageSize
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -15,7 +15,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
15
15
|
* @returns ListPendingRewardsResponse
|
|
16
16
|
* @throws ApiError
|
|
17
17
|
*/
|
|
18
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
18
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
19
19
|
/**
|
|
20
20
|
* Either mainnet or a testnet.
|
|
21
21
|
*/
|
|
@@ -24,14 +24,14 @@ declare class PrimaryNetworkRewardsService {
|
|
|
24
24
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
25
25
|
*/
|
|
26
26
|
addresses?: string;
|
|
27
|
-
/**
|
|
28
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
29
|
-
*/
|
|
30
|
-
pageSize?: number;
|
|
31
27
|
/**
|
|
32
28
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
33
29
|
*/
|
|
34
30
|
pageToken?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
33
|
+
*/
|
|
34
|
+
pageSize?: number;
|
|
35
35
|
/**
|
|
36
36
|
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
37
37
|
*/
|
|
@@ -47,7 +47,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
47
47
|
* @returns ListHistoricalRewardsResponse
|
|
48
48
|
* @throws ApiError
|
|
49
49
|
*/
|
|
50
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
50
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
51
51
|
/**
|
|
52
52
|
* Either mainnet or a testnet.
|
|
53
53
|
*/
|
|
@@ -56,14 +56,14 @@ declare class PrimaryNetworkRewardsService {
|
|
|
56
56
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
57
57
|
*/
|
|
58
58
|
addresses?: string;
|
|
59
|
-
/**
|
|
60
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
61
|
-
*/
|
|
62
|
-
pageSize?: number;
|
|
63
59
|
/**
|
|
64
60
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
65
61
|
*/
|
|
66
62
|
pageToken?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
65
|
+
*/
|
|
66
|
+
pageSize?: number;
|
|
67
67
|
/**
|
|
68
68
|
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
69
69
|
*/
|
|
@@ -5,8 +5,8 @@ class PrimaryNetworkRewardsService {
|
|
|
5
5
|
listPendingPrimaryNetworkRewards({
|
|
6
6
|
network,
|
|
7
7
|
addresses,
|
|
8
|
-
pageSize = 10,
|
|
9
8
|
pageToken,
|
|
9
|
+
pageSize = 10,
|
|
10
10
|
nodeIds,
|
|
11
11
|
sortOrder
|
|
12
12
|
}) {
|
|
@@ -18,8 +18,8 @@ class PrimaryNetworkRewardsService {
|
|
|
18
18
|
},
|
|
19
19
|
query: {
|
|
20
20
|
"addresses": addresses,
|
|
21
|
-
"pageSize": pageSize,
|
|
22
21
|
"pageToken": pageToken,
|
|
22
|
+
"pageSize": pageSize,
|
|
23
23
|
"nodeIds": nodeIds,
|
|
24
24
|
"sortOrder": sortOrder
|
|
25
25
|
}
|
|
@@ -28,8 +28,8 @@ class PrimaryNetworkRewardsService {
|
|
|
28
28
|
listHistoricalPrimaryNetworkRewards({
|
|
29
29
|
network,
|
|
30
30
|
addresses,
|
|
31
|
-
pageSize = 10,
|
|
32
31
|
pageToken,
|
|
32
|
+
pageSize = 10,
|
|
33
33
|
nodeIds,
|
|
34
34
|
sortOrder,
|
|
35
35
|
currency
|
|
@@ -42,8 +42,8 @@ class PrimaryNetworkRewardsService {
|
|
|
42
42
|
},
|
|
43
43
|
query: {
|
|
44
44
|
"addresses": addresses,
|
|
45
|
-
"pageSize": pageSize,
|
|
46
45
|
"pageToken": pageToken,
|
|
46
|
+
"pageSize": pageSize,
|
|
47
47
|
"nodeIds": nodeIds,
|
|
48
48
|
"sortOrder": sortOrder,
|
|
49
49
|
"currency": currency
|
|
@@ -70,19 +70,19 @@ declare class PrimaryNetworkService {
|
|
|
70
70
|
* @returns ListBlockchainsResponse
|
|
71
71
|
* @throws ApiError
|
|
72
72
|
*/
|
|
73
|
-
listBlockchains({ network,
|
|
73
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
74
74
|
/**
|
|
75
75
|
* Either mainnet or a testnet.
|
|
76
76
|
*/
|
|
77
77
|
network: Network;
|
|
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
78
|
/**
|
|
83
79
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
84
80
|
*/
|
|
85
81
|
pageToken?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
84
|
+
*/
|
|
85
|
+
pageSize?: number;
|
|
86
86
|
/**
|
|
87
87
|
* 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.
|
|
88
88
|
*/
|
|
@@ -94,19 +94,19 @@ declare class PrimaryNetworkService {
|
|
|
94
94
|
* @returns ListSubnetsResponse
|
|
95
95
|
* @throws ApiError
|
|
96
96
|
*/
|
|
97
|
-
listSubnets({ network,
|
|
97
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
98
98
|
/**
|
|
99
99
|
* Either mainnet or a testnet.
|
|
100
100
|
*/
|
|
101
101
|
network: Network;
|
|
102
|
-
/**
|
|
103
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
104
|
-
*/
|
|
105
|
-
pageSize?: number;
|
|
106
102
|
/**
|
|
107
103
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
108
104
|
*/
|
|
109
105
|
pageToken?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
108
|
+
*/
|
|
109
|
+
pageSize?: number;
|
|
110
110
|
/**
|
|
111
111
|
* 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.
|
|
112
112
|
*/
|
|
@@ -118,19 +118,19 @@ declare class PrimaryNetworkService {
|
|
|
118
118
|
* @returns ListValidatorDetailsResponse
|
|
119
119
|
* @throws ApiError
|
|
120
120
|
*/
|
|
121
|
-
listValidators({ network,
|
|
121
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
122
122
|
/**
|
|
123
123
|
* Either mainnet or a testnet.
|
|
124
124
|
*/
|
|
125
125
|
network: Network;
|
|
126
|
-
/**
|
|
127
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
128
|
-
*/
|
|
129
|
-
pageSize?: number;
|
|
130
126
|
/**
|
|
131
127
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
132
128
|
*/
|
|
133
129
|
pageToken?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
132
|
+
*/
|
|
133
|
+
pageSize?: number;
|
|
134
134
|
/**
|
|
135
135
|
* A comma separated list of node ids to filter by.
|
|
136
136
|
*/
|
|
@@ -146,27 +146,27 @@ declare class PrimaryNetworkService {
|
|
|
146
146
|
/**
|
|
147
147
|
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
148
148
|
*/
|
|
149
|
-
minDelegationCapacity?:
|
|
149
|
+
minDelegationCapacity?: string;
|
|
150
150
|
/**
|
|
151
151
|
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
152
152
|
*/
|
|
153
|
-
maxDelegationCapacity?:
|
|
153
|
+
maxDelegationCapacity?: string;
|
|
154
154
|
/**
|
|
155
155
|
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
156
156
|
*/
|
|
157
|
-
minTimeRemaining?:
|
|
157
|
+
minTimeRemaining?: number;
|
|
158
158
|
/**
|
|
159
159
|
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
160
160
|
*/
|
|
161
|
-
maxTimeRemaining?:
|
|
161
|
+
maxTimeRemaining?: number;
|
|
162
162
|
/**
|
|
163
163
|
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
164
164
|
*/
|
|
165
|
-
minFeePercentage?:
|
|
165
|
+
minFeePercentage?: number;
|
|
166
166
|
/**
|
|
167
167
|
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
168
168
|
*/
|
|
169
|
-
maxFeePercentage?:
|
|
169
|
+
maxFeePercentage?: number;
|
|
170
170
|
/**
|
|
171
171
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
172
172
|
*/
|
|
@@ -178,7 +178,7 @@ declare class PrimaryNetworkService {
|
|
|
178
178
|
* @returns ListValidatorDetailsResponse
|
|
179
179
|
* @throws ApiError
|
|
180
180
|
*/
|
|
181
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
181
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
182
182
|
/**
|
|
183
183
|
* Either mainnet or a testnet.
|
|
184
184
|
*/
|
|
@@ -187,14 +187,14 @@ declare class PrimaryNetworkService {
|
|
|
187
187
|
* A primary network (P or X chain) nodeId.
|
|
188
188
|
*/
|
|
189
189
|
nodeId: string;
|
|
190
|
-
/**
|
|
191
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
192
|
-
*/
|
|
193
|
-
pageSize?: number;
|
|
194
190
|
/**
|
|
195
191
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
196
192
|
*/
|
|
197
193
|
pageToken?: string;
|
|
194
|
+
/**
|
|
195
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
196
|
+
*/
|
|
197
|
+
pageSize?: number;
|
|
198
198
|
/**
|
|
199
199
|
* 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.
|
|
200
200
|
*/
|
|
@@ -210,19 +210,19 @@ declare class PrimaryNetworkService {
|
|
|
210
210
|
* @returns ListDelegatorDetailsResponse
|
|
211
211
|
* @throws ApiError
|
|
212
212
|
*/
|
|
213
|
-
listDelegators({ network,
|
|
213
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
214
214
|
/**
|
|
215
215
|
* Either mainnet or a testnet.
|
|
216
216
|
*/
|
|
217
217
|
network: Network;
|
|
218
|
-
/**
|
|
219
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
220
|
-
*/
|
|
221
|
-
pageSize?: number;
|
|
222
218
|
/**
|
|
223
219
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
224
220
|
*/
|
|
225
221
|
pageToken?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
224
|
+
*/
|
|
225
|
+
pageSize?: number;
|
|
226
226
|
/**
|
|
227
227
|
* A comma separated list of reward addresses to filter by.
|
|
228
228
|
*/
|