@avalabs/glacier-sdk 2.8.0-canary.c83789f.0 → 2.8.0-canary.c929fd2.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 +1096 -559
- package/dist/index.js +369 -116
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- 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/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- 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/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- 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 +5 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -4
- package/esm/generated/models/PChainTransactionType.js +6 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- 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/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -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/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -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/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +17 -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/XChainAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +74 -0
- package/esm/generated/services/DefaultService.js +61 -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 +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +33 -33
- package/esm/generated/services/NfTsService.d.ts +23 -16
- package/esm/generated/services/NfTsService.js +15 -9
- 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/index.d.ts +23 -1
- package/esm/index.js +19 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
|
|
|
24
24
|
*/
|
|
25
25
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
26
26
|
/**
|
|
27
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
27
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
28
28
|
*/
|
|
29
29
|
chainId: string;
|
|
30
30
|
/**
|
|
@@ -42,23 +42,23 @@ declare class EvmTransactionsService {
|
|
|
42
42
|
* @returns ListContractsResponse
|
|
43
43
|
* @throws ApiError
|
|
44
44
|
*/
|
|
45
|
-
listContractDeployments({ chainId, address,
|
|
45
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
46
46
|
/**
|
|
47
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
47
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
48
48
|
*/
|
|
49
49
|
chainId: string;
|
|
50
50
|
/**
|
|
51
51
|
* A wallet address.
|
|
52
52
|
*/
|
|
53
53
|
address: 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
54
|
/**
|
|
59
55
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
60
56
|
*/
|
|
61
57
|
pageToken?: 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
62
|
}): CancelablePromise<ListContractsResponse>;
|
|
63
63
|
/**
|
|
64
64
|
* List ERC transfers
|
|
@@ -66,25 +66,31 @@ declare class EvmTransactionsService {
|
|
|
66
66
|
* @returns ListTransfersResponse
|
|
67
67
|
* @throws ApiError
|
|
68
68
|
*/
|
|
69
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
69
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
70
70
|
/**
|
|
71
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
71
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
72
72
|
*/
|
|
73
73
|
chainId: string;
|
|
74
74
|
/**
|
|
75
75
|
* A wallet address.
|
|
76
76
|
*/
|
|
77
77
|
address: string;
|
|
78
|
+
/**
|
|
79
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
80
|
+
*/
|
|
78
81
|
startBlock?: number;
|
|
79
|
-
endBlock?: number;
|
|
80
82
|
/**
|
|
81
|
-
* The
|
|
83
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
82
84
|
*/
|
|
83
|
-
|
|
85
|
+
endBlock?: number;
|
|
84
86
|
/**
|
|
85
87
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
86
88
|
*/
|
|
87
89
|
pageToken?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
92
|
+
*/
|
|
93
|
+
pageSize?: number;
|
|
88
94
|
}): CancelablePromise<ListTransfersResponse>;
|
|
89
95
|
/**
|
|
90
96
|
* List transactions
|
|
@@ -94,24 +100,30 @@ declare class EvmTransactionsService {
|
|
|
94
100
|
* @returns ListTransactionDetailsResponse
|
|
95
101
|
* @throws ApiError
|
|
96
102
|
*/
|
|
97
|
-
listTransactions({ chainId, address,
|
|
103
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
98
104
|
/**
|
|
99
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
105
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
100
106
|
*/
|
|
101
107
|
chainId: string;
|
|
102
108
|
/**
|
|
103
109
|
* A wallet address.
|
|
104
110
|
*/
|
|
105
111
|
address: string;
|
|
112
|
+
/**
|
|
113
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
114
|
+
*/
|
|
115
|
+
pageToken?: string;
|
|
106
116
|
/**
|
|
107
117
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
108
118
|
*/
|
|
109
119
|
pageSize?: number;
|
|
110
120
|
/**
|
|
111
|
-
*
|
|
121
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
112
122
|
*/
|
|
113
|
-
pageToken?: string;
|
|
114
123
|
startBlock?: number;
|
|
124
|
+
/**
|
|
125
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
126
|
+
*/
|
|
115
127
|
endBlock?: number;
|
|
116
128
|
/**
|
|
117
129
|
* 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.
|
|
@@ -124,25 +136,31 @@ declare class EvmTransactionsService {
|
|
|
124
136
|
* @returns ListNativeTransactionsResponse
|
|
125
137
|
* @throws ApiError
|
|
126
138
|
*/
|
|
127
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
139
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
128
140
|
/**
|
|
129
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
130
142
|
*/
|
|
131
143
|
chainId: string;
|
|
132
144
|
/**
|
|
133
145
|
* A wallet address.
|
|
134
146
|
*/
|
|
135
147
|
address: string;
|
|
148
|
+
/**
|
|
149
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
150
|
+
*/
|
|
136
151
|
startBlock?: number;
|
|
137
|
-
endBlock?: number;
|
|
138
152
|
/**
|
|
139
|
-
* The
|
|
153
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
140
154
|
*/
|
|
141
|
-
|
|
155
|
+
endBlock?: number;
|
|
142
156
|
/**
|
|
143
157
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
144
158
|
*/
|
|
145
159
|
pageToken?: string;
|
|
160
|
+
/**
|
|
161
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
162
|
+
*/
|
|
163
|
+
pageSize?: number;
|
|
146
164
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
147
165
|
/**
|
|
148
166
|
* List ERC-20 transfers
|
|
@@ -150,25 +168,31 @@ declare class EvmTransactionsService {
|
|
|
150
168
|
* @returns ListErc20TransactionsResponse
|
|
151
169
|
* @throws ApiError
|
|
152
170
|
*/
|
|
153
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
171
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
154
172
|
/**
|
|
155
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
173
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
174
|
*/
|
|
157
175
|
chainId: string;
|
|
158
176
|
/**
|
|
159
177
|
* A wallet address.
|
|
160
178
|
*/
|
|
161
179
|
address: string;
|
|
180
|
+
/**
|
|
181
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
182
|
+
*/
|
|
162
183
|
startBlock?: number;
|
|
163
|
-
endBlock?: number;
|
|
164
184
|
/**
|
|
165
|
-
* The
|
|
185
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
166
186
|
*/
|
|
167
|
-
|
|
187
|
+
endBlock?: number;
|
|
168
188
|
/**
|
|
169
189
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
170
190
|
*/
|
|
171
191
|
pageToken?: string;
|
|
192
|
+
/**
|
|
193
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
194
|
+
*/
|
|
195
|
+
pageSize?: number;
|
|
172
196
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
173
197
|
/**
|
|
174
198
|
* List ERC-721 transfers
|
|
@@ -176,25 +200,31 @@ declare class EvmTransactionsService {
|
|
|
176
200
|
* @returns ListErc721TransactionsResponse
|
|
177
201
|
* @throws ApiError
|
|
178
202
|
*/
|
|
179
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
203
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
180
204
|
/**
|
|
181
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
205
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
182
206
|
*/
|
|
183
207
|
chainId: string;
|
|
184
208
|
/**
|
|
185
209
|
* A wallet address.
|
|
186
210
|
*/
|
|
187
211
|
address: string;
|
|
212
|
+
/**
|
|
213
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
214
|
+
*/
|
|
188
215
|
startBlock?: number;
|
|
189
|
-
endBlock?: number;
|
|
190
216
|
/**
|
|
191
|
-
* The
|
|
217
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
192
218
|
*/
|
|
193
|
-
|
|
219
|
+
endBlock?: number;
|
|
194
220
|
/**
|
|
195
221
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
196
222
|
*/
|
|
197
223
|
pageToken?: string;
|
|
224
|
+
/**
|
|
225
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
226
|
+
*/
|
|
227
|
+
pageSize?: number;
|
|
198
228
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
199
229
|
/**
|
|
200
230
|
* List ERC-1155 transfers
|
|
@@ -202,25 +232,31 @@ declare class EvmTransactionsService {
|
|
|
202
232
|
* @returns ListErc1155TransactionsResponse
|
|
203
233
|
* @throws ApiError
|
|
204
234
|
*/
|
|
205
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
235
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
206
236
|
/**
|
|
207
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
237
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
208
238
|
*/
|
|
209
239
|
chainId: string;
|
|
210
240
|
/**
|
|
211
241
|
* A wallet address.
|
|
212
242
|
*/
|
|
213
243
|
address: string;
|
|
244
|
+
/**
|
|
245
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
246
|
+
*/
|
|
214
247
|
startBlock?: number;
|
|
215
|
-
endBlock?: number;
|
|
216
248
|
/**
|
|
217
|
-
* The
|
|
249
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
218
250
|
*/
|
|
219
|
-
|
|
251
|
+
endBlock?: number;
|
|
220
252
|
/**
|
|
221
253
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
222
254
|
*/
|
|
223
255
|
pageToken?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
258
|
+
*/
|
|
259
|
+
pageSize?: number;
|
|
224
260
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
225
261
|
/**
|
|
226
262
|
* List internal transactions
|
|
@@ -230,25 +266,31 @@ declare class EvmTransactionsService {
|
|
|
230
266
|
* @returns ListInternalTransactionsResponse
|
|
231
267
|
* @throws ApiError
|
|
232
268
|
*/
|
|
233
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
269
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
234
270
|
/**
|
|
235
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
271
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
236
272
|
*/
|
|
237
273
|
chainId: string;
|
|
238
274
|
/**
|
|
239
275
|
* A wallet address.
|
|
240
276
|
*/
|
|
241
277
|
address: string;
|
|
278
|
+
/**
|
|
279
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
280
|
+
*/
|
|
242
281
|
startBlock?: number;
|
|
243
|
-
endBlock?: number;
|
|
244
282
|
/**
|
|
245
|
-
* The
|
|
283
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
246
284
|
*/
|
|
247
|
-
|
|
285
|
+
endBlock?: number;
|
|
248
286
|
/**
|
|
249
287
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
250
288
|
*/
|
|
251
289
|
pageToken?: string;
|
|
290
|
+
/**
|
|
291
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
292
|
+
*/
|
|
293
|
+
pageSize?: number;
|
|
252
294
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
253
295
|
/**
|
|
254
296
|
* Get transaction
|
|
@@ -258,7 +300,7 @@ declare class EvmTransactionsService {
|
|
|
258
300
|
*/
|
|
259
301
|
getTransaction({ chainId, txHash, }: {
|
|
260
302
|
/**
|
|
261
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
303
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
262
304
|
*/
|
|
263
305
|
chainId: string;
|
|
264
306
|
/**
|
|
@@ -274,7 +316,7 @@ declare class EvmTransactionsService {
|
|
|
274
316
|
*/
|
|
275
317
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
276
318
|
/**
|
|
277
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
319
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
278
320
|
*/
|
|
279
321
|
chainId: string;
|
|
280
322
|
/**
|
|
@@ -288,19 +330,19 @@ declare class EvmTransactionsService {
|
|
|
288
330
|
* @returns ListNativeTransactionsResponse
|
|
289
331
|
* @throws ApiError
|
|
290
332
|
*/
|
|
291
|
-
listLatestTransactions({ chainId,
|
|
333
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
292
334
|
/**
|
|
293
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
335
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
294
336
|
*/
|
|
295
337
|
chainId: string;
|
|
296
|
-
/**
|
|
297
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
298
|
-
*/
|
|
299
|
-
pageSize?: number;
|
|
300
338
|
/**
|
|
301
339
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
302
340
|
*/
|
|
303
341
|
pageToken?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
344
|
+
*/
|
|
345
|
+
pageSize?: number;
|
|
304
346
|
/**
|
|
305
347
|
* A status filter for listed transactions.
|
|
306
348
|
*/
|
|
@@ -22,19 +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
|
-
"
|
|
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
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
2
1
|
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
3
|
-
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
4
2
|
import { Erc721Token } from '../models/Erc721Token.js';
|
|
3
|
+
import { ListNftTokens } from '../models/ListNftTokens.js';
|
|
5
4
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
5
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
6
|
|
|
@@ -16,7 +15,7 @@ declare class NfTsService {
|
|
|
16
15
|
*/
|
|
17
16
|
reindexNft({ chainId, address, tokenId, }: {
|
|
18
17
|
/**
|
|
19
|
-
* 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.
|
|
20
19
|
*/
|
|
21
20
|
chainId: string;
|
|
22
21
|
/**
|
|
@@ -29,14 +28,14 @@ declare class NfTsService {
|
|
|
29
28
|
tokenId: string;
|
|
30
29
|
}): CancelablePromise<any>;
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @returns
|
|
31
|
+
* List tokens
|
|
32
|
+
* Lists tokens for an NFT contract.
|
|
33
|
+
* @returns ListNftTokens
|
|
35
34
|
* @throws ApiError
|
|
36
35
|
*/
|
|
37
|
-
|
|
36
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
38
37
|
/**
|
|
39
|
-
* 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.
|
|
40
39
|
*/
|
|
41
40
|
chainId: string;
|
|
42
41
|
/**
|
|
@@ -44,26 +43,34 @@ declare class NfTsService {
|
|
|
44
43
|
*/
|
|
45
44
|
address: string;
|
|
46
45
|
/**
|
|
47
|
-
*
|
|
46
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
48
47
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
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>;
|
|
51
54
|
/**
|
|
52
|
-
* Get
|
|
53
|
-
* Gets
|
|
55
|
+
* Get token details
|
|
56
|
+
* Gets token details for a specific token of an NFT contract.
|
|
54
57
|
* @returns any
|
|
55
58
|
* @throws ApiError
|
|
56
59
|
*/
|
|
57
|
-
|
|
60
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
58
61
|
/**
|
|
59
|
-
* 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.
|
|
60
63
|
*/
|
|
61
64
|
chainId: string;
|
|
62
65
|
/**
|
|
63
66
|
* Contract address on the relevant chain.
|
|
64
67
|
*/
|
|
65
68
|
address: string;
|
|
66
|
-
|
|
69
|
+
/**
|
|
70
|
+
* TokenId on the contract
|
|
71
|
+
*/
|
|
72
|
+
tokenId: string;
|
|
73
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
export { NfTsService };
|
|
@@ -17,31 +17,37 @@ class NfTsService {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
listTokens({
|
|
21
21
|
chainId,
|
|
22
22
|
address,
|
|
23
|
-
|
|
23
|
+
pageToken,
|
|
24
|
+
pageSize = 10
|
|
24
25
|
}) {
|
|
25
26
|
return this.httpRequest.request({
|
|
26
27
|
method: "GET",
|
|
27
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens
|
|
28
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
28
29
|
path: {
|
|
29
30
|
"chainId": chainId,
|
|
30
|
-
"address": address
|
|
31
|
-
|
|
31
|
+
"address": address
|
|
32
|
+
},
|
|
33
|
+
query: {
|
|
34
|
+
"pageToken": pageToken,
|
|
35
|
+
"pageSize": pageSize
|
|
32
36
|
}
|
|
33
37
|
});
|
|
34
38
|
}
|
|
35
|
-
|
|
39
|
+
getTokenDetails({
|
|
36
40
|
chainId,
|
|
37
|
-
address
|
|
41
|
+
address,
|
|
42
|
+
tokenId
|
|
38
43
|
}) {
|
|
39
44
|
return this.httpRequest.request({
|
|
40
45
|
method: "GET",
|
|
41
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}",
|
|
46
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
42
47
|
path: {
|
|
43
48
|
"chainId": chainId,
|
|
44
|
-
"address": address
|
|
49
|
+
"address": address,
|
|
50
|
+
"tokenId": tokenId
|
|
45
51
|
}
|
|
46
52
|
});
|
|
47
53
|
}
|