@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.
- package/dist/index.d.ts +487 -361
- package/dist/index.js +192 -163
- package/esm/generated/models/BlockchainIds.d.ts +9 -0
- package/esm/generated/models/BlockchainIds.js +10 -0
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
- package/esm/generated/models/CollectionMetrics.d.ts +1 -2
- package/esm/generated/models/EVMInput.d.ts +5 -0
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc20Transfer.d.ts +1 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc721Transfer.d.ts +1 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
- package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
- package/esm/generated/models/FloorPrice.d.ts +2 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/{ListBlocksResponse.d.ts → ListEvmBlocksResponse.d.ts} +4 -4
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
- package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
- package/esm/generated/models/PChainBalance.d.ts +6 -6
- package/esm/generated/models/PChainTransaction.d.ts +3 -3
- package/esm/generated/models/PChainUtxo.d.ts +4 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +2 -2
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/Utxo.d.ts +9 -1
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainLinearTransaction.js +1 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
- package/esm/generated/services/EvmService.d.ts +244 -240
- package/esm/generated/services/EvmService.js +163 -161
- package/esm/generated/services/PrimaryNetworkService.d.ts +14 -9
- package/esm/generated/services/PrimaryNetworkService.js +2 -0
- package/esm/index.d.ts +10 -3
- package/esm/index.js +3 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -175,54 +175,6 @@ declare namespace Erc721Token {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
type GetBlockResponse = {
|
|
179
|
-
/**
|
|
180
|
-
* The block number on the chain.
|
|
181
|
-
*/
|
|
182
|
-
blockNumber: string;
|
|
183
|
-
/**
|
|
184
|
-
* The block finality timestamp.
|
|
185
|
-
*/
|
|
186
|
-
blockTimestamp: number;
|
|
187
|
-
/**
|
|
188
|
-
* The block hash identifier.
|
|
189
|
-
*/
|
|
190
|
-
blockHash: string;
|
|
191
|
-
/**
|
|
192
|
-
* The number of evm transactions in the block.
|
|
193
|
-
*/
|
|
194
|
-
txCount: number;
|
|
195
|
-
/**
|
|
196
|
-
* The number of atomic transactions in the block.
|
|
197
|
-
*/
|
|
198
|
-
atomicTxCount: number;
|
|
199
|
-
/**
|
|
200
|
-
* The base gas fee for a transaction to be included in the block.
|
|
201
|
-
*/
|
|
202
|
-
baseFee: string;
|
|
203
|
-
/**
|
|
204
|
-
* The gas used for transactions in the block.
|
|
205
|
-
*/
|
|
206
|
-
gasUsed: string;
|
|
207
|
-
/**
|
|
208
|
-
* The total gas limit set for transactions in the block.
|
|
209
|
-
*/
|
|
210
|
-
gasLimit: string;
|
|
211
|
-
gasCost: string;
|
|
212
|
-
/**
|
|
213
|
-
* The hash of the parent block.
|
|
214
|
-
*/
|
|
215
|
-
parentHash: string;
|
|
216
|
-
/**
|
|
217
|
-
* The amount of fees spent/burned for transactions in the block.
|
|
218
|
-
*/
|
|
219
|
-
feesSpent: string;
|
|
220
|
-
/**
|
|
221
|
-
* The cumulative number of transactions for the chain including this block.
|
|
222
|
-
*/
|
|
223
|
-
cumulativeTransactions: string;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
178
|
declare enum ChainStatus {
|
|
227
179
|
OK = "OK",
|
|
228
180
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -284,6 +236,50 @@ type GetChainResponse = {
|
|
|
284
236
|
chainLogoUri?: string;
|
|
285
237
|
};
|
|
286
238
|
|
|
239
|
+
type GetEvmBlockResponse = {
|
|
240
|
+
/**
|
|
241
|
+
* The block number on the chain.
|
|
242
|
+
*/
|
|
243
|
+
blockNumber: string;
|
|
244
|
+
/**
|
|
245
|
+
* The block finality timestamp.
|
|
246
|
+
*/
|
|
247
|
+
blockTimestamp: number;
|
|
248
|
+
/**
|
|
249
|
+
* The block hash identifier.
|
|
250
|
+
*/
|
|
251
|
+
blockHash: string;
|
|
252
|
+
/**
|
|
253
|
+
* The number of evm transactions in the block.
|
|
254
|
+
*/
|
|
255
|
+
txCount: number;
|
|
256
|
+
/**
|
|
257
|
+
* The base gas fee for a transaction to be included in the block.
|
|
258
|
+
*/
|
|
259
|
+
baseFee: string;
|
|
260
|
+
/**
|
|
261
|
+
* The gas used for transactions in the block.
|
|
262
|
+
*/
|
|
263
|
+
gasUsed: string;
|
|
264
|
+
/**
|
|
265
|
+
* The total gas limit set for transactions in the block.
|
|
266
|
+
*/
|
|
267
|
+
gasLimit: string;
|
|
268
|
+
gasCost: string;
|
|
269
|
+
/**
|
|
270
|
+
* The hash of the parent block.
|
|
271
|
+
*/
|
|
272
|
+
parentHash: string;
|
|
273
|
+
/**
|
|
274
|
+
* The amount of fees spent/burned for transactions in the block.
|
|
275
|
+
*/
|
|
276
|
+
feesSpent: string;
|
|
277
|
+
/**
|
|
278
|
+
* The cumulative number of transactions for the chain including this block.
|
|
279
|
+
*/
|
|
280
|
+
cumulativeTransactions: string;
|
|
281
|
+
};
|
|
282
|
+
|
|
287
283
|
type Money = {
|
|
288
284
|
/**
|
|
289
285
|
* ISO 4217 currency code.
|
|
@@ -368,6 +364,7 @@ type RichAddress = {
|
|
|
368
364
|
type Erc1155TransferDetails = {
|
|
369
365
|
from: RichAddress;
|
|
370
366
|
to: RichAddress;
|
|
367
|
+
logIndex: number;
|
|
371
368
|
value: string;
|
|
372
369
|
erc1155Token: Erc1155Token;
|
|
373
370
|
};
|
|
@@ -410,6 +407,7 @@ declare namespace Erc20Token {
|
|
|
410
407
|
type Erc20TransferDetails = {
|
|
411
408
|
from: RichAddress;
|
|
412
409
|
to: RichAddress;
|
|
410
|
+
logIndex: number;
|
|
413
411
|
value: string;
|
|
414
412
|
erc20Token: Erc20Token;
|
|
415
413
|
};
|
|
@@ -417,6 +415,7 @@ type Erc20TransferDetails = {
|
|
|
417
415
|
type Erc721TransferDetails = {
|
|
418
416
|
from: RichAddress;
|
|
419
417
|
to: RichAddress;
|
|
418
|
+
logIndex: number;
|
|
420
419
|
erc721Token: Erc721Token;
|
|
421
420
|
};
|
|
422
421
|
|
|
@@ -569,34 +568,6 @@ type GetTransactionResponse = {
|
|
|
569
568
|
nativeTransaction: FullNativeTransactionDetails;
|
|
570
569
|
};
|
|
571
570
|
|
|
572
|
-
type ProposerDetails = {
|
|
573
|
-
proposerId?: string;
|
|
574
|
-
proposerParentId?: string;
|
|
575
|
-
proposerNodeId?: string;
|
|
576
|
-
proposerPChainHeight?: number;
|
|
577
|
-
proposerTimestamp?: number;
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
type Block = {
|
|
581
|
-
blockNumber: string;
|
|
582
|
-
blockHash: string;
|
|
583
|
-
parentHash: string;
|
|
584
|
-
blockTimestamp: number;
|
|
585
|
-
blockType: string;
|
|
586
|
-
txCount: number;
|
|
587
|
-
transactions: Array<string>;
|
|
588
|
-
blockSizeBytes: number;
|
|
589
|
-
proposerDetails?: ProposerDetails;
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
type ListBlocksResponse = {
|
|
593
|
-
/**
|
|
594
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
595
|
-
*/
|
|
596
|
-
nextPageToken?: string;
|
|
597
|
-
blocks: Array<Block>;
|
|
598
|
-
};
|
|
599
|
-
|
|
600
571
|
type ChainInfo = {
|
|
601
572
|
chainId: string;
|
|
602
573
|
/**
|
|
@@ -724,6 +695,7 @@ type Erc1155Transfer = {
|
|
|
724
695
|
txHash: string;
|
|
725
696
|
from: RichAddress;
|
|
726
697
|
to: RichAddress;
|
|
698
|
+
logIndex: number;
|
|
727
699
|
value: string;
|
|
728
700
|
erc1155Token: Erc1155Token;
|
|
729
701
|
};
|
|
@@ -814,6 +786,7 @@ type Erc20Transfer = {
|
|
|
814
786
|
txHash: string;
|
|
815
787
|
from: RichAddress;
|
|
816
788
|
to: RichAddress;
|
|
789
|
+
logIndex: number;
|
|
817
790
|
value: string;
|
|
818
791
|
erc20Token: Erc20Token;
|
|
819
792
|
};
|
|
@@ -856,6 +829,7 @@ type Erc721Transfer = {
|
|
|
856
829
|
txHash: string;
|
|
857
830
|
from: RichAddress;
|
|
858
831
|
to: RichAddress;
|
|
832
|
+
logIndex: number;
|
|
859
833
|
erc721Token: Erc721Token;
|
|
860
834
|
};
|
|
861
835
|
|
|
@@ -867,6 +841,58 @@ type ListErc721TransactionsResponse = {
|
|
|
867
841
|
transactions: Array<Erc721Transfer>;
|
|
868
842
|
};
|
|
869
843
|
|
|
844
|
+
type EvmBlock = {
|
|
845
|
+
/**
|
|
846
|
+
* The block number on the chain.
|
|
847
|
+
*/
|
|
848
|
+
blockNumber: string;
|
|
849
|
+
/**
|
|
850
|
+
* The block finality timestamp.
|
|
851
|
+
*/
|
|
852
|
+
blockTimestamp: number;
|
|
853
|
+
/**
|
|
854
|
+
* The block hash identifier.
|
|
855
|
+
*/
|
|
856
|
+
blockHash: string;
|
|
857
|
+
/**
|
|
858
|
+
* The number of evm transactions in the block.
|
|
859
|
+
*/
|
|
860
|
+
txCount: number;
|
|
861
|
+
/**
|
|
862
|
+
* The base gas fee for a transaction to be included in the block.
|
|
863
|
+
*/
|
|
864
|
+
baseFee: string;
|
|
865
|
+
/**
|
|
866
|
+
* The gas used for transactions in the block.
|
|
867
|
+
*/
|
|
868
|
+
gasUsed: string;
|
|
869
|
+
/**
|
|
870
|
+
* The total gas limit set for transactions in the block.
|
|
871
|
+
*/
|
|
872
|
+
gasLimit: string;
|
|
873
|
+
gasCost: string;
|
|
874
|
+
/**
|
|
875
|
+
* The hash of the parent block.
|
|
876
|
+
*/
|
|
877
|
+
parentHash: string;
|
|
878
|
+
/**
|
|
879
|
+
* The amount of fees spent/burned for transactions in the block.
|
|
880
|
+
*/
|
|
881
|
+
feesSpent: string;
|
|
882
|
+
/**
|
|
883
|
+
* The cumulative number of transactions for the chain including this block.
|
|
884
|
+
*/
|
|
885
|
+
cumulativeTransactions: string;
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
type ListEvmBlocksResponse = {
|
|
889
|
+
/**
|
|
890
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
891
|
+
*/
|
|
892
|
+
nextPageToken?: string;
|
|
893
|
+
blocks: Array<EvmBlock>;
|
|
894
|
+
};
|
|
895
|
+
|
|
870
896
|
declare enum ListingEventType {
|
|
871
897
|
OPEN_LISTING = "OPEN_LISTING",
|
|
872
898
|
CANCEL_LISTING = "CANCEL_LISTING",
|
|
@@ -1124,6 +1150,8 @@ type ListNativeTransactionsResponse = {
|
|
|
1124
1150
|
type FloorPrice = {
|
|
1125
1151
|
floorPrice: string;
|
|
1126
1152
|
marketplace: string;
|
|
1153
|
+
listingIds: Array<string>;
|
|
1154
|
+
isOverallFloorPrice: boolean;
|
|
1127
1155
|
};
|
|
1128
1156
|
|
|
1129
1157
|
type CollectionMetrics = {
|
|
@@ -1161,8 +1189,7 @@ type CollectionMetrics = {
|
|
|
1161
1189
|
averagePriceInPreviousTimeframe: string;
|
|
1162
1190
|
latestSaleTimestamp?: number;
|
|
1163
1191
|
marketplaceFloorPrices: Array<FloorPrice>;
|
|
1164
|
-
|
|
1165
|
-
minFloorPriceMarketplace?: string;
|
|
1192
|
+
floorPrice?: string;
|
|
1166
1193
|
};
|
|
1167
1194
|
|
|
1168
1195
|
type NftCollectionWithMetrics = {
|
|
@@ -1293,7 +1320,7 @@ declare class EvmService {
|
|
|
1293
1320
|
* @returns GetNativeBalanceResponse
|
|
1294
1321
|
* @throws ApiError
|
|
1295
1322
|
*/
|
|
1296
|
-
getNativeBalance({ chainId, address, currency, }: {
|
|
1323
|
+
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
1297
1324
|
/**
|
|
1298
1325
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1299
1326
|
* a list of supported chain ids.
|
|
@@ -1303,6 +1330,10 @@ declare class EvmService {
|
|
|
1303
1330
|
* A wallet address.
|
|
1304
1331
|
*/
|
|
1305
1332
|
address: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* The block number, if not defined the block number will be the latest block.
|
|
1335
|
+
*/
|
|
1336
|
+
blockNumber?: string;
|
|
1306
1337
|
/**
|
|
1307
1338
|
* The currency that return values should use. Defaults to USD.
|
|
1308
1339
|
*/
|
|
@@ -1415,7 +1446,7 @@ declare class EvmService {
|
|
|
1415
1446
|
}): CancelablePromise<ListCollectibleBalancesResponse>;
|
|
1416
1447
|
/**
|
|
1417
1448
|
* Returns the latest blocks indexed for the chain.
|
|
1418
|
-
* @returns
|
|
1449
|
+
* @returns ListEvmBlocksResponse
|
|
1419
1450
|
* @throws ApiError
|
|
1420
1451
|
*/
|
|
1421
1452
|
getLatestBlocks({ chainId, pageSize, pageToken, }: {
|
|
@@ -1433,10 +1464,10 @@ declare class EvmService {
|
|
|
1433
1464
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1434
1465
|
*/
|
|
1435
1466
|
pageToken?: string;
|
|
1436
|
-
}): CancelablePromise<
|
|
1467
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1437
1468
|
/**
|
|
1438
1469
|
* Returns the details of an individual block for the chain.
|
|
1439
|
-
* @returns
|
|
1470
|
+
* @returns GetEvmBlockResponse
|
|
1440
1471
|
* @throws ApiError
|
|
1441
1472
|
*/
|
|
1442
1473
|
getBlock({ chainId, blockId, }: {
|
|
@@ -1449,7 +1480,7 @@ declare class EvmService {
|
|
|
1449
1480
|
* A block identifier which is either a block number or the block hash.
|
|
1450
1481
|
*/
|
|
1451
1482
|
blockId: string;
|
|
1452
|
-
}): CancelablePromise<
|
|
1483
|
+
}): CancelablePromise<GetEvmBlockResponse>;
|
|
1453
1484
|
/**
|
|
1454
1485
|
* If the address is a smart contract, returns the transaction at which it was deployed.
|
|
1455
1486
|
* @returns GetTransactionResponse
|
|
@@ -1471,56 +1502,84 @@ declare class EvmService {
|
|
|
1471
1502
|
currency?: CurrencyCode;
|
|
1472
1503
|
}): CancelablePromise<GetTransactionResponse>;
|
|
1473
1504
|
/**
|
|
1474
|
-
* Gets
|
|
1475
|
-
*
|
|
1476
|
-
* @returns ListTransfersResponse
|
|
1505
|
+
* Gets the list of chains supported by the api.
|
|
1506
|
+
* @returns ListChainsResponse
|
|
1477
1507
|
* @throws ApiError
|
|
1478
1508
|
*/
|
|
1479
|
-
|
|
1509
|
+
supportedChains(): CancelablePromise<ListChainsResponse>;
|
|
1510
|
+
/**
|
|
1511
|
+
* Gets chain information by chain id.
|
|
1512
|
+
* @returns GetChainResponse
|
|
1513
|
+
* @throws ApiError
|
|
1514
|
+
*/
|
|
1515
|
+
getChainInfo({ chainId, }: {
|
|
1516
|
+
/**
|
|
1517
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1518
|
+
* a list of supported chain ids.
|
|
1519
|
+
*/
|
|
1520
|
+
chainId: string;
|
|
1521
|
+
}): CancelablePromise<GetChainResponse>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Triggers reindexing for a single nft contract and token id pair.
|
|
1524
|
+
* Triggers reindexing of token metadata for nft contracts.
|
|
1525
|
+
* Will throw 400 if Nft has been indexed within the last hour.
|
|
1526
|
+
* @returns any
|
|
1527
|
+
* @throws ApiError
|
|
1528
|
+
*/
|
|
1529
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
1480
1530
|
/**
|
|
1481
1531
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1482
1532
|
* a list of supported chain ids.
|
|
1483
1533
|
*/
|
|
1484
1534
|
chainId: string;
|
|
1485
1535
|
/**
|
|
1486
|
-
*
|
|
1536
|
+
* Contract address on the relevant chain.
|
|
1487
1537
|
*/
|
|
1488
1538
|
address: string;
|
|
1489
1539
|
/**
|
|
1490
|
-
*
|
|
1491
|
-
* is 1. The maximum pageSize is 100.
|
|
1540
|
+
* TokenId on the contract
|
|
1492
1541
|
*/
|
|
1493
|
-
|
|
1542
|
+
tokenId: string;
|
|
1543
|
+
}): CancelablePromise<any>;
|
|
1544
|
+
/**
|
|
1545
|
+
* Get collection data for provided a ChainID and address.
|
|
1546
|
+
* @returns NftCollectionWithMetrics
|
|
1547
|
+
* @throws ApiError
|
|
1548
|
+
*/
|
|
1549
|
+
getCollection({ chainId, address, timeframe, }: {
|
|
1494
1550
|
/**
|
|
1495
|
-
* A
|
|
1551
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1552
|
+
* a list of supported chain ids.
|
|
1496
1553
|
*/
|
|
1497
|
-
|
|
1498
|
-
|
|
1554
|
+
chainId: string;
|
|
1555
|
+
/**
|
|
1556
|
+
* Contract address on the relevant chain.
|
|
1557
|
+
*/
|
|
1558
|
+
address: string;
|
|
1559
|
+
/**
|
|
1560
|
+
* The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
|
|
1561
|
+
*/
|
|
1562
|
+
timeframe?: TrendingTimeframe;
|
|
1563
|
+
}): CancelablePromise<NftCollectionWithMetrics>;
|
|
1499
1564
|
/**
|
|
1500
|
-
*
|
|
1501
|
-
*
|
|
1502
|
-
* address had an on-chain interaction for a given chain. The ERC-20
|
|
1503
|
-
* transfers, ERC-721 transfers, ERC-1155, and internal transactions
|
|
1504
|
-
* returned are only those where the input address had an interaction.
|
|
1505
|
-
* Specifically, those list only inlcude entries where the input address
|
|
1506
|
-
* was the sender (`from` field) or the receiver (`to` field) for the
|
|
1507
|
-
* sub-transaction. Therefore the transactions returned from this list may
|
|
1508
|
-
* not be complete representations of the on-chain data. For a complete
|
|
1509
|
-
* view of a transaction use the `/chains/:chainId/transactions/:txHash`
|
|
1510
|
-
* endpoint.
|
|
1511
|
-
* @returns ListTransactionDetailsResponse
|
|
1565
|
+
* List open listings for a NFT token.
|
|
1566
|
+
* @returns ListListingsResponse
|
|
1512
1567
|
* @throws ApiError
|
|
1513
1568
|
*/
|
|
1514
|
-
|
|
1569
|
+
listListingsByCollectionTokenId({ chainId, address, tokenId, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
|
|
1515
1570
|
/**
|
|
1516
1571
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1517
1572
|
* a list of supported chain ids.
|
|
1518
1573
|
*/
|
|
1519
1574
|
chainId: string;
|
|
1520
1575
|
/**
|
|
1521
|
-
*
|
|
1576
|
+
* Contract address on the relevant chain.
|
|
1522
1577
|
*/
|
|
1523
1578
|
address: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* TokenId on the contract
|
|
1581
|
+
*/
|
|
1582
|
+
tokenId: string;
|
|
1524
1583
|
/**
|
|
1525
1584
|
* The maximum number of items to return. The minimum page size
|
|
1526
1585
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1531,58 +1590,37 @@ declare class EvmService {
|
|
|
1531
1590
|
*/
|
|
1532
1591
|
pageToken?: string;
|
|
1533
1592
|
/**
|
|
1534
|
-
*
|
|
1535
|
-
*/
|
|
1536
|
-
startBlock?: number;
|
|
1537
|
-
/**
|
|
1538
|
-
* 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.
|
|
1593
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
1539
1594
|
*/
|
|
1540
|
-
|
|
1595
|
+
sortBy?: ListingsSortByOption;
|
|
1541
1596
|
/**
|
|
1542
1597
|
* The order by which to sort results. Use "asc" for ascending
|
|
1543
1598
|
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1544
1599
|
* query parameter, if provided.
|
|
1545
1600
|
*/
|
|
1546
1601
|
sortOrder?: SortOrder;
|
|
1547
|
-
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
1548
|
-
/**
|
|
1549
|
-
* Gets a list of native transactions for an address and chain.
|
|
1550
|
-
* @returns ListNativeTransactionsResponse
|
|
1551
|
-
* @throws ApiError
|
|
1552
|
-
*/
|
|
1553
|
-
listNativeTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
1554
|
-
/**
|
|
1555
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1556
|
-
* a list of supported chain ids.
|
|
1557
|
-
*/
|
|
1558
|
-
chainId: string;
|
|
1559
1602
|
/**
|
|
1560
|
-
*
|
|
1561
|
-
*/
|
|
1562
|
-
address: string;
|
|
1563
|
-
/**
|
|
1564
|
-
* The maximum number of items to return. The minimum page size
|
|
1565
|
-
* is 1. The maximum pageSize is 100.
|
|
1603
|
+
* The currency that return values should use. Defaults to USD.
|
|
1566
1604
|
*/
|
|
1567
|
-
|
|
1605
|
+
currency?: CurrencyCode;
|
|
1568
1606
|
/**
|
|
1569
|
-
*
|
|
1607
|
+
* Determines whether to return full transaction history for listings.
|
|
1570
1608
|
*/
|
|
1571
|
-
|
|
1572
|
-
}): CancelablePromise<
|
|
1609
|
+
includeHistory?: boolean;
|
|
1610
|
+
}): CancelablePromise<ListListingsResponse>;
|
|
1573
1611
|
/**
|
|
1574
|
-
*
|
|
1575
|
-
* @returns
|
|
1612
|
+
* List open listings for a NFT collection.
|
|
1613
|
+
* @returns ListListingsResponse
|
|
1576
1614
|
* @throws ApiError
|
|
1577
1615
|
*/
|
|
1578
|
-
|
|
1616
|
+
listListingsByCollection({ chainId, address, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
|
|
1579
1617
|
/**
|
|
1580
1618
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1581
1619
|
* a list of supported chain ids.
|
|
1582
1620
|
*/
|
|
1583
1621
|
chainId: string;
|
|
1584
1622
|
/**
|
|
1585
|
-
*
|
|
1623
|
+
* Contract address on the relevant chain.
|
|
1586
1624
|
*/
|
|
1587
1625
|
address: string;
|
|
1588
1626
|
/**
|
|
@@ -1594,47 +1632,36 @@ declare class EvmService {
|
|
|
1594
1632
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1595
1633
|
*/
|
|
1596
1634
|
pageToken?: string;
|
|
1597
|
-
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1598
|
-
/**
|
|
1599
|
-
* Lists ERC-721 transfers for an address.
|
|
1600
|
-
* @returns ListErc721TransactionsResponse
|
|
1601
|
-
* @throws ApiError
|
|
1602
|
-
*/
|
|
1603
|
-
listErc721Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
1604
1635
|
/**
|
|
1605
|
-
*
|
|
1606
|
-
* a list of supported chain ids.
|
|
1636
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
1607
1637
|
*/
|
|
1608
|
-
|
|
1638
|
+
sortBy?: ListingsSortByOption;
|
|
1609
1639
|
/**
|
|
1610
|
-
*
|
|
1640
|
+
* The order by which to sort results. Use "asc" for ascending
|
|
1641
|
+
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1642
|
+
* query parameter, if provided.
|
|
1611
1643
|
*/
|
|
1612
|
-
|
|
1644
|
+
sortOrder?: SortOrder;
|
|
1613
1645
|
/**
|
|
1614
|
-
* The
|
|
1615
|
-
* is 1. The maximum pageSize is 100.
|
|
1646
|
+
* The currency that return values should use. Defaults to USD.
|
|
1616
1647
|
*/
|
|
1617
|
-
|
|
1648
|
+
currency?: CurrencyCode;
|
|
1618
1649
|
/**
|
|
1619
|
-
*
|
|
1650
|
+
* Determines whether to return full transaction history for listings.
|
|
1620
1651
|
*/
|
|
1621
|
-
|
|
1622
|
-
}): CancelablePromise<
|
|
1652
|
+
includeHistory?: boolean;
|
|
1653
|
+
}): CancelablePromise<ListListingsResponse>;
|
|
1623
1654
|
/**
|
|
1624
|
-
*
|
|
1625
|
-
* @returns
|
|
1655
|
+
* List recent listings on the chain.
|
|
1656
|
+
* @returns ListListingsResponse
|
|
1626
1657
|
* @throws ApiError
|
|
1627
1658
|
*/
|
|
1628
|
-
|
|
1659
|
+
listRecentListings({ chainId, pageSize, pageToken, eventType, currency, }: {
|
|
1629
1660
|
/**
|
|
1630
1661
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1631
1662
|
* a list of supported chain ids.
|
|
1632
1663
|
*/
|
|
1633
1664
|
chainId: string;
|
|
1634
|
-
/**
|
|
1635
|
-
* A wallet address.
|
|
1636
|
-
*/
|
|
1637
|
-
address: string;
|
|
1638
1665
|
/**
|
|
1639
1666
|
* The maximum number of items to return. The minimum page size
|
|
1640
1667
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1644,27 +1671,23 @@ declare class EvmService {
|
|
|
1644
1671
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1645
1672
|
*/
|
|
1646
1673
|
pageToken?: string;
|
|
1647
|
-
|
|
1674
|
+
eventType?: ListingEventType;
|
|
1675
|
+
/**
|
|
1676
|
+
* The currency that return values should use. Defaults to USD.
|
|
1677
|
+
*/
|
|
1678
|
+
currency?: CurrencyCode;
|
|
1679
|
+
}): CancelablePromise<ListListingsResponse>;
|
|
1648
1680
|
/**
|
|
1649
|
-
*
|
|
1650
|
-
*
|
|
1651
|
-
* chain. Note that the internal transactions list only contains CALL or
|
|
1652
|
-
* CALLCODE transactions with a non-zero value and CREATE/CREATE2
|
|
1653
|
-
* transactions. To get a complete list of internal transactions use the
|
|
1654
|
-
* `debug_` prefixed RPC methods on an archive node.
|
|
1655
|
-
* @returns ListInternalTransactionsResponse
|
|
1681
|
+
* List details and metrics for collections.
|
|
1682
|
+
* @returns ListNftCollectionWithMetricsResponse
|
|
1656
1683
|
* @throws ApiError
|
|
1657
1684
|
*/
|
|
1658
|
-
|
|
1685
|
+
listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
|
|
1659
1686
|
/**
|
|
1660
1687
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1661
1688
|
* a list of supported chain ids.
|
|
1662
1689
|
*/
|
|
1663
1690
|
chainId: string;
|
|
1664
|
-
/**
|
|
1665
|
-
* A wallet address.
|
|
1666
|
-
*/
|
|
1667
|
-
address: string;
|
|
1668
1691
|
/**
|
|
1669
1692
|
* The maximum number of items to return. The minimum page size
|
|
1670
1693
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1674,50 +1697,72 @@ declare class EvmService {
|
|
|
1674
1697
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1675
1698
|
*/
|
|
1676
1699
|
pageToken?: string;
|
|
1677
|
-
|
|
1700
|
+
/**
|
|
1701
|
+
* The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
|
|
1702
|
+
*/
|
|
1703
|
+
timeframe?: TrendingTimeframe;
|
|
1704
|
+
/**
|
|
1705
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
1706
|
+
*/
|
|
1707
|
+
sortBy?: CollectionSortByOption;
|
|
1708
|
+
/**
|
|
1709
|
+
* The order by which to sort results. Use "asc" for ascending
|
|
1710
|
+
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1711
|
+
* query parameter, if provided.
|
|
1712
|
+
*/
|
|
1713
|
+
sortOrder?: SortOrder;
|
|
1714
|
+
}): CancelablePromise<ListNftCollectionWithMetricsResponse>;
|
|
1678
1715
|
/**
|
|
1679
|
-
*
|
|
1680
|
-
* @returns
|
|
1716
|
+
* Search for token by name and contract name.
|
|
1717
|
+
* @returns any
|
|
1681
1718
|
* @throws ApiError
|
|
1682
1719
|
*/
|
|
1683
|
-
|
|
1720
|
+
search({ chainId, requestBody, }: {
|
|
1684
1721
|
/**
|
|
1685
1722
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1686
1723
|
* a list of supported chain ids.
|
|
1687
1724
|
*/
|
|
1688
1725
|
chainId: string;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
1726
|
+
requestBody: NftSearchBody;
|
|
1727
|
+
}): CancelablePromise<{
|
|
1728
|
+
results?: Array<NftCollection>;
|
|
1729
|
+
}>;
|
|
1694
1730
|
/**
|
|
1695
|
-
*
|
|
1696
|
-
* @returns
|
|
1731
|
+
* Get metadata for a specific token by providing the contract address and token id.
|
|
1732
|
+
* @returns any
|
|
1697
1733
|
* @throws ApiError
|
|
1698
1734
|
*/
|
|
1699
|
-
|
|
1735
|
+
getTokenMetadata({ chainId, address, tokenId, }: {
|
|
1700
1736
|
/**
|
|
1701
1737
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1702
1738
|
* a list of supported chain ids.
|
|
1703
1739
|
*/
|
|
1704
1740
|
chainId: string;
|
|
1705
1741
|
/**
|
|
1706
|
-
*
|
|
1742
|
+
* Contract address on the relevant chain.
|
|
1707
1743
|
*/
|
|
1708
|
-
|
|
1709
|
-
|
|
1744
|
+
address: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* TokenId on the contract
|
|
1747
|
+
*/
|
|
1748
|
+
tokenId: string;
|
|
1749
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1710
1750
|
/**
|
|
1711
|
-
* Gets
|
|
1712
|
-
*
|
|
1751
|
+
* Gets a list of erc transfers for an ERC-20, ERC-721,
|
|
1752
|
+
* or ERC-1155 contract address.
|
|
1753
|
+
* @returns ListTransfersResponse
|
|
1713
1754
|
* @throws ApiError
|
|
1714
1755
|
*/
|
|
1715
|
-
|
|
1756
|
+
listTransfers({ chainId, address, pageSize, pageToken, }: {
|
|
1716
1757
|
/**
|
|
1717
1758
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1718
1759
|
* a list of supported chain ids.
|
|
1719
1760
|
*/
|
|
1720
1761
|
chainId: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* A wallet address.
|
|
1764
|
+
*/
|
|
1765
|
+
address: string;
|
|
1721
1766
|
/**
|
|
1722
1767
|
* The maximum number of items to return. The minimum page size
|
|
1723
1768
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1727,110 +1772,96 @@ declare class EvmService {
|
|
|
1727
1772
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1728
1773
|
*/
|
|
1729
1774
|
pageToken?: string;
|
|
1730
|
-
|
|
1731
|
-
* A status filter for listed transactions.
|
|
1732
|
-
*/
|
|
1733
|
-
status?: TransactionStatus;
|
|
1734
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1735
|
-
/**
|
|
1736
|
-
* Gets the list of chains supported by the api.
|
|
1737
|
-
* @returns ListChainsResponse
|
|
1738
|
-
* @throws ApiError
|
|
1739
|
-
*/
|
|
1740
|
-
supportedChains(): CancelablePromise<ListChainsResponse>;
|
|
1775
|
+
}): CancelablePromise<ListTransfersResponse>;
|
|
1741
1776
|
/**
|
|
1742
|
-
* Gets
|
|
1743
|
-
*
|
|
1777
|
+
* Gets a list of transactions for an address and chain.
|
|
1778
|
+
* Returns a list of transactions where the given wallet
|
|
1779
|
+
* address had an on-chain interaction for a given chain. The ERC-20
|
|
1780
|
+
* transfers, ERC-721 transfers, ERC-1155, and internal transactions
|
|
1781
|
+
* returned are only those where the input address had an interaction.
|
|
1782
|
+
* Specifically, those list only inlcude entries where the input address
|
|
1783
|
+
* was the sender (`from` field) or the receiver (`to` field) for the
|
|
1784
|
+
* sub-transaction. Therefore the transactions returned from this list may
|
|
1785
|
+
* not be complete representations of the on-chain data. For a complete
|
|
1786
|
+
* view of a transaction use the `/chains/:chainId/transactions/:txHash`
|
|
1787
|
+
* endpoint.
|
|
1788
|
+
* @returns ListTransactionDetailsResponse
|
|
1744
1789
|
* @throws ApiError
|
|
1745
1790
|
*/
|
|
1746
|
-
|
|
1791
|
+
listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
|
|
1747
1792
|
/**
|
|
1748
1793
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1749
1794
|
* a list of supported chain ids.
|
|
1750
1795
|
*/
|
|
1751
1796
|
chainId: string;
|
|
1752
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1753
|
-
/**
|
|
1754
|
-
* Triggers reindexing for a single nft contract and token id pair.
|
|
1755
|
-
* Triggers reindexing of token metadata for nft contracts.
|
|
1756
|
-
* Will throw 400 if Nft has been indexed within the last hour.
|
|
1757
|
-
* @returns any
|
|
1758
|
-
* @throws ApiError
|
|
1759
|
-
*/
|
|
1760
|
-
reindexNft({ chainId, address, tokenId, }: {
|
|
1761
1797
|
/**
|
|
1762
|
-
* A
|
|
1763
|
-
* a list of supported chain ids.
|
|
1798
|
+
* A wallet address.
|
|
1764
1799
|
*/
|
|
1765
|
-
|
|
1800
|
+
address: string;
|
|
1766
1801
|
/**
|
|
1767
|
-
*
|
|
1802
|
+
* The maximum number of items to return. The minimum page size
|
|
1803
|
+
* is 1. The maximum pageSize is 100.
|
|
1768
1804
|
*/
|
|
1769
|
-
|
|
1805
|
+
pageSize?: number;
|
|
1770
1806
|
/**
|
|
1771
|
-
*
|
|
1807
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1772
1808
|
*/
|
|
1773
|
-
|
|
1774
|
-
}): CancelablePromise<any>;
|
|
1775
|
-
/**
|
|
1776
|
-
* Get metadata for a specific token by providing the contract address and token id.
|
|
1777
|
-
* @returns any
|
|
1778
|
-
* @throws ApiError
|
|
1779
|
-
*/
|
|
1780
|
-
getTokenMetadata({ chainId, address, tokenId, }: {
|
|
1809
|
+
pageToken?: string;
|
|
1781
1810
|
/**
|
|
1782
|
-
*
|
|
1783
|
-
* a list of supported chain ids.
|
|
1811
|
+
* 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.
|
|
1784
1812
|
*/
|
|
1785
|
-
|
|
1813
|
+
startBlock?: number;
|
|
1786
1814
|
/**
|
|
1787
|
-
*
|
|
1815
|
+
* 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.
|
|
1788
1816
|
*/
|
|
1789
|
-
|
|
1817
|
+
endBlock?: number;
|
|
1790
1818
|
/**
|
|
1791
|
-
*
|
|
1819
|
+
* The order by which to sort results. Use "asc" for ascending
|
|
1820
|
+
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1821
|
+
* query parameter, if provided.
|
|
1792
1822
|
*/
|
|
1793
|
-
|
|
1794
|
-
}): CancelablePromise<
|
|
1823
|
+
sortOrder?: SortOrder;
|
|
1824
|
+
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
1795
1825
|
/**
|
|
1796
|
-
*
|
|
1797
|
-
* @returns
|
|
1826
|
+
* Gets a list of native transactions for an address and chain.
|
|
1827
|
+
* @returns ListNativeTransactionsResponse
|
|
1798
1828
|
* @throws ApiError
|
|
1799
1829
|
*/
|
|
1800
|
-
|
|
1830
|
+
listNativeTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
1801
1831
|
/**
|
|
1802
1832
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1803
1833
|
* a list of supported chain ids.
|
|
1804
1834
|
*/
|
|
1805
1835
|
chainId: string;
|
|
1806
1836
|
/**
|
|
1807
|
-
*
|
|
1837
|
+
* A wallet address.
|
|
1808
1838
|
*/
|
|
1809
1839
|
address: string;
|
|
1810
1840
|
/**
|
|
1811
|
-
* The
|
|
1841
|
+
* The maximum number of items to return. The minimum page size
|
|
1842
|
+
* is 1. The maximum pageSize is 100.
|
|
1812
1843
|
*/
|
|
1813
|
-
|
|
1814
|
-
|
|
1844
|
+
pageSize?: number;
|
|
1845
|
+
/**
|
|
1846
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1847
|
+
*/
|
|
1848
|
+
pageToken?: string;
|
|
1849
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1815
1850
|
/**
|
|
1816
|
-
*
|
|
1817
|
-
* @returns
|
|
1851
|
+
* Lists ERC-20 transfers for an address.
|
|
1852
|
+
* @returns ListErc20TransactionsResponse
|
|
1818
1853
|
* @throws ApiError
|
|
1819
1854
|
*/
|
|
1820
|
-
|
|
1855
|
+
listErc20Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
1821
1856
|
/**
|
|
1822
1857
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1823
1858
|
* a list of supported chain ids.
|
|
1824
1859
|
*/
|
|
1825
1860
|
chainId: string;
|
|
1826
1861
|
/**
|
|
1827
|
-
*
|
|
1862
|
+
* A wallet address.
|
|
1828
1863
|
*/
|
|
1829
1864
|
address: string;
|
|
1830
|
-
/**
|
|
1831
|
-
* TokenId on the contract
|
|
1832
|
-
*/
|
|
1833
|
-
tokenId: string;
|
|
1834
1865
|
/**
|
|
1835
1866
|
* The maximum number of items to return. The minimum page size
|
|
1836
1867
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1840,38 +1871,45 @@ declare class EvmService {
|
|
|
1840
1871
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1841
1872
|
*/
|
|
1842
1873
|
pageToken?: string;
|
|
1874
|
+
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1875
|
+
/**
|
|
1876
|
+
* Lists ERC-721 transfers for an address.
|
|
1877
|
+
* @returns ListErc721TransactionsResponse
|
|
1878
|
+
* @throws ApiError
|
|
1879
|
+
*/
|
|
1880
|
+
listErc721Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
1843
1881
|
/**
|
|
1844
|
-
*
|
|
1882
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1883
|
+
* a list of supported chain ids.
|
|
1845
1884
|
*/
|
|
1846
|
-
|
|
1885
|
+
chainId: string;
|
|
1847
1886
|
/**
|
|
1848
|
-
*
|
|
1849
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1850
|
-
* query parameter, if provided.
|
|
1887
|
+
* A wallet address.
|
|
1851
1888
|
*/
|
|
1852
|
-
|
|
1889
|
+
address: string;
|
|
1853
1890
|
/**
|
|
1854
|
-
* The
|
|
1891
|
+
* The maximum number of items to return. The minimum page size
|
|
1892
|
+
* is 1. The maximum pageSize is 100.
|
|
1855
1893
|
*/
|
|
1856
|
-
|
|
1894
|
+
pageSize?: number;
|
|
1857
1895
|
/**
|
|
1858
|
-
*
|
|
1896
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1859
1897
|
*/
|
|
1860
|
-
|
|
1861
|
-
}): CancelablePromise<
|
|
1898
|
+
pageToken?: string;
|
|
1899
|
+
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1862
1900
|
/**
|
|
1863
|
-
*
|
|
1864
|
-
* @returns
|
|
1901
|
+
* Lists of ERC-1155 transfers for an address.
|
|
1902
|
+
* @returns ListErc1155TransactionsResponse
|
|
1865
1903
|
* @throws ApiError
|
|
1866
1904
|
*/
|
|
1867
|
-
|
|
1905
|
+
listErc1155Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
1868
1906
|
/**
|
|
1869
1907
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1870
1908
|
* a list of supported chain ids.
|
|
1871
1909
|
*/
|
|
1872
1910
|
chainId: string;
|
|
1873
1911
|
/**
|
|
1874
|
-
*
|
|
1912
|
+
* A wallet address.
|
|
1875
1913
|
*/
|
|
1876
1914
|
address: string;
|
|
1877
1915
|
/**
|
|
@@ -1883,57 +1921,75 @@ declare class EvmService {
|
|
|
1883
1921
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1884
1922
|
*/
|
|
1885
1923
|
pageToken?: string;
|
|
1924
|
+
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1925
|
+
/**
|
|
1926
|
+
* Lists internal transactions for an address.
|
|
1927
|
+
* Returns a list of internal transactions for an address and
|
|
1928
|
+
* chain. Note that the internal transactions list only contains CALL or
|
|
1929
|
+
* CALLCODE transactions with a non-zero value and CREATE/CREATE2
|
|
1930
|
+
* transactions. To get a complete list of internal transactions use the
|
|
1931
|
+
* `debug_` prefixed RPC methods on an archive node.
|
|
1932
|
+
* @returns ListInternalTransactionsResponse
|
|
1933
|
+
* @throws ApiError
|
|
1934
|
+
*/
|
|
1935
|
+
listInternalTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
1886
1936
|
/**
|
|
1887
|
-
*
|
|
1937
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1938
|
+
* a list of supported chain ids.
|
|
1888
1939
|
*/
|
|
1889
|
-
|
|
1940
|
+
chainId: string;
|
|
1890
1941
|
/**
|
|
1891
|
-
*
|
|
1892
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1893
|
-
* query parameter, if provided.
|
|
1942
|
+
* A wallet address.
|
|
1894
1943
|
*/
|
|
1895
|
-
|
|
1944
|
+
address: string;
|
|
1896
1945
|
/**
|
|
1897
|
-
* The
|
|
1946
|
+
* The maximum number of items to return. The minimum page size
|
|
1947
|
+
* is 1. The maximum pageSize is 100.
|
|
1898
1948
|
*/
|
|
1899
|
-
|
|
1949
|
+
pageSize?: number;
|
|
1900
1950
|
/**
|
|
1901
|
-
*
|
|
1951
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1902
1952
|
*/
|
|
1903
|
-
|
|
1904
|
-
}): CancelablePromise<
|
|
1953
|
+
pageToken?: string;
|
|
1954
|
+
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1905
1955
|
/**
|
|
1906
|
-
*
|
|
1907
|
-
* @returns
|
|
1956
|
+
* Gets the details of a single transaction.
|
|
1957
|
+
* @returns GetTransactionResponse
|
|
1908
1958
|
* @throws ApiError
|
|
1909
1959
|
*/
|
|
1910
|
-
|
|
1960
|
+
getTransaction({ chainId, txHash, }: {
|
|
1911
1961
|
/**
|
|
1912
1962
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1913
1963
|
* a list of supported chain ids.
|
|
1914
1964
|
*/
|
|
1915
1965
|
chainId: string;
|
|
1916
1966
|
/**
|
|
1917
|
-
*
|
|
1918
|
-
* is 1. The maximum pageSize is 100.
|
|
1967
|
+
* A transaction hash.
|
|
1919
1968
|
*/
|
|
1920
|
-
|
|
1969
|
+
txHash: string;
|
|
1970
|
+
}): CancelablePromise<GetTransactionResponse>;
|
|
1971
|
+
/**
|
|
1972
|
+
* Gets the transactions that occured in a given block.
|
|
1973
|
+
* @returns ListNativeTransactionsResponse
|
|
1974
|
+
* @throws ApiError
|
|
1975
|
+
*/
|
|
1976
|
+
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1921
1977
|
/**
|
|
1922
|
-
* A
|
|
1978
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1979
|
+
* a list of supported chain ids.
|
|
1923
1980
|
*/
|
|
1924
|
-
|
|
1925
|
-
eventType?: ListingEventType;
|
|
1981
|
+
chainId: string;
|
|
1926
1982
|
/**
|
|
1927
|
-
*
|
|
1983
|
+
* A block identifier which is either a block number or the block hash.
|
|
1928
1984
|
*/
|
|
1929
|
-
|
|
1930
|
-
}): CancelablePromise<
|
|
1985
|
+
blockId: string;
|
|
1986
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1931
1987
|
/**
|
|
1932
|
-
*
|
|
1933
|
-
* @returns
|
|
1988
|
+
* Gets the latest transactions; can be filtered by status.
|
|
1989
|
+
* @returns ListNativeTransactionsResponse
|
|
1934
1990
|
* @throws ApiError
|
|
1935
1991
|
*/
|
|
1936
|
-
|
|
1992
|
+
listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
|
|
1937
1993
|
/**
|
|
1938
1994
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1939
1995
|
* a list of supported chain ids.
|
|
@@ -1949,35 +2005,10 @@ declare class EvmService {
|
|
|
1949
2005
|
*/
|
|
1950
2006
|
pageToken?: string;
|
|
1951
2007
|
/**
|
|
1952
|
-
*
|
|
1953
|
-
*/
|
|
1954
|
-
timeframe?: TrendingTimeframe;
|
|
1955
|
-
/**
|
|
1956
|
-
* Which property to sort by, in conjunction with sortOrder.
|
|
1957
|
-
*/
|
|
1958
|
-
sortBy?: CollectionSortByOption;
|
|
1959
|
-
/**
|
|
1960
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
1961
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1962
|
-
* query parameter, if provided.
|
|
1963
|
-
*/
|
|
1964
|
-
sortOrder?: SortOrder;
|
|
1965
|
-
}): CancelablePromise<ListNftCollectionWithMetricsResponse>;
|
|
1966
|
-
/**
|
|
1967
|
-
* Search for token by name and contract name.
|
|
1968
|
-
* @returns any
|
|
1969
|
-
* @throws ApiError
|
|
1970
|
-
*/
|
|
1971
|
-
search({ chainId, requestBody, }: {
|
|
1972
|
-
/**
|
|
1973
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1974
|
-
* a list of supported chain ids.
|
|
2008
|
+
* A status filter for listed transactions.
|
|
1975
2009
|
*/
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
}): CancelablePromise<{
|
|
1979
|
-
results?: Array<NftCollection>;
|
|
1980
|
-
}>;
|
|
2010
|
+
status?: TransactionStatus;
|
|
2011
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1981
2012
|
}
|
|
1982
2013
|
|
|
1983
2014
|
declare class HealthCheckService {
|
|
@@ -2132,6 +2163,17 @@ type Asset = {
|
|
|
2132
2163
|
amount: string;
|
|
2133
2164
|
};
|
|
2134
2165
|
|
|
2166
|
+
type UtxoCredential = {
|
|
2167
|
+
/**
|
|
2168
|
+
* Signature provided to consume the output
|
|
2169
|
+
*/
|
|
2170
|
+
signature?: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* Public key associated with the signature
|
|
2173
|
+
*/
|
|
2174
|
+
publicKey?: string;
|
|
2175
|
+
};
|
|
2176
|
+
|
|
2135
2177
|
type EVMInput = {
|
|
2136
2178
|
/**
|
|
2137
2179
|
* EVM address from which the asset is exported in ExportTx.
|
|
@@ -2141,17 +2183,10 @@ type EVMInput = {
|
|
|
2141
2183
|
* Asset details for the asset being transferred.
|
|
2142
2184
|
*/
|
|
2143
2185
|
asset: Asset;
|
|
2144
|
-
};
|
|
2145
|
-
|
|
2146
|
-
type UtxoCredential = {
|
|
2147
2186
|
/**
|
|
2148
|
-
*
|
|
2187
|
+
* Credentials that signed this transaction.
|
|
2149
2188
|
*/
|
|
2150
|
-
|
|
2151
|
-
/**
|
|
2152
|
-
* Public key associated with the signature
|
|
2153
|
-
*/
|
|
2154
|
-
publicKey?: string;
|
|
2189
|
+
credentials: Array<UtxoCredential>;
|
|
2155
2190
|
};
|
|
2156
2191
|
|
|
2157
2192
|
type Utxo = {
|
|
@@ -2204,10 +2239,18 @@ type Utxo = {
|
|
|
2204
2239
|
* Addresses that are eligible to sign the consumption of this output.
|
|
2205
2240
|
*/
|
|
2206
2241
|
addresses: Array<string>;
|
|
2242
|
+
/**
|
|
2243
|
+
* Hex encoded data for NFT assets
|
|
2244
|
+
*/
|
|
2245
|
+
payload?: string;
|
|
2246
|
+
/**
|
|
2247
|
+
* Index representing the minting set for the NFT mint output
|
|
2248
|
+
*/
|
|
2249
|
+
groupId?: number;
|
|
2207
2250
|
/**
|
|
2208
2251
|
* Credentials that signed the transaction to consume this utxo
|
|
2209
2252
|
*/
|
|
2210
|
-
credentials
|
|
2253
|
+
credentials?: Array<UtxoCredential>;
|
|
2211
2254
|
};
|
|
2212
2255
|
|
|
2213
2256
|
type CChainExportTransaction = {
|
|
@@ -2327,15 +2370,43 @@ declare namespace CChainImportTransaction {
|
|
|
2327
2370
|
}
|
|
2328
2371
|
}
|
|
2329
2372
|
|
|
2373
|
+
declare enum BlockchainIds {
|
|
2374
|
+
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2375
|
+
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2376
|
+
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2377
|
+
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2378
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2330
2381
|
type ChainAddressChainIdMap = {
|
|
2331
2382
|
address: string;
|
|
2332
|
-
blockchainIds:
|
|
2383
|
+
blockchainIds: Array<BlockchainIds>;
|
|
2333
2384
|
};
|
|
2334
2385
|
|
|
2335
2386
|
type ChainAddressChainIdMapListResponse = {
|
|
2336
2387
|
addresses: Array<ChainAddressChainIdMap>;
|
|
2337
2388
|
};
|
|
2338
2389
|
|
|
2390
|
+
type ProposerDetails = {
|
|
2391
|
+
proposerId?: string;
|
|
2392
|
+
proposerParentId?: string;
|
|
2393
|
+
proposerNodeId?: string;
|
|
2394
|
+
proposerPChainHeight?: number;
|
|
2395
|
+
proposerTimestamp?: number;
|
|
2396
|
+
};
|
|
2397
|
+
|
|
2398
|
+
type GetPrimaryNetworkBlockResponse = {
|
|
2399
|
+
blockNumber: string;
|
|
2400
|
+
blockHash: string;
|
|
2401
|
+
parentHash: string;
|
|
2402
|
+
blockTimestamp: number;
|
|
2403
|
+
blockType: string;
|
|
2404
|
+
txCount: number;
|
|
2405
|
+
transactions: Array<string>;
|
|
2406
|
+
blockSizeBytes: number;
|
|
2407
|
+
proposerDetails?: ProposerDetails;
|
|
2408
|
+
};
|
|
2409
|
+
|
|
2339
2410
|
type CChainSharedAssetBalance = {
|
|
2340
2411
|
/**
|
|
2341
2412
|
* Unique ID for an asset.
|
|
@@ -2370,8 +2441,25 @@ type CChainAtomicBalances = {
|
|
|
2370
2441
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
2371
2442
|
};
|
|
2372
2443
|
|
|
2444
|
+
declare enum PrimaryNetwork {
|
|
2445
|
+
MAINNET = "mainnet",
|
|
2446
|
+
FUJI = "fuji"
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
declare enum PrimaryNetworkChainName {
|
|
2450
|
+
X_CHAIN = "x-chain",
|
|
2451
|
+
P_CHAIN = "p-chain",
|
|
2452
|
+
C_CHAIN = "c-chain"
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
type PrimaryNetworkChainInfo = {
|
|
2456
|
+
chainName: PrimaryNetworkChainName;
|
|
2457
|
+
network: PrimaryNetwork;
|
|
2458
|
+
};
|
|
2459
|
+
|
|
2373
2460
|
type ListCChainAtomicBalancesResponse = {
|
|
2374
2461
|
balances: CChainAtomicBalances;
|
|
2462
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2375
2463
|
};
|
|
2376
2464
|
|
|
2377
2465
|
type ListCChainAtomicTransactionsResponse = {
|
|
@@ -2380,6 +2468,7 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2380
2468
|
*/
|
|
2381
2469
|
nextPageToken?: string;
|
|
2382
2470
|
transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
|
|
2471
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2383
2472
|
};
|
|
2384
2473
|
|
|
2385
2474
|
type PChainAsset = {
|
|
@@ -2391,31 +2480,32 @@ type PChainBalance = {
|
|
|
2391
2480
|
/**
|
|
2392
2481
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2393
2482
|
*/
|
|
2394
|
-
unlockedUnstaked
|
|
2483
|
+
unlockedUnstaked: Array<PChainAsset>;
|
|
2395
2484
|
/**
|
|
2396
2485
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2397
2486
|
*/
|
|
2398
|
-
unlockedStaked
|
|
2487
|
+
unlockedStaked: Array<PChainAsset>;
|
|
2399
2488
|
/**
|
|
2400
2489
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2401
2490
|
*/
|
|
2402
|
-
lockedPlatform
|
|
2491
|
+
lockedPlatform: Array<PChainAsset>;
|
|
2403
2492
|
/**
|
|
2404
2493
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2405
2494
|
*/
|
|
2406
|
-
lockedStakeable
|
|
2495
|
+
lockedStakeable: Array<PChainAsset>;
|
|
2407
2496
|
/**
|
|
2408
2497
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2409
2498
|
*/
|
|
2410
|
-
lockedStaked
|
|
2499
|
+
lockedStaked: Array<PChainAsset>;
|
|
2411
2500
|
/**
|
|
2412
2501
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked. Sum of lockedPlatform and lockedStakeable. TO BE DEPRECATED.
|
|
2413
2502
|
*/
|
|
2414
|
-
lockedUnstaked
|
|
2503
|
+
lockedUnstaked: Array<PChainAsset>;
|
|
2415
2504
|
};
|
|
2416
2505
|
|
|
2417
2506
|
type ListPChainBalancesResponse = {
|
|
2418
2507
|
balances: PChainBalance;
|
|
2508
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2419
2509
|
};
|
|
2420
2510
|
|
|
2421
2511
|
declare enum PChainTransactionType {
|
|
@@ -2451,9 +2541,11 @@ type PChainUtxo = {
|
|
|
2451
2541
|
utxoId: string;
|
|
2452
2542
|
txHash: string;
|
|
2453
2543
|
outputIndex: number;
|
|
2544
|
+
blockNumber: string;
|
|
2454
2545
|
blockTimestamp: number;
|
|
2455
2546
|
consumingTxHash?: string;
|
|
2456
2547
|
consumingBlockTimestamp?: number;
|
|
2548
|
+
consumingBlockNumber?: string;
|
|
2457
2549
|
assetId: string;
|
|
2458
2550
|
utxoType: UtxoType;
|
|
2459
2551
|
amount: string;
|
|
@@ -2463,6 +2555,8 @@ type PChainUtxo = {
|
|
|
2463
2555
|
createdOnChainId: string;
|
|
2464
2556
|
consumedOnChainId: string;
|
|
2465
2557
|
staked?: boolean;
|
|
2558
|
+
utxoStartTimestamp?: number;
|
|
2559
|
+
utxoEndTimestamp?: number;
|
|
2466
2560
|
rewardType?: RewardType;
|
|
2467
2561
|
/**
|
|
2468
2562
|
* To be deprecated
|
|
@@ -2501,15 +2595,15 @@ type PChainTransaction = {
|
|
|
2501
2595
|
/**
|
|
2502
2596
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
2503
2597
|
*/
|
|
2504
|
-
value
|
|
2598
|
+
value: Array<PChainAsset>;
|
|
2505
2599
|
/**
|
|
2506
2600
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
2507
2601
|
*/
|
|
2508
|
-
amountBurned
|
|
2602
|
+
amountBurned: Array<PChainAsset>;
|
|
2509
2603
|
/**
|
|
2510
2604
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
2511
2605
|
*/
|
|
2512
|
-
amountStaked
|
|
2606
|
+
amountStaked: Array<PChainAsset>;
|
|
2513
2607
|
/**
|
|
2514
2608
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
2515
2609
|
*/
|
|
@@ -2553,6 +2647,7 @@ type ListPChainTransactionsResponse = {
|
|
|
2553
2647
|
*/
|
|
2554
2648
|
nextPageToken?: string;
|
|
2555
2649
|
transactions: Array<PChainTransaction>;
|
|
2650
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2556
2651
|
};
|
|
2557
2652
|
|
|
2558
2653
|
type ListPChainUtxosResponse = {
|
|
@@ -2561,6 +2656,28 @@ type ListPChainUtxosResponse = {
|
|
|
2561
2656
|
*/
|
|
2562
2657
|
nextPageToken?: string;
|
|
2563
2658
|
utxos: Array<PChainUtxo>;
|
|
2659
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2660
|
+
};
|
|
2661
|
+
|
|
2662
|
+
type PrimaryNetworkBlock = {
|
|
2663
|
+
blockNumber: string;
|
|
2664
|
+
blockHash: string;
|
|
2665
|
+
parentHash: string;
|
|
2666
|
+
blockTimestamp: number;
|
|
2667
|
+
blockType: string;
|
|
2668
|
+
txCount: number;
|
|
2669
|
+
transactions: Array<string>;
|
|
2670
|
+
blockSizeBytes: number;
|
|
2671
|
+
proposerDetails?: ProposerDetails;
|
|
2672
|
+
};
|
|
2673
|
+
|
|
2674
|
+
type ListPrimaryNetworkBlocksResponse = {
|
|
2675
|
+
/**
|
|
2676
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2677
|
+
*/
|
|
2678
|
+
nextPageToken?: string;
|
|
2679
|
+
blocks: Array<PrimaryNetworkBlock>;
|
|
2680
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2564
2681
|
};
|
|
2565
2682
|
|
|
2566
2683
|
type ListUtxosResponse = {
|
|
@@ -2569,6 +2686,7 @@ type ListUtxosResponse = {
|
|
|
2569
2686
|
*/
|
|
2570
2687
|
nextPageToken?: string;
|
|
2571
2688
|
utxos: Array<Utxo>;
|
|
2689
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2572
2690
|
};
|
|
2573
2691
|
|
|
2574
2692
|
type XChainAssetBalance = {
|
|
@@ -2643,6 +2761,7 @@ type XChainBalances = {
|
|
|
2643
2761
|
|
|
2644
2762
|
type ListXChainBalancesResponse = {
|
|
2645
2763
|
balances: XChainBalances;
|
|
2764
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2646
2765
|
};
|
|
2647
2766
|
|
|
2648
2767
|
type XChainAssetDetails = {
|
|
@@ -2682,7 +2801,7 @@ type XChainLinearTransaction = {
|
|
|
2682
2801
|
*/
|
|
2683
2802
|
txHash: string;
|
|
2684
2803
|
/**
|
|
2685
|
-
* Represents
|
|
2804
|
+
* Represents chain format this transaction is included in.
|
|
2686
2805
|
*/
|
|
2687
2806
|
chainFormat: XChainLinearTransaction.chainFormat;
|
|
2688
2807
|
/**
|
|
@@ -2730,11 +2849,11 @@ type XChainLinearTransaction = {
|
|
|
2730
2849
|
};
|
|
2731
2850
|
declare namespace XChainLinearTransaction {
|
|
2732
2851
|
/**
|
|
2733
|
-
* Represents
|
|
2852
|
+
* Represents chain format this transaction is included in.
|
|
2734
2853
|
*/
|
|
2735
2854
|
enum chainFormat {
|
|
2736
|
-
|
|
2737
|
-
|
|
2855
|
+
NON_LINEAR = "non-linear",
|
|
2856
|
+
LINEAR = "linear"
|
|
2738
2857
|
}
|
|
2739
2858
|
}
|
|
2740
2859
|
|
|
@@ -2759,7 +2878,7 @@ type XChainNonLinearTransaction = {
|
|
|
2759
2878
|
*/
|
|
2760
2879
|
txHash: string;
|
|
2761
2880
|
/**
|
|
2762
|
-
* Represents
|
|
2881
|
+
* Represents chain format this transaction is included in.
|
|
2763
2882
|
*/
|
|
2764
2883
|
chainFormat: XChainNonLinearTransaction.chainFormat;
|
|
2765
2884
|
/**
|
|
@@ -2803,11 +2922,11 @@ type XChainNonLinearTransaction = {
|
|
|
2803
2922
|
};
|
|
2804
2923
|
declare namespace XChainNonLinearTransaction {
|
|
2805
2924
|
/**
|
|
2806
|
-
* Represents
|
|
2925
|
+
* Represents chain format this transaction is included in.
|
|
2807
2926
|
*/
|
|
2808
2927
|
enum chainFormat {
|
|
2809
|
-
|
|
2810
|
-
|
|
2928
|
+
NON_LINEAR = "non-linear",
|
|
2929
|
+
LINEAR = "linear"
|
|
2811
2930
|
}
|
|
2812
2931
|
}
|
|
2813
2932
|
|
|
@@ -2817,6 +2936,7 @@ type ListXChainTransactionsResponse = {
|
|
|
2817
2936
|
*/
|
|
2818
2937
|
nextPageToken?: string;
|
|
2819
2938
|
transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
|
|
2939
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2820
2940
|
};
|
|
2821
2941
|
|
|
2822
2942
|
type XChainVertex = {
|
|
@@ -2836,6 +2956,7 @@ type ListXChainVerticesResponse = {
|
|
|
2836
2956
|
*/
|
|
2837
2957
|
nextPageToken?: string;
|
|
2838
2958
|
vertices: Array<XChainVertex>;
|
|
2959
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2839
2960
|
};
|
|
2840
2961
|
|
|
2841
2962
|
declare enum Network {
|
|
@@ -2986,7 +3107,7 @@ declare class PrimaryNetworkService {
|
|
|
2986
3107
|
* @returns any
|
|
2987
3108
|
* @throws ApiError
|
|
2988
3109
|
*/
|
|
2989
|
-
getBalancesByAddresses({ blockchainId, network, addresses, }: {
|
|
3110
|
+
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
2990
3111
|
/**
|
|
2991
3112
|
* A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
|
|
2992
3113
|
*/
|
|
@@ -2995,6 +3116,11 @@ declare class PrimaryNetworkService {
|
|
|
2995
3116
|
* Either mainnet or a testnet.
|
|
2996
3117
|
*/
|
|
2997
3118
|
network: Network;
|
|
3119
|
+
/**
|
|
3120
|
+
* An epoch timestamp in seconds.
|
|
3121
|
+
* Balance will be calculated as of this timestamp.
|
|
3122
|
+
*/
|
|
3123
|
+
blockTimestamp?: number;
|
|
2998
3124
|
/**
|
|
2999
3125
|
* 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".
|
|
3000
3126
|
*/
|
|
@@ -3002,7 +3128,7 @@ declare class PrimaryNetworkService {
|
|
|
3002
3128
|
}): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
|
|
3003
3129
|
/**
|
|
3004
3130
|
* Returns block by block_height or block_hash on P-Chain, X-Chain (Cortina), C-Chain (hexadecimal for C-Chain).
|
|
3005
|
-
* @returns
|
|
3131
|
+
* @returns GetPrimaryNetworkBlockResponse
|
|
3006
3132
|
* @throws ApiError
|
|
3007
3133
|
*/
|
|
3008
3134
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3018,10 +3144,10 @@ declare class PrimaryNetworkService {
|
|
|
3018
3144
|
* A block identifier which is either a block number or the block hash.
|
|
3019
3145
|
*/
|
|
3020
3146
|
blockId: string;
|
|
3021
|
-
}): CancelablePromise<
|
|
3147
|
+
}): CancelablePromise<GetPrimaryNetworkBlockResponse>;
|
|
3022
3148
|
/**
|
|
3023
3149
|
* Returns latest blocks proposed by a given NodeID, up to user defined limit.
|
|
3024
|
-
* @returns
|
|
3150
|
+
* @returns ListPrimaryNetworkBlocksResponse
|
|
3025
3151
|
* @throws ApiError
|
|
3026
3152
|
*/
|
|
3027
3153
|
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
|
|
@@ -3046,10 +3172,10 @@ declare class PrimaryNetworkService {
|
|
|
3046
3172
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3047
3173
|
*/
|
|
3048
3174
|
pageToken?: string;
|
|
3049
|
-
}): CancelablePromise<
|
|
3175
|
+
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3050
3176
|
/**
|
|
3051
3177
|
* Returns latest blocks, up to user defined limit on P-Chain, X-Chain or C-Chain.
|
|
3052
|
-
* @returns
|
|
3178
|
+
* @returns ListPrimaryNetworkBlocksResponse
|
|
3053
3179
|
* @throws ApiError
|
|
3054
3180
|
*/
|
|
3055
3181
|
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
|
|
@@ -3070,7 +3196,7 @@ declare class PrimaryNetworkService {
|
|
|
3070
3196
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3071
3197
|
*/
|
|
3072
3198
|
pageToken?: string;
|
|
3073
|
-
}): CancelablePromise<
|
|
3199
|
+
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3074
3200
|
/**
|
|
3075
3201
|
* Returns latest vertices, up to user defined limit on X-Chain.
|
|
3076
3202
|
* @returns ListXChainVerticesResponse
|
|
@@ -3239,4 +3365,4 @@ declare class ApiError extends Error {
|
|
|
3239
3365
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3240
3366
|
}
|
|
3241
3367
|
|
|
3242
|
-
export { Address, ApiError, Asset, BaseHttpRequest,
|
|
3368
|
+
export { Address, ApiError, Asset, BaseHttpRequest, BlockchainId, BlockchainIds, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelListingEventResponse, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CloseAuctionEventResponse, CollectionMetrics, CollectionSortByOption, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmBlock, EvmNetworkOptions, EvmService, FloorPrice, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListInternalTransactionsResponse, ListListingsResponse, ListNativeTransactionsResponse, ListNftCollectionWithMetricsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPrimaryNetworkBlocksResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, ListingCurrencyType, ListingEventType, ListingResponse, ListingType, ListingsSortByOption, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NftCollection, NftCollectionWithMetrics, NftFilterOptionsProperty, NftSearchBody, NftSearchResultTypeOption, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OpenListingEventResponse, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainTransaction, PChainTransactionType, PChainUtxo, PaginationParams, PrimaryNetwork, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkService, ProposerDetails, PurchaseListingEventResponse, ResourceLink, ResourceLinkType, RewardType, RichAddress, SortOrder, TokenWithPrice, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, TrendingTimeframe, UtilityAddresses, Utxo, UtxoCredential, UtxoType, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
|