@avalabs/glacier-sdk 2.8.0-alpha.107 → 2.8.0-alpha.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.d.ts +487 -361
  2. package/dist/index.js +192 -163
  3. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  4. package/esm/generated/models/BlockchainIds.js +10 -0
  5. package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
  6. package/esm/generated/models/CollectionMetrics.d.ts +1 -2
  7. package/esm/generated/models/EVMInput.d.ts +5 -0
  8. package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
  9. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
  10. package/esm/generated/models/Erc20Transfer.d.ts +1 -0
  11. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
  12. package/esm/generated/models/Erc721Transfer.d.ts +1 -0
  13. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
  14. package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
  15. package/esm/generated/models/FloorPrice.d.ts +2 -0
  16. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  17. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  18. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
  19. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
  20. package/esm/generated/models/{ListBlocksResponse.d.ts → ListEvmBlocksResponse.d.ts} +4 -4
  21. package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
  22. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
  23. package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
  24. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  25. package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
  26. package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
  27. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
  28. package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
  29. package/esm/generated/models/PChainBalance.d.ts +6 -6
  30. package/esm/generated/models/PChainTransaction.d.ts +3 -3
  31. package/esm/generated/models/PChainUtxo.d.ts +4 -0
  32. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  33. package/esm/generated/models/PrimaryNetwork.js +7 -0
  34. package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +2 -2
  35. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  36. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  37. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  38. package/esm/generated/models/Utxo.d.ts +9 -1
  39. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
  40. package/esm/generated/models/XChainLinearTransaction.js +1 -1
  41. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
  42. package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
  43. package/esm/generated/services/EvmService.d.ts +244 -240
  44. package/esm/generated/services/EvmService.js +163 -161
  45. package/esm/generated/services/PrimaryNetworkService.d.ts +14 -9
  46. package/esm/generated/services/PrimaryNetworkService.js +2 -0
  47. package/esm/index.d.ts +10 -3
  48. package/esm/index.js +3 -0
  49. package/package.json +2 -2
@@ -2,11 +2,10 @@ import { CollectionSortByOption } from '../models/CollectionSortByOption.js';
2
2
  import { CurrencyCode } from '../models/CurrencyCode.js';
3
3
  import { Erc1155Token } from '../models/Erc1155Token.js';
4
4
  import { Erc721Token } from '../models/Erc721Token.js';
5
- import { GetBlockResponse } from '../models/GetBlockResponse.js';
6
5
  import { GetChainResponse } from '../models/GetChainResponse.js';
6
+ import { GetEvmBlockResponse } from '../models/GetEvmBlockResponse.js';
7
7
  import { GetNativeBalanceResponse } from '../models/GetNativeBalanceResponse.js';
8
8
  import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
9
- import { ListBlocksResponse } from '../models/ListBlocksResponse.js';
10
9
  import { ListChainsResponse } from '../models/ListChainsResponse.js';
11
10
  import { ListCollectibleBalancesResponse } from '../models/ListCollectibleBalancesResponse.js';
12
11
  import { ListErc1155BalancesResponse } from '../models/ListErc1155BalancesResponse.js';
@@ -15,6 +14,7 @@ import { ListErc20BalancesResponse } from '../models/ListErc20BalancesResponse.j
15
14
  import { ListErc20TransactionsResponse } from '../models/ListErc20TransactionsResponse.js';
16
15
  import { ListErc721BalancesResponse } from '../models/ListErc721BalancesResponse.js';
17
16
  import { ListErc721TransactionsResponse } from '../models/ListErc721TransactionsResponse.js';
17
+ import { ListEvmBlocksResponse } from '../models/ListEvmBlocksResponse.js';
18
18
  import { ListingEventType } from '../models/ListingEventType.js';
19
19
  import { ListingsSortByOption } from '../models/ListingsSortByOption.js';
20
20
  import { ListInternalTransactionsResponse } from '../models/ListInternalTransactionsResponse.js';
