@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.32aadf8.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 +1217 -440
- package/dist/index.js +532 -180
- package/esm/generated/Glacier.d.ts +8 -0
- package/esm/generated/Glacier.js +12 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +41 -36
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +25 -9
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +2 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +2 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +13 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -4
- package/esm/generated/models/PChainTransactionType.js +8 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
- package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- 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/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +25 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -0
- 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 +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +20 -1
- package/esm/generated/services/EvmContractsService.js +16 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +90 -68
- package/esm/generated/services/EvmTransactionsService.js +33 -46
- package/esm/generated/services/NfTsService.d.ts +27 -2
- package/esm/generated/services/NfTsService.js +19 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
- package/esm/generated/services/PrimaryNetworkService.js +26 -14
- 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/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +44 -3
- package/esm/index.js +22 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -22,32 +22,19 @@ 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",
|
|
30
|
-
url: "/v1/chains/{chainId}/
|
|
30
|
+
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
31
31
|
path: {
|
|
32
32
|
"chainId": chainId,
|
|
33
33
|
"address": address
|
|
34
34
|
},
|
|
35
35
|
query: {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
getContractMetadata({
|
|
42
|
-
chainId,
|
|
43
|
-
address
|
|
44
|
-
}) {
|
|
45
|
-
return this.httpRequest.request({
|
|
46
|
-
method: "GET",
|
|
47
|
-
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
48
|
-
path: {
|
|
49
|
-
"chainId": chainId,
|
|
50
|
-
"address": address
|
|
36
|
+
"pageToken": pageToken,
|
|
37
|
+
"pageSize": pageSize
|
|
51
38
|
}
|
|
52
39
|
});
|
|
53
40
|
}
|
|
@@ -56,8 +43,8 @@ class EvmTransactionsService {
|
|
|
56
43
|
address,
|
|
57
44
|
startBlock,
|
|
58
45
|
endBlock,
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
pageToken,
|
|
47
|
+
pageSize = 10
|
|
61
48
|
}) {
|
|
62
49
|
return this.httpRequest.request({
|
|
63
50
|
method: "GET",
|
|
@@ -69,16 +56,16 @@ class EvmTransactionsService {
|
|
|
69
56
|
query: {
|
|
70
57
|
"startBlock": startBlock,
|
|
71
58
|
"endBlock": endBlock,
|
|
72
|
-
"
|
|
73
|
-
"
|
|
59
|
+
"pageToken": pageToken,
|
|
60
|
+
"pageSize": pageSize
|
|
74
61
|
}
|
|
75
62
|
});
|
|
76
63
|
}
|
|
77
64
|
listTransactions({
|
|
78
65
|
chainId,
|
|
79
66
|
address,
|
|
80
|
-
pageSize = 10,
|
|
81
67
|
pageToken,
|
|
68
|
+
pageSize = 10,
|
|
82
69
|
startBlock,
|
|
83
70
|
endBlock,
|
|
84
71
|
sortOrder
|
|
@@ -91,8 +78,8 @@ class EvmTransactionsService {
|
|
|
91
78
|
"address": address
|
|
92
79
|
},
|
|
93
80
|
query: {
|
|
94
|
-
"pageSize": pageSize,
|
|
95
81
|
"pageToken": pageToken,
|
|
82
|
+
"pageSize": pageSize,
|
|
96
83
|
"startBlock": startBlock,
|
|
97
84
|
"endBlock": endBlock,
|
|
98
85
|
"sortOrder": sortOrder
|
|
@@ -104,8 +91,8 @@ class EvmTransactionsService {
|
|
|
104
91
|
address,
|
|
105
92
|
startBlock,
|
|
106
93
|
endBlock,
|
|
107
|
-
|
|
108
|
-
|
|
94
|
+
pageToken,
|
|
95
|
+
pageSize = 10
|
|
109
96
|
}) {
|
|
110
97
|
return this.httpRequest.request({
|
|
111
98
|
method: "GET",
|
|
@@ -117,8 +104,8 @@ class EvmTransactionsService {
|
|
|
117
104
|
query: {
|
|
118
105
|
"startBlock": startBlock,
|
|
119
106
|
"endBlock": endBlock,
|
|
120
|
-
"
|
|
121
|
-
"
|
|
107
|
+
"pageToken": pageToken,
|
|
108
|
+
"pageSize": pageSize
|
|
122
109
|
}
|
|
123
110
|
});
|
|
124
111
|
}
|
|
@@ -127,8 +114,8 @@ class EvmTransactionsService {
|
|
|
127
114
|
address,
|
|
128
115
|
startBlock,
|
|
129
116
|
endBlock,
|
|
130
|
-
|
|
131
|
-
|
|
117
|
+
pageToken,
|
|
118
|
+
pageSize = 10
|
|
132
119
|
}) {
|
|
133
120
|
return this.httpRequest.request({
|
|
134
121
|
method: "GET",
|
|
@@ -140,8 +127,8 @@ class EvmTransactionsService {
|
|
|
140
127
|
query: {
|
|
141
128
|
"startBlock": startBlock,
|
|
142
129
|
"endBlock": endBlock,
|
|
143
|
-
"
|
|
144
|
-
"
|
|
130
|
+
"pageToken": pageToken,
|
|
131
|
+
"pageSize": pageSize
|
|
145
132
|
}
|
|
146
133
|
});
|
|
147
134
|
}
|
|
@@ -150,8 +137,8 @@ class EvmTransactionsService {
|
|
|
150
137
|
address,
|
|
151
138
|
startBlock,
|
|
152
139
|
endBlock,
|
|
153
|
-
|
|
154
|
-
|
|
140
|
+
pageToken,
|
|
141
|
+
pageSize = 10
|
|
155
142
|
}) {
|
|
156
143
|
return this.httpRequest.request({
|
|
157
144
|
method: "GET",
|
|
@@ -163,8 +150,8 @@ class EvmTransactionsService {
|
|
|
163
150
|
query: {
|
|
164
151
|
"startBlock": startBlock,
|
|
165
152
|
"endBlock": endBlock,
|
|
166
|
-
"
|
|
167
|
-
"
|
|
153
|
+
"pageToken": pageToken,
|
|
154
|
+
"pageSize": pageSize
|
|
168
155
|
}
|
|
169
156
|
});
|
|
170
157
|
}
|
|
@@ -173,8 +160,8 @@ class EvmTransactionsService {
|
|
|
173
160
|
address,
|
|
174
161
|
startBlock,
|
|
175
162
|
endBlock,
|
|
176
|
-
|
|
177
|
-
|
|
163
|
+
pageToken,
|
|
164
|
+
pageSize = 10
|
|
178
165
|
}) {
|
|
179
166
|
return this.httpRequest.request({
|
|
180
167
|
method: "GET",
|
|
@@ -186,8 +173,8 @@ class EvmTransactionsService {
|
|
|
186
173
|
query: {
|
|
187
174
|
"startBlock": startBlock,
|
|
188
175
|
"endBlock": endBlock,
|
|
189
|
-
"
|
|
190
|
-
"
|
|
176
|
+
"pageToken": pageToken,
|
|
177
|
+
"pageSize": pageSize
|
|
191
178
|
}
|
|
192
179
|
});
|
|
193
180
|
}
|
|
@@ -196,8 +183,8 @@ class EvmTransactionsService {
|
|
|
196
183
|
address,
|
|
197
184
|
startBlock,
|
|
198
185
|
endBlock,
|
|
199
|
-
|
|
200
|
-
|
|
186
|
+
pageToken,
|
|
187
|
+
pageSize = 10
|
|
201
188
|
}) {
|
|
202
189
|
return this.httpRequest.request({
|
|
203
190
|
method: "GET",
|
|
@@ -209,8 +196,8 @@ class EvmTransactionsService {
|
|
|
209
196
|
query: {
|
|
210
197
|
"startBlock": startBlock,
|
|
211
198
|
"endBlock": endBlock,
|
|
212
|
-
"
|
|
213
|
-
"
|
|
199
|
+
"pageToken": pageToken,
|
|
200
|
+
"pageSize": pageSize
|
|
214
201
|
}
|
|
215
202
|
});
|
|
216
203
|
}
|
|
@@ -242,8 +229,8 @@ class EvmTransactionsService {
|
|
|
242
229
|
}
|
|
243
230
|
listLatestTransactions({
|
|
244
231
|
chainId,
|
|
245
|
-
pageSize = 10,
|
|
246
232
|
pageToken,
|
|
233
|
+
pageSize = 10,
|
|
247
234
|
status
|
|
248
235
|
}) {
|
|
249
236
|
return this.httpRequest.request({
|
|
@@ -253,8 +240,8 @@ class EvmTransactionsService {
|
|
|
253
240
|
"chainId": chainId
|
|
254
241
|
},
|
|
255
242
|
query: {
|
|
256
|
-
"pageSize": pageSize,
|
|
257
243
|
"pageToken": pageToken,
|
|
244
|
+
"pageSize": pageSize,
|
|
258
245
|
"status": status
|
|
259
246
|
}
|
|
260
247
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
2
2
|
import { Erc721Token } from '../models/Erc721Token.js';
|
|
3
|
+
import { ListNftTokens } from '../models/ListNftTokens.js';
|
|
3
4
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
5
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
5
6
|
|
|
@@ -14,7 +15,7 @@ declare class NfTsService {
|
|
|
14
15
|
*/
|
|
15
16
|
reindexNft({ chainId, address, tokenId, }: {
|
|
16
17
|
/**
|
|
17
|
-
* 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.
|
|
18
19
|
*/
|
|
19
20
|
chainId: string;
|
|
20
21
|
/**
|
|
@@ -26,6 +27,30 @@ declare class NfTsService {
|
|
|
26
27
|
*/
|
|
27
28
|
tokenId: string;
|
|
28
29
|
}): CancelablePromise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* List tokens
|
|
32
|
+
* Lists tokens for an NFT contract.
|
|
33
|
+
* @returns ListNftTokens
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
37
|
+
/**
|
|
38
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
|
+
*/
|
|
40
|
+
chainId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Contract address on the relevant chain.
|
|
43
|
+
*/
|
|
44
|
+
address: string;
|
|
45
|
+
/**
|
|
46
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
47
|
+
*/
|
|
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
|
+
}): CancelablePromise<ListNftTokens>;
|
|
29
54
|
/**
|
|
30
55
|
* Get token details
|
|
31
56
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -34,7 +59,7 @@ declare class NfTsService {
|
|
|
34
59
|
*/
|
|
35
60
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
36
61
|
/**
|
|
37
|
-
* 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.
|
|
38
63
|
*/
|
|
39
64
|
chainId: string;
|
|
40
65
|
/**
|
|
@@ -17,6 +17,25 @@ class NfTsService {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
listTokens({
|
|
21
|
+
chainId,
|
|
22
|
+
address,
|
|
23
|
+
pageToken,
|
|
24
|
+
pageSize = 10
|
|
25
|
+
}) {
|
|
26
|
+
return this.httpRequest.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
29
|
+
path: {
|
|
30
|
+
"chainId": chainId,
|
|
31
|
+
"address": address
|
|
32
|
+
},
|
|
33
|
+
query: {
|
|
34
|
+
"pageToken": pageToken,
|
|
35
|
+
"pageSize": pageSize
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
20
39
|
getTokenDetails({
|
|
21
40
|
chainId,
|
|
22
41
|
address,
|
|
@@ -7,17 +7,6 @@ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
|
7
7
|
declare class OperationsService {
|
|
8
8
|
readonly httpRequest: BaseHttpRequest;
|
|
9
9
|
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
-
/**
|
|
11
|
-
* Create transaction export operation
|
|
12
|
-
* Trigger a transaction export operation with given parameters.
|
|
13
|
-
*
|
|
14
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
15
|
-
* @returns OperationStatusResponse
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
postTransactionExportJob({ requestBody, }: {
|
|
19
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
20
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
21
10
|
/**
|
|
22
11
|
* Get operation
|
|
23
12
|
* Gets operation details for the given operation id.
|
|
@@ -30,6 +19,17 @@ declare class OperationsService {
|
|
|
30
19
|
*/
|
|
31
20
|
operationId: string;
|
|
32
21
|
}): CancelablePromise<OperationStatusResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create transaction export operation
|
|
24
|
+
* Trigger a transaction export operation with given parameters.
|
|
25
|
+
*
|
|
26
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
27
|
+
* @returns OperationStatusResponse
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
postTransactionExportJob({ requestBody, }: {
|
|
31
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
32
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { OperationsService };
|
|
@@ -2,16 +2,6 @@ class OperationsService {
|
|
|
2
2
|
constructor(httpRequest) {
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
|
-
postTransactionExportJob({
|
|
6
|
-
requestBody
|
|
7
|
-
}) {
|
|
8
|
-
return this.httpRequest.request({
|
|
9
|
-
method: "POST",
|
|
10
|
-
url: "/v1/operations/transactions:export",
|
|
11
|
-
body: requestBody,
|
|
12
|
-
mediaType: "application/json"
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
5
|
getOperationResult({
|
|
16
6
|
operationId
|
|
17
7
|
}) {
|
|
@@ -23,6 +13,16 @@ class OperationsService {
|
|
|
23
13
|
}
|
|
24
14
|
});
|
|
25
15
|
}
|
|
16
|
+
postTransactionExportJob({
|
|
17
|
+
requestBody
|
|
18
|
+
}) {
|
|
19
|
+
return this.httpRequest.request({
|
|
20
|
+
method: "POST",
|
|
21
|
+
url: "/v1/operations/transactions:export",
|
|
22
|
+
body: requestBody,
|
|
23
|
+
mediaType: "application/json"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { OperationsService };
|
|
@@ -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,23 +15,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
14
15
|
* @returns ListPendingRewardsResponse
|
|
15
16
|
* @throws ApiError
|
|
16
17
|
*/
|
|
17
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
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;
|
|
27
|
+
/**
|
|
28
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
29
|
+
*/
|
|
30
|
+
pageToken?: string;
|
|
26
31
|
/**
|
|
27
32
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
28
33
|
*/
|
|
29
34
|
pageSize?: number;
|
|
30
35
|
/**
|
|
31
|
-
* A
|
|
36
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
32
37
|
*/
|
|
33
|
-
|
|
38
|
+
nodeIds?: string;
|
|
34
39
|
/**
|
|
35
40
|
* 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.
|
|
36
41
|
*/
|
|
@@ -42,27 +47,35 @@ declare class PrimaryNetworkRewardsService {
|
|
|
42
47
|
* @returns ListHistoricalRewardsResponse
|
|
43
48
|
* @throws ApiError
|
|
44
49
|
*/
|
|
45
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
50
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
46
51
|
/**
|
|
47
52
|
* Either mainnet or a testnet.
|
|
48
53
|
*/
|
|
49
54
|
network: Network;
|
|
50
55
|
/**
|
|
51
|
-
* 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.
|
|
52
57
|
*/
|
|
53
58
|
addresses?: string;
|
|
59
|
+
/**
|
|
60
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
61
|
+
*/
|
|
62
|
+
pageToken?: string;
|
|
54
63
|
/**
|
|
55
64
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
56
65
|
*/
|
|
57
66
|
pageSize?: number;
|
|
58
67
|
/**
|
|
59
|
-
* A
|
|
68
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
60
69
|
*/
|
|
61
|
-
|
|
70
|
+
nodeIds?: string;
|
|
62
71
|
/**
|
|
63
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.
|
|
64
73
|
*/
|
|
65
74
|
sortOrder?: SortOrder;
|
|
75
|
+
/**
|
|
76
|
+
* The currency that return values should use. Defaults to USD.
|
|
77
|
+
*/
|
|
78
|
+
currency?: CurrencyCode;
|
|
66
79
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
67
80
|
}
|
|
68
81
|
|
|
@@ -5,8 +5,9 @@ class PrimaryNetworkRewardsService {
|
|
|
5
5
|
listPendingPrimaryNetworkRewards({
|
|
6
6
|
network,
|
|
7
7
|
addresses,
|
|
8
|
-
pageSize = 10,
|
|
9
8
|
pageToken,
|
|
9
|
+
pageSize = 10,
|
|
10
|
+
nodeIds,
|
|
10
11
|
sortOrder
|
|
11
12
|
}) {
|
|
12
13
|
return this.httpRequest.request({
|
|
@@ -17,8 +18,9 @@ class PrimaryNetworkRewardsService {
|
|
|
17
18
|
},
|
|
18
19
|
query: {
|
|
19
20
|
"addresses": addresses,
|
|
20
|
-
"pageSize": pageSize,
|
|
21
21
|
"pageToken": pageToken,
|
|
22
|
+
"pageSize": pageSize,
|
|
23
|
+
"nodeIds": nodeIds,
|
|
22
24
|
"sortOrder": sortOrder
|
|
23
25
|
}
|
|
24
26
|
});
|
|
@@ -26,9 +28,11 @@ class PrimaryNetworkRewardsService {
|
|
|
26
28
|
listHistoricalPrimaryNetworkRewards({
|
|
27
29
|
network,
|
|
28
30
|
addresses,
|
|
29
|
-
pageSize = 10,
|
|
30
31
|
pageToken,
|
|
31
|
-
|
|
32
|
+
pageSize = 10,
|
|
33
|
+
nodeIds,
|
|
34
|
+
sortOrder,
|
|
35
|
+
currency
|
|
32
36
|
}) {
|
|
33
37
|
return this.httpRequest.request({
|
|
34
38
|
method: "GET",
|
|
@@ -38,9 +42,11 @@ class PrimaryNetworkRewardsService {
|
|
|
38
42
|
},
|
|
39
43
|
query: {
|
|
40
44
|
"addresses": addresses,
|
|
41
|
-
"pageSize": pageSize,
|
|
42
45
|
"pageToken": pageToken,
|
|
43
|
-
"
|
|
46
|
+
"pageSize": pageSize,
|
|
47
|
+
"nodeIds": nodeIds,
|
|
48
|
+
"sortOrder": sortOrder,
|
|
49
|
+
"currency": currency
|
|
44
50
|
}
|
|
45
51
|
});
|
|
46
52
|
}
|