@avalabs/glacier-sdk 2.8.0-canary.cfb38f5.0 → 2.8.0-canary.de70f7d.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.d.ts +411 -307
- package/dist/index.js +136 -110
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
- package/esm/generated/models/Asset.d.ts +3 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
- package/esm/generated/models/PChainTransaction.d.ts +4 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -5
- package/esm/generated/models/PChainTransactionType.js +6 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +2 -2
- 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/PrimaryNetworkTxType.d.ts +6 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/WebhookResponse.d.ts +2 -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 +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +8 -8
- 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 +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +41 -41
- package/esm/generated/services/PrimaryNetworkService.js +20 -20
- 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/index.d.ts +4 -1
- package/esm/index.js +3 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -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
|
});
|
|
@@ -15,7 +15,7 @@ declare class NfTsService {
|
|
|
15
15
|
*/
|
|
16
16
|
reindexNft({ chainId, address, tokenId, }: {
|
|
17
17
|
/**
|
|
18
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
19
19
|
*/
|
|
20
20
|
chainId: string;
|
|
21
21
|
/**
|
|
@@ -33,23 +33,23 @@ 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
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
39
|
*/
|
|
40
40
|
chainId: string;
|
|
41
41
|
/**
|
|
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
|
|
@@ -59,7 +59,7 @@ declare class NfTsService {
|
|
|
59
59
|
*/
|
|
60
60
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
61
61
|
/**
|
|
62
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
62
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
63
63
|
*/
|
|
64
64
|
chainId: string;
|
|
65
65
|
/**
|
|
@@ -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
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CurrencyCode } from '../models/CurrencyCode.js';
|
|
1
2
|
import { ListHistoricalRewardsResponse } from '../models/ListHistoricalRewardsResponse.js';
|
|
2
3
|
import { ListPendingRewardsResponse } from '../models/ListPendingRewardsResponse.js';
|
|
3
4
|
import { Network } from '../models/Network.js';
|
|
@@ -14,25 +15,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
14
15
|
* @returns ListPendingRewardsResponse
|
|
15
16
|
* @throws ApiError
|
|
16
17
|
*/
|
|
17
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
18
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
18
19
|
/**
|
|
19
20
|
* Either mainnet or a testnet.
|
|
20
21
|
*/
|
|
21
22
|
network: Network;
|
|
22
23
|
/**
|
|
23
|
-
* 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".
|
|
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". One of addresses or nodeIds is required.
|
|
24
25
|
*/
|
|
25
26
|
addresses?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
28
|
-
*/
|
|
29
|
-
pageSize?: number;
|
|
30
27
|
/**
|
|
31
28
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
32
29
|
*/
|
|
33
30
|
pageToken?: string;
|
|
34
31
|
/**
|
|
35
|
-
*
|
|
32
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
33
|
+
*/
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
/**
|
|
36
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
36
37
|
*/
|
|
37
38
|
nodeIds?: string;
|
|
38
39
|
/**
|
|
@@ -46,31 +47,35 @@ declare class PrimaryNetworkRewardsService {
|
|
|
46
47
|
* @returns ListHistoricalRewardsResponse
|
|
47
48
|
* @throws ApiError
|
|
48
49
|
*/
|
|
49
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
50
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
50
51
|
/**
|
|
51
52
|
* Either mainnet or a testnet.
|
|
52
53
|
*/
|
|
53
54
|
network: Network;
|
|
54
55
|
/**
|
|
55
|
-
* 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".
|
|
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.
|
|
56
57
|
*/
|
|
57
58
|
addresses?: string;
|
|
58
|
-
/**
|
|
59
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
60
|
-
*/
|
|
61
|
-
pageSize?: number;
|
|
62
59
|
/**
|
|
63
60
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
64
61
|
*/
|
|
65
62
|
pageToken?: string;
|
|
66
63
|
/**
|
|
67
|
-
*
|
|
64
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
65
|
+
*/
|
|
66
|
+
pageSize?: number;
|
|
67
|
+
/**
|
|
68
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
68
69
|
*/
|
|
69
70
|
nodeIds?: string;
|
|
70
71
|
/**
|
|
71
72
|
* 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.
|
|
72
73
|
*/
|
|
73
74
|
sortOrder?: SortOrder;
|
|
75
|
+
/**
|
|
76
|
+
* The currency that return values should use. Defaults to USD.
|
|
77
|
+
*/
|
|
78
|
+
currency?: CurrencyCode;
|
|
74
79
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
75
80
|
}
|
|
76
81
|
|
|
@@ -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,10 +28,11 @@ class PrimaryNetworkRewardsService {
|
|
|
28
28
|
listHistoricalPrimaryNetworkRewards({
|
|
29
29
|
network,
|
|
30
30
|
addresses,
|
|
31
|
-
pageSize = 10,
|
|
32
31
|
pageToken,
|
|
32
|
+
pageSize = 10,
|
|
33
33
|
nodeIds,
|
|
34
|
-
sortOrder
|
|
34
|
+
sortOrder,
|
|
35
|
+
currency
|
|
35
36
|
}) {
|
|
36
37
|
return this.httpRequest.request({
|
|
37
38
|
method: "GET",
|
|
@@ -41,10 +42,11 @@ class PrimaryNetworkRewardsService {
|
|
|
41
42
|
},
|
|
42
43
|
query: {
|
|
43
44
|
"addresses": addresses,
|
|
44
|
-
"pageSize": pageSize,
|
|
45
45
|
"pageToken": pageToken,
|
|
46
|
+
"pageSize": pageSize,
|
|
46
47
|
"nodeIds": nodeIds,
|
|
47
|
-
"sortOrder": sortOrder
|
|
48
|
+
"sortOrder": sortOrder,
|
|
49
|
+
"currency": currency
|
|
48
50
|
}
|
|
49
51
|
});
|
|
50
52
|
}
|
|
@@ -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,55 +118,55 @@ declare class PrimaryNetworkService {
|
|
|
118
118
|
* @returns ListValidatorDetailsResponse
|
|
119
119
|
* @throws ApiError
|
|
120
120
|
*/
|
|
121
|
-
listValidators({ network, pageSize,
|
|
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
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
128
|
+
*/
|
|
129
|
+
pageToken?: string;
|
|
126
130
|
/**
|
|
127
131
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
128
132
|
*/
|
|
129
133
|
pageSize?: number;
|
|
130
134
|
/**
|
|
131
|
-
* A
|
|
135
|
+
* A comma separated list of node ids to filter by.
|
|
132
136
|
*/
|
|
133
|
-
|
|
137
|
+
nodeIds?: string;
|
|
134
138
|
/**
|
|
135
|
-
* The
|
|
139
|
+
* 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.
|
|
136
140
|
*/
|
|
137
|
-
|
|
141
|
+
sortOrder?: SortOrder;
|
|
138
142
|
/**
|
|
139
|
-
*
|
|
143
|
+
* Validation status of the node.
|
|
140
144
|
*/
|
|
141
|
-
|
|
145
|
+
validationStatus?: ValidationStatusType;
|
|
142
146
|
/**
|
|
143
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
|
|
144
148
|
*/
|
|
145
|
-
minDelegationCapacity?:
|
|
149
|
+
minDelegationCapacity?: string;
|
|
146
150
|
/**
|
|
147
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.
|
|
148
152
|
*/
|
|
149
|
-
maxDelegationCapacity?:
|
|
153
|
+
maxDelegationCapacity?: string;
|
|
150
154
|
/**
|
|
151
|
-
* The minimum
|
|
152
|
-
*/
|
|
153
|
-
minFeePercentage?: any;
|
|
154
|
-
/**
|
|
155
|
-
* 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.
|
|
155
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
156
156
|
*/
|
|
157
|
-
|
|
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
|
-
|
|
161
|
+
maxTimeRemaining?: number;
|
|
162
162
|
/**
|
|
163
|
-
* The
|
|
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
|
-
|
|
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
|
-
|
|
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
|
*/
|