@@ -40,7 +40,7 @@ declare class EvmService {
40
40
  * @returns GetNativeBalanceResponse
41
41
  * @throws ApiError
42
42
  */
43
- getNativeBalance({ chainId, address, currency, }: {
43
+ getNativeBalance({ chainId, address, blockNumber, currency, }: {
44
44
  /**
45
45
  * A supported evm chain id. Use the `/chains` endpoint to get
46
46
  * a list of supported chain ids.
@@ -50,6 +50,10 @@ declare class EvmService {
50
50
  * A wallet address.
51
51
  */
52
52
  address: string;
53
+ /**
54
+ * The block number, if not defined the block number will be the latest block.
55
+ */
56
+ blockNumber?: string;
53
57
  /**
54
58
  * The currency that return values should use. Defaults to USD.
55
59
  */
@@ -162,7 +166,7 @@ declare class EvmService {
162
166
  }): CancelablePromise<ListCollectibleBalancesResponse>;
163
167
  /**
164
168
  * Returns the latest blocks indexed for the chain.
165
- * @returns ListBlocksResponse
169
+ * @returns ListEvmBlocksResponse
166
170
  * @throws ApiError
167
171
  */
168
172
  getLatestBlocks({ chainId, pageSize, pageToken, }: {
@@ -180,10 +184,10 @@ declare class EvmService {
180
184
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
181
185
  */
182
186
  pageToken?: string;
183
- }): CancelablePromise<ListBlocksResponse>;
187
+ }): CancelablePromise<ListEvmBlocksResponse>;
184
188
  /**
185
189
  * Returns the details of an individual block for the chain.
186
- * @returns GetBlockResponse
190
+ * @returns GetEvmBlockResponse
187
191
  * @throws ApiError
188
192
  */
189
193
  getBlock({ chainId, blockId, }: {
@@ -196,7 +200,7 @@ declare class EvmService {
196
200
  * A block identifier which is either a block number or the block hash.
197
201
  */
198
202
  blockId: string;
199
- }): CancelablePromise<GetBlockResponse>;
203
+ }): CancelablePromise<GetEvmBlockResponse>;
200
204
  /**
201
205
  * If the address is a smart contract, returns the transaction at which it was deployed.
202
206
  * @returns GetTransactionResponse
@@ -218,120 +222,84 @@ declare class EvmService {
218
222
  currency?: CurrencyCode;
219
223
  }): CancelablePromise<GetTransactionResponse>;
220
224
  /**
221
- * Gets a list of erc transfers for an ERC-20, ERC-721,
222
- * or ERC-1155 contract address.
223
- * @returns ListTransfersResponse
225
+ * Gets the list of chains supported by the api.
226
+ * @returns ListChainsResponse
224
227
  * @throws ApiError
225
228
  */
226
- listTransfers({ chainId, address, pageSize, pageToken, }: {
229
+ supportedChains(): CancelablePromise<ListChainsResponse>;
230
+ /**
231
+ * Gets chain information by chain id.
232
+ * @returns GetChainResponse
233
+ * @throws ApiError
234
+ */
235
+ getChainInfo({ chainId, }: {
227
236
  /**
228
237
  * A supported evm chain id. Use the `/chains` endpoint to get
229
238
  * a list of supported chain ids.
230
239
  */
231
240
  chainId: string;
232
- /**
233
- * A wallet address.
234
- */
235
- address: string;
236
- /**
237
- * The maximum number of items to return. The minimum page size
238
- * is 1. The maximum pageSize is 100.
239
- */
240
- pageSize?: number;
241
- /**
242
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
243
- */
244
- pageToken?: string;
245
- }): CancelablePromise<ListTransfersResponse>;
241
+ }): CancelablePromise<GetChainResponse>;
246
242
  /**
247
- * Gets a list of transactions for an address and chain.
248
- * Returns a list of transactions where the given wallet
249
- * address had an on-chain interaction for a given chain. The ERC-20
250
- * transfers, ERC-721 transfers, ERC-1155, and internal transactions
251
- * returned are only those where the input address had an interaction.
252
- * Specifically, those list only inlcude entries where the input address
253
- * was the sender (`from` field) or the receiver (`to` field) for the
254
- * sub-transaction. Therefore the transactions returned from this list may
255
- * not be complete representations of the on-chain data. For a complete
256
- * view of a transaction use the `/chains/:chainId/transactions/:txHash`
257
- * endpoint.
258
- * @returns ListTransactionDetailsResponse
243
+ * Triggers reindexing for a single nft contract and token id pair.
244
+ * Triggers reindexing of token metadata for nft contracts.
245
+ * Will throw 400 if Nft has been indexed within the last hour.
246
+ * @returns any
259
247
  * @throws ApiError
260
248
  */
261
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
249
+ reindexNft({ chainId, address, tokenId, }: {
262
250
  /**
263
251
  * A supported evm chain id. Use the `/chains` endpoint to get
264
252
  * a list of supported chain ids.
265
253
  */
266
254
  chainId: string;
267
255
  /**
268
- * A wallet address.
256
+ * Contract address on the relevant chain.
269
257
  */
270
258
  address: string;
271
259
  /**
272
- * The maximum number of items to return. The minimum page size
273
- * is 1. The maximum pageSize is 100.
274
- */
275
- pageSize?: number;
276
- /**
277
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
278
- */
279
- pageToken?: string;
280
- /**
281
- * 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.
282
- */
283
- startBlock?: number;
284
- /**
285
- * 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.
286
- */
287
- endBlock?: number;
288
- /**
289
- * The order by which to sort results. Use "asc" for ascending
290
- * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
291
- * query parameter, if provided.
260
+ * TokenId on the contract
292
261
  */
293
- sortOrder?: SortOrder;
294
- }): CancelablePromise<ListTransactionDetailsResponse>;
262
+ tokenId: string;
263
+ }): CancelablePromise<any>;
295
264
  /**
296
- * Gets a list of native transactions for an address and chain.
297
- * @returns ListNativeTransactionsResponse
265
+ * Get collection data for provided a ChainID and address.
266
+ * @returns NftCollectionWithMetrics
298
267
  * @throws ApiError
299
268
  */
