@avalabs/glacier-sdk 2.8.0-alpha.108 → 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 +287 -254
- package/dist/index.js +178 -161
- 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/EvmBlock.d.ts +0 -4
- package/esm/generated/models/FloorPrice.d.ts +2 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +0 -4
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
- 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 +2 -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/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- 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/services/EvmService.d.ts +238 -234
- package/esm/generated/services/EvmService.js +163 -161
- package/esm/index.d.ts +3 -0
- package/esm/index.js +2 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -253,10 +253,6 @@ type GetEvmBlockResponse = {
|
|
|
253
253
|
* The number of evm transactions in the block.
|
|
254
254
|
*/
|
|
255
255
|
txCount: number;
|
|
256
|
-
/**
|
|
257
|
-
* The number of atomic transactions in the block.
|
|
258
|
-
*/
|
|
259
|
-
atomicTxCount: number;
|
|
260
256
|
/**
|
|
261
257
|
* The base gas fee for a transaction to be included in the block.
|
|
262
258
|
*/
|
|
@@ -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
|
|
|
@@ -696,6 +695,7 @@ type Erc1155Transfer = {
|
|
|
696
695
|
txHash: string;
|
|
697
696
|
from: RichAddress;
|
|
698
697
|
to: RichAddress;
|
|
698
|
+
logIndex: number;
|
|
699
699
|
value: string;
|
|
700
700
|
erc1155Token: Erc1155Token;
|
|
701
701
|
};
|
|
@@ -786,6 +786,7 @@ type Erc20Transfer = {
|
|
|
786
786
|
txHash: string;
|
|
787
787
|
from: RichAddress;
|
|
788
788
|
to: RichAddress;
|
|
789
|
+
logIndex: number;
|
|
789
790
|
value: string;
|
|
790
791
|
erc20Token: Erc20Token;
|
|
791
792
|
};
|
|
@@ -828,6 +829,7 @@ type Erc721Transfer = {
|
|
|
828
829
|
txHash: string;
|
|
829
830
|
from: RichAddress;
|
|
830
831
|
to: RichAddress;
|
|
832
|
+
logIndex: number;
|
|
831
833
|
erc721Token: Erc721Token;
|
|
832
834
|
};
|
|
833
835
|
|
|
@@ -856,10 +858,6 @@ type EvmBlock = {
|
|
|
856
858
|
* The number of evm transactions in the block.
|
|
857
859
|
*/
|
|
858
860
|
txCount: number;
|
|
859
|
-
/**
|
|
860
|
-
* The number of atomic transactions in the block.
|
|
861
|
-
*/
|
|
862
|
-
atomicTxCount: number;
|
|
863
861
|
/**
|
|
864
862
|
* The base gas fee for a transaction to be included in the block.
|
|
865
863
|
*/
|
|
@@ -1152,6 +1150,8 @@ type ListNativeTransactionsResponse = {
|
|
|
1152
1150
|
type FloorPrice = {
|
|
1153
1151
|
floorPrice: string;
|
|
1154
1152
|
marketplace: string;
|
|
1153
|
+
listingIds: Array<string>;
|
|
1154
|
+
isOverallFloorPrice: boolean;
|
|
1155
1155
|
};
|
|
1156
1156
|
|
|
1157
1157
|
type CollectionMetrics = {
|
|
@@ -1189,8 +1189,7 @@ type CollectionMetrics = {
|
|
|
1189
1189
|
averagePriceInPreviousTimeframe: string;
|
|
1190
1190
|
latestSaleTimestamp?: number;
|
|
1191
1191
|
marketplaceFloorPrices: Array<FloorPrice>;
|
|
1192
|
-
|
|
1193
|
-
minFloorPriceMarketplace?: string;
|
|
1192
|
+
floorPrice?: string;
|
|
1194
1193
|
};
|
|
1195
1194
|
|
|
1196
1195
|
type NftCollectionWithMetrics = {
|
|
@@ -1321,7 +1320,7 @@ declare class EvmService {
|
|
|
1321
1320
|
* @returns GetNativeBalanceResponse
|
|
1322
1321
|
* @throws ApiError
|
|
1323
1322
|
*/
|
|
1324
|
-
getNativeBalance({ chainId, address, currency, }: {
|
|
1323
|
+
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
1325
1324
|
/**
|
|
1326
1325
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1327
1326
|
* a list of supported chain ids.
|
|
@@ -1331,6 +1330,10 @@ declare class EvmService {
|
|
|
1331
1330
|
* A wallet address.
|
|
1332
1331
|
*/
|
|
1333
1332
|
address: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* The block number, if not defined the block number will be the latest block.
|
|
1335
|
+
*/
|
|
1336
|
+
blockNumber?: string;
|
|
1334
1337
|
/**
|
|
1335
1338
|
* The currency that return values should use. Defaults to USD.
|
|
1336
1339
|
*/
|
|
@@ -1499,120 +1502,84 @@ declare class EvmService {
|
|
|
1499
1502
|
currency?: CurrencyCode;
|
|
1500
1503
|
}): CancelablePromise<GetTransactionResponse>;
|
|
1501
1504
|
/**
|
|
1502
|
-
* Gets
|
|
1503
|
-
*
|
|
1504
|
-
* @returns ListTransfersResponse
|
|
1505
|
+
* Gets the list of chains supported by the api.
|
|
1506
|
+
* @returns ListChainsResponse
|
|
1505
1507
|
* @throws ApiError
|
|
1506
1508
|
*/
|
|
1507
|
-
|
|
1509
|
+
supportedChains(): CancelablePromise<ListChainsResponse>;
|
|
1510
|
+
/**
|
|
1511
|
+
* Gets chain information by chain id.
|
|
1512
|
+
* @returns GetChainResponse
|
|
1513
|
+
* @throws ApiError
|
|
1514
|
+
*/
|
|
1515
|
+
getChainInfo({ chainId, }: {
|
|
1508
1516
|
/**
|
|
1509
1517
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1510
1518
|
* a list of supported chain ids.
|
|
1511
1519
|
*/
|
|
1512
1520
|
chainId: string;
|
|
1513
|
-
|
|
1514
|
-
* A wallet address.
|
|
1515
|
-
*/
|
|
1516
|
-
address: string;
|
|
1517
|
-
/**
|
|
1518
|
-
* The maximum number of items to return. The minimum page size
|
|
1519
|
-
* is 1. The maximum pageSize is 100.
|
|
1520
|
-
*/
|
|
1521
|
-
pageSize?: number;
|
|
1522
|
-
/**
|
|
1523
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1524
|
-
*/
|
|
1525
|
-
pageToken?: string;
|
|
1526
|
-
}): CancelablePromise<ListTransfersResponse>;
|
|
1521
|
+
}): CancelablePromise<GetChainResponse>;
|
|
1527
1522
|
/**
|
|
1528
|
-
*
|
|
1529
|
-
*
|
|
1530
|
-
*
|
|
1531
|
-
*
|
|
1532
|
-
* returned are only those where the input address had an interaction.
|
|
1533
|
-
* Specifically, those list only inlcude entries where the input address
|
|
1534
|
-
* was the sender (`from` field) or the receiver (`to` field) for the
|
|
1535
|
-
* sub-transaction. Therefore the transactions returned from this list may
|
|
1536
|
-
* not be complete representations of the on-chain data. For a complete
|
|
1537
|
-
* view of a transaction use the `/chains/:chainId/transactions/:txHash`
|
|
1538
|
-
* endpoint.
|
|
1539
|
-
* @returns ListTransactionDetailsResponse
|
|
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
|
|
1540
1527
|
* @throws ApiError
|
|
1541
1528
|
*/
|
|
1542
|
-
|
|
1529
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
1543
1530
|
/**
|
|
1544
1531
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1545
1532
|
* a list of supported chain ids.
|
|
1546
1533
|
*/
|
|
1547
1534
|
chainId: string;
|
|
1548
1535
|
/**
|
|
1549
|
-
*
|
|
1536
|
+
* Contract address on the relevant chain.
|
|
1550
1537
|
*/
|
|
1551
1538
|
address: string;
|
|
1552
1539
|
/**
|
|
1553
|
-
*
|
|
1554
|
-
* is 1. The maximum pageSize is 100.
|
|
1555
|
-
*/
|
|
1556
|
-
pageSize?: number;
|
|
1557
|
-
/**
|
|
1558
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1559
|
-
*/
|
|
1560
|
-
pageToken?: string;
|
|
1561
|
-
/**
|
|
1562
|
-
* 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.
|
|
1563
|
-
*/
|
|
1564
|
-
startBlock?: number;
|
|
1565
|
-
/**
|
|
1566
|
-
* 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.
|
|
1567
|
-
*/
|
|
1568
|
-
endBlock?: number;
|
|
1569
|
-
/**
|
|
1570
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
1571
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1572
|
-
* query parameter, if provided.
|
|
1540
|
+
* TokenId on the contract
|
|
1573
1541
|
*/
|
|
1574
|
-
|
|
1575
|
-
}): CancelablePromise<
|
|
1542
|
+
tokenId: string;
|
|
1543
|
+
}): CancelablePromise<any>;
|
|
1576
1544
|
/**
|
|
1577
|
-
*
|
|
1578
|
-
* @returns
|
|
1545
|
+
* Get collection data for provided a ChainID and address.
|
|
1546
|
+
* @returns NftCollectionWithMetrics
|
|
1579
1547
|
* @throws ApiError
|
|
1580
1548
|
*/
|
|
1581
|
-
|
|
1549
|
+
getCollection({ chainId, address, timeframe, }: {
|
|
1582
1550
|
/**
|
|
1583
1551
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1584
1552
|
* a list of supported chain ids.
|
|
1585
1553
|
*/
|
|
1586
1554
|
chainId: string;
|
|
1587
1555
|
/**
|
|
1588
|
-
*
|
|
1556
|
+
* Contract address on the relevant chain.
|
|
1589
1557
|
*/
|
|
1590
1558
|
address: string;
|
|
1591
1559
|
/**
|
|
1592
|
-
* The
|
|
1593
|
-
* is 1. The maximum pageSize is 100.
|
|
1594
|
-
*/
|
|
1595
|
-
pageSize?: number;
|
|
1596
|
-
/**
|
|
1597
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1560
|
+
* The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
|
|
1598
1561
|
*/
|
|
1599
|
-
|
|
1600
|
-
}): CancelablePromise<
|
|
1562
|
+
timeframe?: TrendingTimeframe;
|
|
1563
|
+
}): CancelablePromise<NftCollectionWithMetrics>;
|
|
1601
1564
|
/**
|
|
1602
|
-
*
|
|
1603
|
-
* @returns
|
|
1565
|
+
* List open listings for a NFT token.
|
|
1566
|
+
* @returns ListListingsResponse
|
|
1604
1567
|
* @throws ApiError
|
|
1605
1568
|
*/
|
|
1606
|
-
|
|
1569
|
+
listListingsByCollectionTokenId({ chainId, address, tokenId, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
|
|
1607
1570
|
/**
|
|
1608
1571
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1609
1572
|
* a list of supported chain ids.
|
|
1610
1573
|
*/
|
|
1611
1574
|
chainId: string;
|
|
1612
1575
|
/**
|
|
1613
|
-
*
|
|
1576
|
+
* Contract address on the relevant chain.
|
|
1614
1577
|
*/
|
|
1615
1578
|
address: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* TokenId on the contract
|
|
1581
|
+
*/
|
|
1582
|
+
tokenId: string;
|
|
1616
1583
|
/**
|
|
1617
1584
|
* The maximum number of items to return. The minimum page size
|
|
1618
1585
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1622,45 +1589,38 @@ declare class EvmService {
|
|
|
1622
1589
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1623
1590
|
*/
|
|
1624
1591
|
pageToken?: string;
|
|
1625
|
-
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1626
|
-
/**
|
|
1627
|
-
* Lists ERC-721 transfers for an address.
|
|
1628
|
-
* @returns ListErc721TransactionsResponse
|
|
1629
|
-
* @throws ApiError
|
|
1630
|
-
*/
|
|
1631
|
-
listErc721Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
1632
1592
|
/**
|
|
1633
|
-
*
|
|
1634
|
-
* a list of supported chain ids.
|
|
1593
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
1635
1594
|
*/
|
|
1636
|
-
|
|
1595
|
+
sortBy?: ListingsSortByOption;
|
|
1637
1596
|
/**
|
|
1638
|
-
*
|
|
1597
|
+
* The order by which to sort results. Use "asc" for ascending
|
|
1598
|
+
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1599
|
+
* query parameter, if provided.
|
|
1639
1600
|
*/
|
|
1640
|
-
|
|
1601
|
+
sortOrder?: SortOrder;
|
|
1641
1602
|
/**
|
|
1642
|
-
* The
|
|
1643
|
-
* is 1. The maximum pageSize is 100.
|
|
1603
|
+
* The currency that return values should use. Defaults to USD.
|
|
1644
1604
|
*/
|
|
1645
|
-
|
|
1605
|
+
currency?: CurrencyCode;
|
|
1646
1606
|
/**
|
|
1647
|
-
*
|
|
1607
|
+
* Determines whether to return full transaction history for listings.
|
|
1648
1608
|
*/
|
|
1649
|
-
|
|
1650
|
-
}): CancelablePromise<
|
|
1609
|
+
includeHistory?: boolean;
|
|
1610
|
+
}): CancelablePromise<ListListingsResponse>;
|
|
1651
1611
|
/**
|
|
1652
|
-
*
|
|
1653
|
-
* @returns
|
|
1612
|
+
* List open listings for a NFT collection.
|
|
1613
|
+
* @returns ListListingsResponse
|
|
1654
1614
|
* @throws ApiError
|
|
1655
1615
|
*/
|
|
1656
|
-
|
|
1616
|
+
listListingsByCollection({ chainId, address, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
|
|
1657
1617
|
/**
|
|
1658
1618
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1659
1619
|
* a list of supported chain ids.
|
|
1660
1620
|
*/
|
|
1661
1621
|
chainId: string;
|
|
1662
1622
|
/**
|
|
1663
|
-
*
|
|
1623
|
+
* Contract address on the relevant chain.
|
|
1664
1624
|
*/
|
|
1665
1625
|
address: string;
|
|
1666
1626
|
/**
|
|
@@ -1672,75 +1632,57 @@ declare class EvmService {
|
|
|
1672
1632
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1673
1633
|
*/
|
|
1674
1634
|
pageToken?: string;
|
|
1675
|
-
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1676
|
-
/**
|
|
1677
|
-
* Lists internal transactions for an address.
|
|
1678
|
-
* Returns a list of internal transactions for an address and
|
|
1679
|
-
* chain. Note that the internal transactions list only contains CALL or
|
|
1680
|
-
* CALLCODE transactions with a non-zero value and CREATE/CREATE2
|
|
1681
|
-
* transactions. To get a complete list of internal transactions use the
|
|
1682
|
-
* `debug_` prefixed RPC methods on an archive node.
|
|
1683
|
-
* @returns ListInternalTransactionsResponse
|
|
1684
|
-
* @throws ApiError
|
|
1685
|
-
*/
|
|
1686
|
-
listInternalTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
1687
1635
|
/**
|
|
1688
|
-
*
|
|
1689
|
-
* a list of supported chain ids.
|
|
1636
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
1690
1637
|
*/
|
|
1691
|
-
|
|
1638
|
+
sortBy?: ListingsSortByOption;
|
|
1692
1639
|
/**
|
|
1693
|
-
*
|
|
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.
|
|
1694
1643
|
*/
|
|
1695
|
-
|
|
1644
|
+
sortOrder?: SortOrder;
|
|
1696
1645
|
/**
|
|
1697
|
-
* The
|
|
1698
|
-
* is 1. The maximum pageSize is 100.
|
|
1646
|
+
* The currency that return values should use. Defaults to USD.
|
|
1699
1647
|
*/
|
|
1700
|
-
|
|
1648
|
+
currency?: CurrencyCode;
|
|
1701
1649
|
/**
|
|
1702
|
-
*
|
|
1650
|
+
* Determines whether to return full transaction history for listings.
|
|
1703
1651
|
*/
|
|
1704
|
-
|
|
1705
|
-
}): CancelablePromise<
|
|
1652
|
+
includeHistory?: boolean;
|
|
1653
|
+
}): CancelablePromise<ListListingsResponse>;
|
|
1706
1654
|
/**
|
|
1707
|
-
*
|
|
1708
|
-
* @returns
|
|
1655
|
+
* List recent listings on the chain.
|
|
1656
|
+
* @returns ListListingsResponse
|
|
1709
1657
|
* @throws ApiError
|
|
1710
1658
|
*/
|
|
1711
|
-
|
|
1659
|
+
listRecentListings({ chainId, pageSize, pageToken, eventType, currency, }: {
|
|
1712
1660
|
/**
|
|
1713
1661
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1714
1662
|
* a list of supported chain ids.
|
|
1715
1663
|
*/
|
|
1716
1664
|
chainId: string;
|
|
1717
1665
|
/**
|
|
1718
|
-
*
|
|
1666
|
+
* The maximum number of items to return. The minimum page size
|
|
1667
|
+
* is 1. The maximum pageSize is 100.
|
|
1719
1668
|
*/
|
|
1720
|
-
|
|
1721
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
1722
|
-
/**
|
|
1723
|
-
* Gets the transactions that occured in a given block.
|
|
1724
|
-
* @returns ListNativeTransactionsResponse
|
|
1725
|
-
* @throws ApiError
|
|
1726
|
-
*/
|
|
1727
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1669
|
+
pageSize?: number;
|
|
1728
1670
|
/**
|
|
1729
|
-
* A
|
|
1730
|
-
* a list of supported chain ids.
|
|
1671
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1731
1672
|
*/
|
|
1732
|
-
|
|
1673
|
+
pageToken?: string;
|
|
1674
|
+
eventType?: ListingEventType;
|
|
1733
1675
|
/**
|
|
1734
|
-
*
|
|
1676
|
+
* The currency that return values should use. Defaults to USD.
|
|
1735
1677
|
*/
|
|
1736
|
-
|
|
1737
|
-
}): CancelablePromise<
|
|
1678
|
+
currency?: CurrencyCode;
|
|
1679
|
+
}): CancelablePromise<ListListingsResponse>;
|
|
1738
1680
|
/**
|
|
1739
|
-
*
|
|
1740
|
-
* @returns
|
|
1681
|
+
* List details and metrics for collections.
|
|
1682
|
+
* @returns ListNftCollectionWithMetricsResponse
|
|
1741
1683
|
* @throws ApiError
|
|
1742
1684
|
*/
|
|
1743
|
-
|
|
1685
|
+
listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
|
|
1744
1686
|
/**
|
|
1745
1687
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1746
1688
|
* a list of supported chain ids.
|
|
@@ -1756,50 +1698,35 @@ declare class EvmService {
|
|
|
1756
1698
|
*/
|
|
1757
1699
|
pageToken?: string;
|
|
1758
1700
|
/**
|
|
1759
|
-
*
|
|
1701
|
+
* The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
|
|
1760
1702
|
*/
|
|
1761
|
-
|
|
1762
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1763
|
-
/**
|
|
1764
|
-
* Gets the list of chains supported by the api.
|
|
1765
|
-
* @returns ListChainsResponse
|
|
1766
|
-
* @throws ApiError
|
|
1767
|
-
*/
|
|
1768
|
-
supportedChains(): CancelablePromise<ListChainsResponse>;
|
|
1769
|
-
/**
|
|
1770
|
-
* Gets chain information by chain id.
|
|
1771
|
-
* @returns GetChainResponse
|
|
1772
|
-
* @throws ApiError
|
|
1773
|
-
*/
|
|
1774
|
-
getChainInfo({ chainId, }: {
|
|
1703
|
+
timeframe?: TrendingTimeframe;
|
|
1775
1704
|
/**
|
|
1776
|
-
*
|
|
1777
|
-
* a list of supported chain ids.
|
|
1705
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
1778
1706
|
*/
|
|
1779
|
-
|
|
1780
|
-
|
|
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>;
|
|
1781
1715
|
/**
|
|
1782
|
-
*
|
|
1783
|
-
* Triggers reindexing of token metadata for nft contracts.
|
|
1784
|
-
* Will throw 400 if Nft has been indexed within the last hour.
|
|
1716
|
+
* Search for token by name and contract name.
|
|
1785
1717
|
* @returns any
|
|
1786
1718
|
* @throws ApiError
|
|
1787
1719
|
*/
|
|
1788
|
-
|
|
1720
|
+
search({ chainId, requestBody, }: {
|
|
1789
1721
|
/**
|
|
1790
1722
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1791
1723
|
* a list of supported chain ids.
|
|
1792
1724
|
*/
|
|
1793
1725
|
chainId: string;
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* TokenId on the contract
|
|
1800
|
-
*/
|
|
1801
|
-
tokenId: string;
|
|
1802
|
-
}): CancelablePromise<any>;
|
|
1726
|
+
requestBody: NftSearchBody;
|
|
1727
|
+
}): CancelablePromise<{
|
|
1728
|
+
results?: Array<NftCollection>;
|
|
1729
|
+
}>;
|
|
1803
1730
|
/**
|
|
1804
1731
|
* Get metadata for a specific token by providing the contract address and token id.
|
|
1805
1732
|
* @returns any
|
|
@@ -1821,44 +1748,56 @@ declare class EvmService {
|
|
|
1821
1748
|
tokenId: string;
|
|
1822
1749
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1823
1750
|
/**
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1751
|
+
* Gets a list of erc transfers for an ERC-20, ERC-721,
|
|
1752
|
+
* or ERC-1155 contract address.
|
|
1753
|
+
* @returns ListTransfersResponse
|
|
1826
1754
|
* @throws ApiError
|
|
1827
1755
|
*/
|
|
1828
|
-
|
|
1756
|
+
listTransfers({ chainId, address, pageSize, pageToken, }: {
|
|
1829
1757
|
/**
|
|
1830
1758
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1831
1759
|
* a list of supported chain ids.
|
|
1832
1760
|
*/
|
|
1833
1761
|
chainId: string;
|
|
1834
1762
|
/**
|
|
1835
|
-
*
|
|
1763
|
+
* A wallet address.
|
|
1836
1764
|
*/
|
|
1837
1765
|
address: string;
|
|
1838
1766
|
/**
|
|
1839
|
-
* The
|
|
1767
|
+
* The maximum number of items to return. The minimum page size
|
|
1768
|
+
* is 1. The maximum pageSize is 100.
|
|
1840
1769
|
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1770
|
+
pageSize?: number;
|
|
1771
|
+
/**
|
|
1772
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1773
|
+
*/
|
|
1774
|
+
pageToken?: string;
|
|
1775
|
+
}): CancelablePromise<ListTransfersResponse>;
|
|
1843
1776
|
/**
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
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
|
|
1846
1789
|
* @throws ApiError
|
|
1847
1790
|
*/
|
|
1848
|
-
|
|
1791
|
+
listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
|
|
1849
1792
|
/**
|
|
1850
1793
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1851
1794
|
* a list of supported chain ids.
|
|
1852
1795
|
*/
|
|
1853
1796
|
chainId: string;
|
|
1854
1797
|
/**
|
|
1855
|
-
*
|
|
1798
|
+
* A wallet address.
|
|
1856
1799
|
*/
|
|
1857
1800
|
address: string;
|
|
1858
|
-
/**
|
|
1859
|
-
* TokenId on the contract
|
|
1860
|
-
*/
|
|
1861
|
-
tokenId: string;
|
|
1862
1801
|
/**
|
|
1863
1802
|
* The maximum number of items to return. The minimum page size
|
|
1864
1803
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1869,37 +1808,58 @@ declare class EvmService {
|
|
|
1869
1808
|
*/
|
|
1870
1809
|
pageToken?: string;
|
|
1871
1810
|
/**
|
|
1872
|
-
*
|
|
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.
|
|
1873
1812
|
*/
|
|
1874
|
-
|
|
1813
|
+
startBlock?: number;
|
|
1814
|
+
/**
|
|
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.
|
|
1816
|
+
*/
|
|
1817
|
+
endBlock?: number;
|
|
1875
1818
|
/**
|
|
1876
1819
|
* The order by which to sort results. Use "asc" for ascending
|
|
1877
1820
|
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1878
1821
|
* query parameter, if provided.
|
|
1879
1822
|
*/
|
|
1880
1823
|
sortOrder?: SortOrder;
|
|
1824
|
+
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
1825
|
+
/**
|
|
1826
|
+
* Gets a list of native transactions for an address and chain.
|
|
1827
|
+
* @returns ListNativeTransactionsResponse
|
|
1828
|
+
* @throws ApiError
|
|
1829
|
+
*/
|
|
1830
|
+
listNativeTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
1881
1831
|
/**
|
|
1882
|
-
*
|
|
1832
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1833
|
+
* a list of supported chain ids.
|
|
1883
1834
|
*/
|
|
1884
|
-
|
|
1835
|
+
chainId: string;
|
|
1885
1836
|
/**
|
|
1886
|
-
*
|
|
1837
|
+
* A wallet address.
|
|
1887
1838
|
*/
|
|
1888
|
-
|
|
1889
|
-
|
|
1839
|
+
address: string;
|
|
1840
|
+
/**
|
|
1841
|
+
* The maximum number of items to return. The minimum page size
|
|
1842
|
+
* is 1. The maximum pageSize is 100.
|
|
1843
|
+
*/
|
|
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>;
|
|
1890
1850
|
/**
|
|
1891
|
-
*
|
|
1892
|
-
* @returns
|
|
1851
|
+
* Lists ERC-20 transfers for an address.
|
|
1852
|
+
* @returns ListErc20TransactionsResponse
|
|
1893
1853
|
* @throws ApiError
|
|
1894
1854
|
*/
|
|
1895
|
-
|
|
1855
|
+
listErc20Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
1896
1856
|
/**
|
|
1897
1857
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1898
1858
|
* a list of supported chain ids.
|
|
1899
1859
|
*/
|
|
1900
1860
|
chainId: string;
|
|
1901
1861
|
/**
|
|
1902
|
-
*
|
|
1862
|
+
* A wallet address.
|
|
1903
1863
|
*/
|
|
1904
1864
|
address: string;
|
|
1905
1865
|
/**
|
|
@@ -1911,36 +1871,47 @@ declare class EvmService {
|
|
|
1911
1871
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1912
1872
|
*/
|
|
1913
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, }: {
|
|
1914
1881
|
/**
|
|
1915
|
-
*
|
|
1882
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1883
|
+
* a list of supported chain ids.
|
|
1916
1884
|
*/
|
|
1917
|
-
|
|
1885
|
+
chainId: string;
|
|
1918
1886
|
/**
|
|
1919
|
-
*
|
|
1920
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
1921
|
-
* query parameter, if provided.
|
|
1887
|
+
* A wallet address.
|
|
1922
1888
|
*/
|
|
1923
|
-
|
|
1889
|
+
address: string;
|
|
1924
1890
|
/**
|
|
1925
|
-
* The
|
|
1891
|
+
* The maximum number of items to return. The minimum page size
|
|
1892
|
+
* is 1. The maximum pageSize is 100.
|
|
1926
1893
|
*/
|
|
1927
|
-
|
|
1894
|
+
pageSize?: number;
|
|
1928
1895
|
/**
|
|
1929
|
-
*
|
|
1896
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1930
1897
|
*/
|
|
1931
|
-
|
|
1932
|
-
}): CancelablePromise<
|
|
1898
|
+
pageToken?: string;
|
|
1899
|
+
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1933
1900
|
/**
|
|
1934
|
-
*
|
|
1935
|
-
* @returns
|
|
1901
|
+
* Lists of ERC-1155 transfers for an address.
|
|
1902
|
+
* @returns ListErc1155TransactionsResponse
|
|
1936
1903
|
* @throws ApiError
|
|
1937
1904
|
*/
|
|
1938
|
-
|
|
1905
|
+
listErc1155Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
1939
1906
|
/**
|
|
1940
1907
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1941
1908
|
* a list of supported chain ids.
|
|
1942
1909
|
*/
|
|
1943
1910
|
chainId: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* A wallet address.
|
|
1913
|
+
*/
|
|
1914
|
+
address: string;
|
|
1944
1915
|
/**
|
|
1945
1916
|
* The maximum number of items to return. The minimum page size
|
|
1946
1917
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1950,23 +1921,27 @@ declare class EvmService {
|
|
|
1950
1921
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1951
1922
|
*/
|
|
1952
1923
|
pageToken?: string;
|
|
1953
|
-
|
|
1954
|
-
/**
|
|
1955
|
-
* The currency that return values should use. Defaults to USD.
|
|
1956
|
-
*/
|
|
1957
|
-
currency?: CurrencyCode;
|
|
1958
|
-
}): CancelablePromise<ListListingsResponse>;
|
|
1924
|
+
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1959
1925
|
/**
|
|
1960
|
-
*
|
|
1961
|
-
*
|
|
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
|
|
1962
1933
|
* @throws ApiError
|
|
1963
1934
|
*/
|
|
1964
|
-
|
|
1935
|
+
listInternalTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
1965
1936
|
/**
|
|
1966
1937
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1967
1938
|
* a list of supported chain ids.
|
|
1968
1939
|
*/
|
|
1969
1940
|
chainId: string;
|
|
1941
|
+
/**
|
|
1942
|
+
* A wallet address.
|
|
1943
|
+
*/
|
|
1944
|
+
address: string;
|
|
1970
1945
|
/**
|
|
1971
1946
|
* The maximum number of items to return. The minimum page size
|
|
1972
1947
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1976,36 +1951,64 @@ declare class EvmService {
|
|
|
1976
1951
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1977
1952
|
*/
|
|
1978
1953
|
pageToken?: string;
|
|
1954
|
+
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1955
|
+
/**
|
|
1956
|
+
* Gets the details of a single transaction.
|
|
1957
|
+
* @returns GetTransactionResponse
|
|
1958
|
+
* @throws ApiError
|
|
1959
|
+
*/
|
|
1960
|
+
getTransaction({ chainId, txHash, }: {
|
|
1979
1961
|
/**
|
|
1980
|
-
*
|
|
1962
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1963
|
+
* a list of supported chain ids.
|
|
1981
1964
|
*/
|
|
1982
|
-
|
|
1965
|
+
chainId: string;
|
|
1983
1966
|
/**
|
|
1984
|
-
*
|
|
1967
|
+
* A transaction hash.
|
|
1985
1968
|
*/
|
|
1986
|
-
|
|
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, }: {
|
|
1987
1977
|
/**
|
|
1988
|
-
*
|
|
1989
|
-
*
|
|
1990
|
-
* query parameter, if provided.
|
|
1978
|
+
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1979
|
+
* a list of supported chain ids.
|
|
1991
1980
|
*/
|
|
1992
|
-
|
|
1993
|
-
|
|
1981
|
+
chainId: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* A block identifier which is either a block number or the block hash.
|
|
1984
|
+
*/
|
|
1985
|
+
blockId: string;
|
|
1986
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1994
1987
|
/**
|
|
1995
|
-
*
|
|
1996
|
-
* @returns
|
|
1988
|
+
* Gets the latest transactions; can be filtered by status.
|
|
1989
|
+
* @returns ListNativeTransactionsResponse
|
|
1997
1990
|
* @throws ApiError
|
|
1998
1991
|
*/
|
|
1999
|
-
|
|
1992
|
+
listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
|
|
2000
1993
|
/**
|
|
2001
1994
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
2002
1995
|
* a list of supported chain ids.
|
|
2003
1996
|
*/
|
|
2004
1997
|
chainId: string;
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
1998
|
+
/**
|
|
1999
|
+
* The maximum number of items to return. The minimum page size
|
|
2000
|
+
* is 1. The maximum pageSize is 100.
|
|
2001
|
+
*/
|
|
2002
|
+
pageSize?: number;
|
|
2003
|
+
/**
|
|
2004
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2005
|
+
*/
|
|
2006
|
+
pageToken?: string;
|
|
2007
|
+
/**
|
|
2008
|
+
* A status filter for listed transactions.
|
|
2009
|
+
*/
|
|
2010
|
+
status?: TransactionStatus;
|
|
2011
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2009
2012
|
}
|
|
2010
2013
|
|
|
2011
2014
|
declare class HealthCheckService {
|
|
@@ -2160,6 +2163,17 @@ type Asset = {
|
|
|
2160
2163
|
amount: string;
|
|
2161
2164
|
};
|
|
2162
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
|
+
|
|
2163
2177
|
type EVMInput = {
|
|
2164
2178
|
/**
|
|
2165
2179
|
* EVM address from which the asset is exported in ExportTx.
|
|
@@ -2169,17 +2183,10 @@ type EVMInput = {
|
|
|
2169
2183
|
* Asset details for the asset being transferred.
|
|
2170
2184
|
*/
|
|
2171
2185
|
asset: Asset;
|
|
2172
|
-
};
|
|
2173
|
-
|
|
2174
|
-
type UtxoCredential = {
|
|
2175
2186
|
/**
|
|
2176
|
-
*
|
|
2187
|
+
* Credentials that signed this transaction.
|
|
2177
2188
|
*/
|
|
2178
|
-
|
|
2179
|
-
/**
|
|
2180
|
-
* Public key associated with the signature
|
|
2181
|
-
*/
|
|
2182
|
-
publicKey?: string;
|
|
2189
|
+
credentials: Array<UtxoCredential>;
|
|
2183
2190
|
};
|
|
2184
2191
|
|
|
2185
2192
|
type Utxo = {
|
|
@@ -2434,8 +2441,25 @@ type CChainAtomicBalances = {
|
|
|
2434
2441
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
2435
2442
|
};
|
|
2436
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
|
+
|
|
2437
2460
|
type ListCChainAtomicBalancesResponse = {
|
|
2438
2461
|
balances: CChainAtomicBalances;
|
|
2462
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2439
2463
|
};
|
|
2440
2464
|
|
|
2441
2465
|
type ListCChainAtomicTransactionsResponse = {
|
|
@@ -2444,6 +2468,7 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2444
2468
|
*/
|
|
2445
2469
|
nextPageToken?: string;
|
|
2446
2470
|
transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
|
|
2471
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2447
2472
|
};
|
|
2448
2473
|
|
|
2449
2474
|
type PChainAsset = {
|
|
@@ -2480,6 +2505,7 @@ type PChainBalance = {
|
|
|
2480
2505
|
|
|
2481
2506
|
type ListPChainBalancesResponse = {
|
|
2482
2507
|
balances: PChainBalance;
|
|
2508
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2483
2509
|
};
|
|
2484
2510
|
|
|
2485
2511
|
declare enum PChainTransactionType {
|
|
@@ -2621,6 +2647,7 @@ type ListPChainTransactionsResponse = {
|
|
|
2621
2647
|
*/
|
|
2622
2648
|
nextPageToken?: string;
|
|
2623
2649
|
transactions: Array<PChainTransaction>;
|
|
2650
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2624
2651
|
};
|
|
2625
2652
|
|
|
2626
2653
|
type ListPChainUtxosResponse = {
|
|
@@ -2629,6 +2656,7 @@ type ListPChainUtxosResponse = {
|
|
|
2629
2656
|
*/
|
|
2630
2657
|
nextPageToken?: string;
|
|
2631
2658
|
utxos: Array<PChainUtxo>;
|
|
2659
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2632
2660
|
};
|
|
2633
2661
|
|
|
2634
2662
|
type PrimaryNetworkBlock = {
|
|
@@ -2649,6 +2677,7 @@ type ListPrimaryNetworkBlocksResponse = {
|
|
|
2649
2677
|
*/
|
|
2650
2678
|
nextPageToken?: string;
|
|
2651
2679
|
blocks: Array<PrimaryNetworkBlock>;
|
|
2680
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2652
2681
|
};
|
|
2653
2682
|
|
|
2654
2683
|
type ListUtxosResponse = {
|
|
@@ -2657,6 +2686,7 @@ type ListUtxosResponse = {
|
|
|
2657
2686
|
*/
|
|
2658
2687
|
nextPageToken?: string;
|
|
2659
2688
|
utxos: Array<Utxo>;
|
|
2689
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2660
2690
|
};
|
|
2661
2691
|
|
|
2662
2692
|
type XChainAssetBalance = {
|
|
@@ -2731,6 +2761,7 @@ type XChainBalances = {
|
|
|
2731
2761
|
|
|
2732
2762
|
type ListXChainBalancesResponse = {
|
|
2733
2763
|
balances: XChainBalances;
|
|
2764
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2734
2765
|
};
|
|
2735
2766
|
|
|
2736
2767
|
type XChainAssetDetails = {
|
|
@@ -2905,6 +2936,7 @@ type ListXChainTransactionsResponse = {
|
|
|
2905
2936
|
*/
|
|
2906
2937
|
nextPageToken?: string;
|
|
2907
2938
|
transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
|
|
2939
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2908
2940
|
};
|
|
2909
2941
|
|
|
2910
2942
|
type XChainVertex = {
|
|
@@ -2924,6 +2956,7 @@ type ListXChainVerticesResponse = {
|
|
|
2924
2956
|
*/
|
|
2925
2957
|
nextPageToken?: string;
|
|
2926
2958
|
vertices: Array<XChainVertex>;
|
|
2959
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2927
2960
|
};
|
|
2928
2961
|
|
|
2929
2962
|
declare enum Network {
|
|
@@ -3332,4 +3365,4 @@ declare class ApiError extends Error {
|
|
|
3332
3365
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3333
3366
|
}
|
|
3334
3367
|
|
|
3335
|
-
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, PrimaryNetworkBlock, 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 };
|
|
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 };
|