300
- listNativeTransactions({ chainId, address, pageSize, pageToken, }: {
269
+ getCollection({ chainId, address, timeframe, }: {
301
270
  /**
302
271
  * A supported evm chain id. Use the `/chains` endpoint to get
303
272
  * a list of supported chain ids.
304
273
  */
305
274
  chainId: string;
306
275
  /**
307
- * A wallet address.
276
+ * Contract address on the relevant chain.
308
277
  */
309
278
  address: string;
310
279
  /**
311
- * The maximum number of items to return. The minimum page size
312
- * is 1. The maximum pageSize is 100.
313
- */
314
- pageSize?: number;
315
- /**
316
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
280
+ * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
317
281
  */
318
- pageToken?: string;
319
- }): CancelablePromise<ListNativeTransactionsResponse>;
282
+ timeframe?: TrendingTimeframe;
283
+ }): CancelablePromise<NftCollectionWithMetrics>;
320
284
  /**
321
- * Lists ERC-20 transfers for an address.
322
- * @returns ListErc20TransactionsResponse
285
+ * List open listings for a NFT token.
286
+ * @returns ListListingsResponse
323
287
  * @throws ApiError
324
288
  */
325
- listErc20Transactions({ chainId, address, pageSize, pageToken, }: {
289
+ listListingsByCollectionTokenId({ chainId, address, tokenId, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
326
290
  /**
327
291
  * A supported evm chain id. Use the `/chains` endpoint to get
328
292
  * a list of supported chain ids.
329
293
  */
330
294
  chainId: string;
331
295
  /**
332
- * A wallet address.
296
+ * Contract address on the relevant chain.
333
297
  */
334
298
  address: string;
299
+ /**
300
+ * TokenId on the contract
301
+ */
302
+ tokenId: string;
335
303
  /**
336
304
  * The maximum number of items to return. The minimum page size
337
305
  * is 1. The maximum pageSize is 100.
@@ -341,45 +309,38 @@ declare class EvmService {
341
309
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
342
310
  */
343
311
  pageToken?: string;
344
- }): CancelablePromise<ListErc20TransactionsResponse>;
345
- /**
346
- * Lists ERC-721 transfers for an address.
347
- * @returns ListErc721TransactionsResponse
348
- * @throws ApiError
349
- */
350
- listErc721Transactions({ chainId, address, pageSize, pageToken, }: {
351
312
  /**
352
- * A supported evm chain id. Use the `/chains` endpoint to get
353
- * a list of supported chain ids.
313
+ * Which property to sort by, in conjunction with sortOrder.
354
314
  */
355
- chainId: string;
315
+ sortBy?: ListingsSortByOption;
356
316
  /**
357
- * A wallet address.
317
+ * The order by which to sort results. Use "asc" for ascending
318
+ * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
319
+ * query parameter, if provided.
358
320
  */
359
- address: string;
321
+ sortOrder?: SortOrder;
360
322
  /**
361
- * The maximum number of items to return. The minimum page size
362
- * is 1. The maximum pageSize is 100.
323
+ * The currency that return values should use. Defaults to USD.
363
324
  */
364
- pageSize?: number;
325
+ currency?: CurrencyCode;
365
326
  /**
366
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
327
+ * Determines whether to return full transaction history for listings.
367
328
  */
368
- pageToken?: string;
369
- }): CancelablePromise<ListErc721TransactionsResponse>;
329
+ includeHistory?: boolean;
330
+ }): CancelablePromise<ListListingsResponse>;
370
331
  /**
371
- * Lists of ERC-1155 transfers for an address.
372
- * @returns ListErc1155TransactionsResponse
332
+ * List open listings for a NFT collection.
333
+ * @returns ListListingsResponse
373
334
  * @throws ApiError
374
335
  */
375
- listErc1155Transactions({ chainId, address, pageSize, pageToken, }: {
336
+ listListingsByCollection({ chainId, address, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
376
337
  /**
377
338
  * A supported evm chain id. Use the `/chains` endpoint to get
378
339
  * a list of supported chain ids.
379
340
  */
380
341
  chainId: string;
381
342
  /**
382
- * A wallet address.
343
+ * Contract address on the relevant chain.
383
344
  */
384
345
  address: string;
385
346
  /**
@@ -391,75 +352,57 @@ declare class EvmService {
391
352
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
392
353
  */
393
354
  pageToken?: string;
394
- }): CancelablePromise<ListErc1155TransactionsResponse>;
395
- /**
396
- * Lists internal transactions for an address.
397
- * Returns a list of internal transactions for an address and
398
- * chain. Note that the internal transactions list only contains CALL or
399
- * CALLCODE transactions with a non-zero value and CREATE/CREATE2
400
- * transactions. To get a complete list of internal transactions use the
401
- * `debug_` prefixed RPC methods on an archive node.
402
- * @returns ListInternalTransactionsResponse
403
- * @throws ApiError
404
- */
405
- listInternalTransactions({ chainId, address, pageSize, pageToken, }: {
406
355
  /**
407
- * A supported evm chain id. Use the `/chains` endpoint to get
408
- * a list of supported chain ids.
356
+ * Which property to sort by, in conjunction with sortOrder.
409
357
  */
410
- chainId: string;
358
+ sortBy?: ListingsSortByOption;
411
359
  /**
412
- * A wallet address.
360
+ * The order by which to sort results. Use "asc" for ascending
361
+ * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
362
+ * query parameter, if provided.
413
363
  */
414
- address: string;
364
+ sortOrder?: SortOrder;
415
365
  /**
416
- * The maximum number of items to return. The minimum page size
417
- * is 1. The maximum pageSize is 100.
366
+ * The currency that return values should use. Defaults to USD.
418
367
  */
419
- pageSize?: number;
368
+ currency?: CurrencyCode;
420
369
  /**
421
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
370
+ * Determines whether to return full transaction history for listings.
422
371
  */
423
- pageToken?: string;
424
- }): CancelablePromise<ListInternalTransactionsResponse>;
372
+ includeHistory?: boolean;
373
+ }): CancelablePromise<ListListingsResponse>;
425
374
  /**
426
- * Gets the details of a single transaction.
427
- * @returns GetTransactionResponse
375
+ * List recent listings on the chain.
376
+ * @returns ListListingsResponse
428
377
  * @throws ApiError
429
378
  */
430
- getTransaction({ chainId, txHash, }: {
379
+ listRecentListings({ chainId, pageSize, pageToken, eventType, currency, }: {
431
380
  /**
432
381
  * A supported evm chain id. Use the `/chains` endpoint to get
433
382
  * a list of supported chain ids.
434
383
  */
435
384
  chainId: string;
436
385
  /**
437
- * A transaction hash.
386
+ * The maximum number of items to return. The minimum page size
387
+ * is 1. The maximum pageSize is 100.
438
388
  */
439
- txHash: string;
440
- }): CancelablePromise<GetTransactionResponse>;
441
- /**
442
- * Gets the transactions that occured in a given block.
443
- * @returns ListNativeTransactionsResponse
444
- * @throws ApiError
445
- */
446
- getTransactionsForBlock({ chainId, blockId, }: {
389
+ pageSize?: number;
447
390
  /**
448
- * A supported evm chain id. Use the `/chains` endpoint to get
449
- * a list of supported chain ids.
391
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
450
392
  */
451
- chainId: string;
393
+ pageToken?: string;
394
+ eventType?: ListingEventType;
452
395
  /**
453
- * A block identifier which is either a block number or the block hash.
396
+ * The currency that return values should use. Defaults to USD.
454
397
  */
455
- blockId: string;
456
- }): CancelablePromise<ListNativeTransactionsResponse>;
398
+ currency?: CurrencyCode;
399
+ }): CancelablePromise<ListListingsResponse>;
457
400
  /**
458
- * Gets the latest transactions; can be filtered by status.
459
- * @returns ListNativeTransactionsResponse
401
+ * List details and metrics for collections.
402
+ * @returns ListNftCollectionWithMetricsResponse
460
403
  * @throws ApiError
461
404
  */
462
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
405
+ listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
463
406
  /**
464
407
  * A supported evm chain id. Use the `/chains` endpoint to get
465
408
  * a list of supported chain ids.
@@ -475,50 +418,35 @@ declare class EvmService {
475
418
  */
476
419
  pageToken?: string;
477
420
  /**
478
- * A status filter for listed transactions.
421
+ * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
479
422
  */
480
- status?: TransactionStatus;
481
- }): CancelablePromise<ListNativeTransactionsResponse>;
482
- /**
483
- * Gets the list of chains supported by the api.
484
- * @returns ListChainsResponse
485
- * @throws ApiError
486
- */
487
- supportedChains(): CancelablePromise<ListChainsResponse>;
488
- /**
489
- * Gets chain information by chain id.
490
- * @returns GetChainResponse
491
- * @throws ApiError
492
- */
493
- getChainInfo({ chainId, }: {
423
+ timeframe?: TrendingTimeframe;
494
424
  /**
495
- * A supported evm chain id. Use the `/chains` endpoint to get
496
- * a list of supported chain ids.
425
+ * Which property to sort by, in conjunction with sortOrder.
497
426
  */
498
- chainId: string;
499
- }): CancelablePromise<GetChainResponse>;
427
+ sortBy?: CollectionSortByOption;
428
+ /**
429
+ * The order by which to sort results. Use "asc" for ascending
430
+ * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
431
+ * query parameter, if provided.
432
+ */
433
+ sortOrder?: SortOrder;
434
+ }): CancelablePromise<ListNftCollectionWithMetricsResponse>;
500
435
  /**
501
- * Triggers reindexing for a single nft contract and token id pair.
502
- * Triggers reindexing of token metadata for nft contracts.
503
- * Will throw 400 if Nft has been indexed within the last hour.
436
+ * Search for token by name and contract name.
504
437
  * @returns any
505
438
  * @throws ApiError
506
439
  */
507
- reindexNft({ chainId, address, tokenId, }: {
440
+ search({ chainId, requestBody, }: {
508
441
  /**
509
442
  * A supported evm chain id. Use the `/chains` endpoint to get
510
443
  * a list of supported chain ids.
511
444
  */
512
445
  chainId: string;
513
- /**
514
- * Contract address on the relevant chain.
515
- */
516
- address: string;
517
- /**
518
- * TokenId on the contract
519
- */
520
- tokenId: string;
521
- }): CancelablePromise<any>;
446
+ requestBody: NftSearchBody;
447
+ }): CancelablePromise<{
448
+ results?: Array<NftCollection>;
449
+ }>;
522
450
  /**
523
451
  * Get metadata for a specific token by providing the contract address and token id.
524
452
  * @returns any
@@ -540,44 +468,56 @@ declare class EvmService {
540
468
  tokenId: string;
541
469
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
542
470
  /**
543
- * Get collection data for provided a ChainID and address.
544
- * @returns NftCollectionWithMetrics
471
+ * Gets a list of erc transfers for an ERC-20, ERC-721,
472
+ * or ERC-1155 contract address.
473
+ * @returns ListTransfersResponse
545
474
  * @throws ApiError
546
475
  */
547
- getCollection({ chainId, address, timeframe, }: {
476
+ listTransfers({ chainId, address, pageSize, pageToken, }: {
548
477
  /**
549
478
  * A supported evm chain id. Use the `/chains` endpoint to get
550
479
  * a list of supported chain ids.
551
480
  */
552
481
  chainId: string;
553
482
  /**
554
- * Contract address on the relevant chain.
483
+ * A wallet address.
555
484
  */
556
485
  address: string;
557
486
  /**
558
- * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
487
+ * The maximum number of items to return. The minimum page size
488
+ * is 1. The maximum pageSize is 100.
559
489
  */
560
- timeframe?: TrendingTimeframe;
561
- }): CancelablePromise<NftCollectionWithMetrics>;
490
+ pageSize?: number;
491
+ /**
492
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
493
+ */
494
+ pageToken?: string;
495
+ }): CancelablePromise<ListTransfersResponse>;
562
496
  /**
563
- * List open listings for a NFT token.
564
- * @returns ListListingsResponse
497
+ * Gets a list of transactions for an address and chain.
498
+ * Returns a list of transactions where the given wallet
499
+ * address had an on-chain interaction for a given chain. The ERC-20
500
+ * transfers, ERC-721 transfers, ERC-1155, and internal transactions
501
+ * returned are only those where the input address had an interaction.
502
+ * Specifically, those list only inlcude entries where the input address
503
+ * was the sender (`from` field) or the receiver (`to` field) for the
504
+ * sub-transaction. Therefore the transactions returned from this list may
505
+ * not be complete representations of the on-chain data. For a complete
506
+ * view of a transaction use the `/chains/:chainId/transactions/:txHash`
507
+ * endpoint.
508
+ * @returns ListTransactionDetailsResponse
565
509
  * @throws ApiError
566
510
  */
567
- listListingsByCollectionTokenId({ chainId, address, tokenId, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
511
+ listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
568
512
  /**
569
513
  * A supported evm chain id. Use the `/chains` endpoint to get
570
514
  * a list of supported chain ids.
571
515
  */
572
516
  chainId: string;
573
517
  /**
574
- * Contract address on the relevant chain.
518
+ * A wallet address.
575
519
  */
576
520
  address: string;
577
- /**
578
- * TokenId on the contract
579
- */
580
- tokenId: string;
581
521
  /**
582
522
  * The maximum number of items to return. The minimum page size
583
523
  * is 1. The maximum pageSize is 100.
@@ -588,37 +528,58 @@ declare class EvmService {
588
528
  */
589
529
  pageToken?: string;
590
530
  /**
591
- * Which property to sort by, in conjunction with sortOrder.
531
+ * 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.
592
532
  */
593
- sortBy?: ListingsSortByOption;
533
+ startBlock?: number;
534
+ /**
535
+ * 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.
536
+ */
537
+ endBlock?: number;
594
538
  /**
595
539
  * The order by which to sort results. Use "asc" for ascending
596
540
  * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
597
541
  * query parameter, if provided.
598
542
  */
599
543
  sortOrder?: SortOrder;
544
+ }): CancelablePromise<ListTransactionDetailsResponse>;
545
+ /**
546
+ * Gets a list of native transactions for an address and chain.
547
+ * @returns ListNativeTransactionsResponse
548
+ * @throws ApiError
549
+ */
550
+ listNativeTransactions({ chainId, address, pageSize, pageToken, }: {
600
551
  /**
601
- * The currency that return values should use. Defaults to USD.
552
+ * A supported evm chain id. Use the `/chains` endpoint to get
553
+ * a list of supported chain ids.
602
554
  */
603
- currency?: CurrencyCode;
555
+ chainId: string;
604
556
  /**
605
- * Determines whether to return full transaction history for listings.
557
+ * A wallet address.
606
558
  */
607
- includeHistory?: boolean;
608
- }): CancelablePromise<ListListingsResponse>;
559
+ address: string;
560
+ /**
561
+ * The maximum number of items to return. The minimum page size
562
+ * is 1. The maximum pageSize is 100.
563
+ */
564
+ pageSize?: number;
565
+ /**
566
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
567
+ */
568
+ pageToken?: string;
569
+ }): CancelablePromise<ListNativeTransactionsResponse>;
609
570
  /**
610
- * List open listings for a NFT collection.
611
- * @returns ListListingsResponse
571
+ * Lists ERC-20 transfers for an address.
572
+ * @returns ListErc20TransactionsResponse
612
573
  * @throws ApiError
613
574
  */
614
- listListingsByCollection({ chainId, address, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
575
+ listErc20Transactions({ chainId, address, pageSize, pageToken, }: {
615
576
  /**
616
577
  * A supported evm chain id. Use the `/chains` endpoint to get
617
578
  * a list of supported chain ids.
618
579
  */
619
580
  chainId: string;
620
581
  /**
621
- * Contract address on the relevant chain.
582
+ * A wallet address.
622
583
  */
623
584
  address: string;
624
585
  /**
@@ -630,36 +591,47 @@ declare class EvmService {
630
591
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
631
592
  */
632
593
  pageToken?: string;
594
+ }): CancelablePromise<ListErc20TransactionsResponse>;
595
+ /**
596
+ * Lists ERC-721 transfers for an address.
597
+ * @returns ListErc721TransactionsResponse
598
+ * @throws ApiError
599
+ */
600
+ listErc721Transactions({ chainId, address, pageSize, pageToken, }: {
633
601
  /**
634
- * Which property to sort by, in conjunction with sortOrder.
602
+ * A supported evm chain id. Use the `/chains` endpoint to get
603
+ * a list of supported chain ids.
635
604
  */
636
- sortBy?: ListingsSortByOption;
605
+ chainId: string;
637
606
  /**
638
- * The order by which to sort results. Use "asc" for ascending
639
- * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
640
- * query parameter, if provided.
607
+ * A wallet address.
641
608
  */
642
- sortOrder?: SortOrder;
609
+ address: string;
643
610
  /**
644
- * The currency that return values should use. Defaults to USD.
611
+ * The maximum number of items to return. The minimum page size
612
+ * is 1. The maximum pageSize is 100.
645
613
  */
646
- currency?: CurrencyCode;
614
+ pageSize?: number;
647
615
  /**
648
- * Determines whether to return full transaction history for listings.
616
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
649
617
  */
650
- includeHistory?: boolean;
651
- }): CancelablePromise<ListListingsResponse>;
618
+ pageToken?: string;
619
+ }): CancelablePromise<ListErc721TransactionsResponse>;
652
620
  /**
653
- * List recent listings on the chain.
654
- * @returns ListListingsResponse
621
+ * Lists of ERC-1155 transfers for an address.
622
+ * @returns ListErc1155TransactionsResponse
655
623
  * @throws ApiError
656
624
  */
657
- listRecentListings({ chainId, pageSize, pageToken, eventType, currency, }: {
625
+ listErc1155Transactions({ chainId, address, pageSize, pageToken, }: {
658
626
  /**
659
627
  * A supported evm chain id. Use the `/chains` endpoint to get
660
628
  * a list of supported chain ids.
661
629
  */
662
630
  chainId: string;
631
+ /**
632
+ * A wallet address.
633
+ */
634
+ address: string;
663
635
  /**
664
636
  * The maximum number of items to return. The minimum page size
665
637
  * is 1. The maximum pageSize is 100.
@@ -669,23 +641,27 @@ declare class EvmService {
669
641
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
670
642
  */
671
643
  pageToken?: string;
672
- eventType?: ListingEventType;
673
- /**
674
- * The currency that return values should use. Defaults to USD.
675
- */
676
- currency?: CurrencyCode;
677
- }): CancelablePromise<ListListingsResponse>;
644
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
678
645
  /**
679
- * List details and metrics for collections.
680
- * @returns ListNftCollectionWithMetricsResponse
646
+ * Lists internal transactions for an address.
647
+ * Returns a list of internal transactions for an address and
648
+ * chain. Note that the internal transactions list only contains CALL or
649
+ * CALLCODE transactions with a non-zero value and CREATE/CREATE2
650
+ * transactions. To get a complete list of internal transactions use the
651
+ * `debug_` prefixed RPC methods on an archive node.
652
+ * @returns ListInternalTransactionsResponse
681
653
  * @throws ApiError
682
654
  */
683
- listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
655
+ listInternalTransactions({ chainId, address, pageSize, pageToken, }: {
684
656
  /**
685
657
  * A supported evm chain id. Use the `/chains` endpoint to get
686
658
  * a list of supported chain ids.
687
659
  */
688
660
  chainId: string;
661
+ /**
662
+ * A wallet address.
663
+ */
664
+ address: string;
689
665
  /**
690
666
  * The maximum number of items to return. The minimum page size
691
667
  * is 1. The maximum pageSize is 100.
@@ -695,36 +671,64 @@ declare class EvmService {
695
671
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
696
672
  */
697
673
  pageToken?: string;
674
+ }): CancelablePromise<ListInternalTransactionsResponse>;
675
+ /**
676
+ * Gets the details of a single transaction.
677
+ * @returns GetTransactionResponse
678
+ * @throws ApiError
679
+ */
680
+ getTransaction({ chainId, txHash, }: {
698
681
  /**
699
- * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
682
+ * A supported evm chain id. Use the `/chains` endpoint to get
683
+ * a list of supported chain ids.
700
684
  */
701
- timeframe?: TrendingTimeframe;
685
+ chainId: string;
702
686
  /**
703
- * Which property to sort by, in conjunction with sortOrder.
687
+ * A transaction hash.
704
688
  */
705
- sortBy?: CollectionSortByOption;
689
+ txHash: string;
690
+ }): CancelablePromise<GetTransactionResponse>;
691
+ /**
692
+ * Gets the transactions that occured in a given block.
693
+ * @returns ListNativeTransactionsResponse
694
+ * @throws ApiError
695
+ */
696
+ getTransactionsForBlock({ chainId, blockId, }: {
706
697
  /**
707
- * The order by which to sort results. Use "asc" for ascending
708
- * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
709
- * query parameter, if provided.
698
+ * A supported evm chain id. Use the `/chains` endpoint to get
699
+ * a list of supported chain ids.
710
700
  */
711
- sortOrder?: SortOrder;
712
- }): CancelablePromise<ListNftCollectionWithMetricsResponse>;
701
+ chainId: string;
702
+ /**
703
+ * A block identifier which is either a block number or the block hash.
704
+ */
705
+ blockId: string;
706
+ }): CancelablePromise<ListNativeTransactionsResponse>;
713
707
  /**
714
- * Search for token by name and contract name.
715
- * @returns any
708
+ * Gets the latest transactions; can be filtered by status.
709
+ * @returns ListNativeTransactionsResponse
716
710
  * @throws ApiError
717
711
  */
718
- search({ chainId, requestBody, }: {
712
+ listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
719
713
  /**
720
714
  * A supported evm chain id. Use the `/chains` endpoint to get
721
715
  * a list of supported chain ids.
722
716
  */
723
717
  chainId: string;
724
- requestBody: NftSearchBody;
725
- }): CancelablePromise<{
726
- results?: Array<NftCollection>;
727
- }>;
718
+ /**
719
+ * The maximum number of items to return. The minimum page size
720
+ * is 1. The maximum pageSize is 100.
721
+ */
722
+ pageSize?: number;
723
+ /**
724
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
725
+ */
726
+ pageToken?: string;
727
+ /**
728
+ * A status filter for listed transactions.
729
+ */
730
+ status?: TransactionStatus;
731
+ }): CancelablePromise<ListNativeTransactionsResponse>;
728
732
  }
729
733
 
730
734
  export { EvmService };