@covalenthq/client-sdk 2.2.2 → 2.2.4
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/README.md +356 -353
- package/dist/cjs/index.js +182 -275
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/services/NftService.d.ts +37 -1
- package/dist/cjs/src/services/TransactionService.d.ts +11 -35
- package/dist/cjs/src/utils/types/AllChainService.types.d.ts +1 -1
- package/dist/cjs/src/utils/types/Generic.types.d.ts +27 -135
- package/dist/cjs/src/utils/types/NftService.types.d.ts +83 -1
- package/dist/cjs/src/utils/types/TransactionService.types.d.ts +54 -176
- package/dist/esm/index.js +182 -275
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/services/NftService.d.ts +37 -1
- package/dist/esm/src/services/TransactionService.d.ts +11 -35
- package/dist/esm/src/utils/types/AllChainService.types.d.ts +1 -1
- package/dist/esm/src/utils/types/Generic.types.d.ts +27 -135
- package/dist/esm/src/utils/types/NftService.types.d.ts +83 -1
- package/dist/esm/src/utils/types/TransactionService.types.d.ts +54 -176
- package/package.json +73 -73
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Execution } from "../utils/functions/execution";
|
|
2
2
|
import { type Chain, type GoldRushResponse } from "../utils/types/Generic.types";
|
|
3
|
-
import { type ChainCollectionResponse, type CheckOwnershipInNftQueryParamOpts, type GetChainCollectionsQueryParamOpts, type GetNftMetadataForGivenTokenIdForContractQueryParamOpts, type GetNftTransactionsForContractTokenIdQueryParamOpts, type GetNftsForAddressQueryParamOpts, type GetTokenIdsForContractWithMetadataQueryParamOpts, type NftAddressBalanceNftResponse, type NftCollectionAttributesForTraitResponse, type NftCollectionTraitsResponse, type NftCollectionTraitsSummaryResponse, type NftMetadataResponse, type NftOwnershipForCollectionResponse, type NftTransactionsResponse } from "../utils/types/NftService.types";
|
|
3
|
+
import { type ChainCollectionResponse, type CheckOwnershipInNftQueryParamOpts, type GetChainCollectionsQueryParamOpts, type GetCollectionMarketDataQueryParamOpts, type GetNftMetadataForGivenTokenIdForContractQueryParamOpts, type GetNftTransactionsForContractTokenIdQueryParamOpts, type GetNftsForAddressQueryParamOpts, type GetTokenIdsForContractWithMetadataQueryParamOpts, type NftAddressBalanceNftResponse, type NftCollectionAttributesForTraitResponse, type NftCollectionFloorPriceResponse, type NftCollectionSalesCountResponse, type NftCollectionTraitsResponse, type NftCollectionTraitsSummaryResponse, type NftCollectionVolumeResponse, type NftMetadataResponse, type NftOwnershipForCollectionResponse, type NftTransactionsResponse } from "../utils/types/NftService.types";
|
|
4
4
|
/**
|
|
5
5
|
* NFTs API
|
|
6
6
|
*
|
|
@@ -130,6 +130,42 @@ export declare class NftService {
|
|
|
130
130
|
*
|
|
131
131
|
*/
|
|
132
132
|
getCollectionTraitsSummary(chainName: Chain, collectionContract: string): Promise<GoldRushResponse<NftCollectionTraitsSummaryResponse>>;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* Commonly used to render a price floor chart for an NFT collection.
|
|
136
|
+
*
|
|
137
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
138
|
+
* @param {string} collectionAddress - The requested address.
|
|
139
|
+
* @param {GetNftsForAddressQueryParamOpts} queryParamOpts
|
|
140
|
+
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
141
|
+
* - `days`: The number of days to return data for. Request up 365 days. Defaults to 30 days.
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
getHistoricalFloorPricesForCollection(chainName: Chain, collectionAddress: string, queryParamOpts?: GetCollectionMarketDataQueryParamOpts): Promise<GoldRushResponse<NftCollectionFloorPriceResponse>>;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* Commonly used to build a time-series chart of the transaction volume of an NFT collection.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
150
|
+
* @param {string} collectionAddress - The requested address.
|
|
151
|
+
* @param {GetNftsForAddressQueryParamOpts} queryParamOpts
|
|
152
|
+
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
153
|
+
* - `days`: The number of days to return data for. Request up 365 days. Defaults to 30 days.
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
getHistoricalVolumeForCollection(chainName: Chain, collectionAddress: string, queryParamOpts?: GetCollectionMarketDataQueryParamOpts): Promise<GoldRushResponse<NftCollectionVolumeResponse>>;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* Commonly used to build a time-series chart of the sales count of an NFT collection.
|
|
160
|
+
*
|
|
161
|
+
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
162
|
+
* @param {string} collectionAddress - The requested address.
|
|
163
|
+
* @param {GetNftsForAddressQueryParamOpts} queryParamOpts
|
|
164
|
+
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
165
|
+
* - `days`: The number of days to return data for. Request up 365 days. Defaults to 30 days.
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
getHistoricalSalesCountForCollection(chainName: Chain, collectionAddress: string, queryParamOpts?: GetCollectionMarketDataQueryParamOpts): Promise<GoldRushResponse<NftCollectionSalesCountResponse>>;
|
|
133
169
|
/**
|
|
134
170
|
*
|
|
135
171
|
* Commonly used to verify ownership of NFTs (including ERC-721 and ERC-1155) within a collection.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Execution } from "../utils/functions/execution";
|
|
2
2
|
import { type Chain, type GoldRushResponse } from "../utils/types/Generic.types";
|
|
3
|
-
import { type GetAllTransactionsForAddressQueryParamOpts, type GetTimeBucketTransactionsForAddressQueryParamOpts, type GetTransactionQueryParamOpts, type GetTransactionSummaryQueryParamOpts, type GetTransactionsForAddressV3QueryParamOpts, type
|
|
3
|
+
import { type GetAllTransactionsForAddressQueryParamOpts, type GetTimeBucketTransactionsForAddressQueryParamOpts, type GetTransactionQueryParamOpts, type GetTransactionSummaryQueryParamOpts, type GetTransactionsForAddressV3QueryParamOpts, type GetTransactionsForBlockQueryParamOpts, type RecentTransactionsResponse, type TransactionResponse, type TransactionsBlockResponse, type TransactionsResponse, type TransactionsSummaryResponse, type TransactionsTimeBucketResponse } from "../utils/types/TransactionService.types";
|
|
4
4
|
/**
|
|
5
5
|
* Transactions API
|
|
6
6
|
*
|
|
@@ -10,14 +10,16 @@ export declare class TransactionService {
|
|
|
10
10
|
constructor(execution: Execution);
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
|
-
* Commonly used to fetch and render a single transaction including its decoded log events.
|
|
13
|
+
* Commonly used to fetch and render a single transaction including its decoded log events.
|
|
14
14
|
*
|
|
15
15
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
16
16
|
* @param {string} txHash - The transaction hash.
|
|
17
17
|
* @param {GetTransactionQueryParamOpts} queryParamOpts
|
|
18
18
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
19
19
|
* - `noLogs`: Omit log events.
|
|
20
|
-
* - `
|
|
20
|
+
* - `withInternal`: Include internal transfers/transactions.
|
|
21
|
+
* - `withState`: Include all transaction state changes with before and after values.
|
|
22
|
+
* - `withInputData`: Include the transaction's input data such as the Method ID.
|
|
21
23
|
*
|
|
22
24
|
*/
|
|
23
25
|
getTransaction(chainName: Chain, txHash: string, queryParamOpts?: GetTransactionQueryParamOpts): Promise<GoldRushResponse<TransactionResponse>>;
|
|
@@ -31,7 +33,9 @@ export declare class TransactionService {
|
|
|
31
33
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
32
34
|
* - `noLogs`: Omit log events.
|
|
33
35
|
* - `blockSignedAtAsc`: Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.
|
|
34
|
-
* - `
|
|
36
|
+
* - `withInternal`: Include internal transfers/transactions.
|
|
37
|
+
* - `withState`: Include all transaction state changes with before and after values.
|
|
38
|
+
* - `withInputData`: Include the transaction's input data such as the Method ID.
|
|
35
39
|
*
|
|
36
40
|
*/
|
|
37
41
|
getAllTransactionsForAddress(chainName: Chain, walletAddress: string, queryParamOpts?: GetAllTransactionsForAddressQueryParamOpts): AsyncIterable<GoldRushResponse<RecentTransactionsResponse>>;
|
|
@@ -45,7 +49,9 @@ export declare class TransactionService {
|
|
|
45
49
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
46
50
|
* - `noLogs`: Omit log events.
|
|
47
51
|
* - `blockSignedAtAsc`: Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.
|
|
48
|
-
* - `
|
|
52
|
+
* - `withInternal`: Include internal transfers/transactions.
|
|
53
|
+
* - `withState`: Include all transaction state changes with before and after values.
|
|
54
|
+
* - `withInputData`: Include the transaction's input data such as the Method ID.
|
|
49
55
|
*
|
|
50
56
|
*/
|
|
51
57
|
getAllTransactionsForAddressByPage(chainName: Chain, walletAddress: string, queryParamOpts?: GetAllTransactionsForAddressQueryParamOpts): Promise<GoldRushResponse<RecentTransactionsResponse>>;
|
|
@@ -58,7 +64,6 @@ export declare class TransactionService {
|
|
|
58
64
|
* @param {GetTransactionsForBlockQueryParamOpts} queryParamOpts
|
|
59
65
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
60
66
|
* - `noLogs`: Omit log events.
|
|
61
|
-
* - `withSafe`: Include safe details.
|
|
62
67
|
*
|
|
63
68
|
*/
|
|
64
69
|
getTransactionsForBlock(chainName: Chain, blockHeight: number | string | "latest", queryParamOpts?: GetTransactionsForBlockQueryParamOpts): Promise<GoldRushResponse<TransactionsBlockResponse>>;
|
|
@@ -83,7 +88,6 @@ export declare class TransactionService {
|
|
|
83
88
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
84
89
|
* - `noLogs`: Omit log events.
|
|
85
90
|
* - `blockSignedAtAsc`: Sort the transactions in ascending chronological order. By default, it's set to `false` and returns transactions in descending chronological order.
|
|
86
|
-
* - `withSafe`: Include safe details.
|
|
87
91
|
*
|
|
88
92
|
*/
|
|
89
93
|
getTransactionsForAddressV3(chainName: Chain, walletAddress: string, page: number, queryParamOpts?: GetTransactionsForAddressV3QueryParamOpts): Promise<GoldRushResponse<TransactionsResponse>>;
|
|
@@ -95,35 +99,7 @@ export declare class TransactionService {
|
|
|
95
99
|
* @param {GetTimeBucketTransactionsForAddressQueryParamOpts} queryParamOpts
|
|
96
100
|
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
97
101
|
* - `noLogs`: Omit log events.
|
|
98
|
-
* - `withSafe`: Include safe details.
|
|
99
102
|
*
|
|
100
103
|
*/
|
|
101
104
|
getTimeBucketTransactionsForAddress(chainName: Chain, walletAddress: string, timeBucket: number, queryParamOpts?: GetTimeBucketTransactionsForAddressQueryParamOpts): Promise<GoldRushResponse<TransactionsTimeBucketResponse>>;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* Commonly used to fetch all transactions including their decoded log events in a block and further flag interesting wallets or transactions.
|
|
105
|
-
*
|
|
106
|
-
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
107
|
-
* @param {string} blockHash - The requested block hash.
|
|
108
|
-
* @param {number} page - The requested 0-indexed page number.
|
|
109
|
-
* @param {GetTransactionsForBlockHashByPageQueryParamOpts} queryParamOpts
|
|
110
|
-
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
111
|
-
* - `noLogs`: Omit log events.
|
|
112
|
-
* - `withSafe`: Include safe details.
|
|
113
|
-
*
|
|
114
|
-
*/
|
|
115
|
-
getTransactionsForBlockHashByPage(chainName: Chain, blockHash: string, page: number, queryParamOpts?: GetTransactionsForBlockHashByPageQueryParamOpts): Promise<GoldRushResponse<TransactionsBlockPageResponse>>;
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* Commonly used to fetch all transactions including their decoded log events in a block and further flag interesting wallets or transactions.
|
|
119
|
-
*
|
|
120
|
-
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
121
|
-
* @param {string} blockHash - The requested block hash.
|
|
122
|
-
* @param {GetTransactionsForBlockHashQueryParamOpts} queryParamOpts
|
|
123
|
-
* - `quoteCurrency`: The currency to convert. Supports `USD`, `CAD`, `EUR`, `SGD`, `INR`, `JPY`, `VND`, `CNY`, `KRW`, `RUB`, `TRY`, `NGN`, `ARS`, `AUD`, `CHF`, and `GBP`.
|
|
124
|
-
* - `noLogs`: Omit log events.
|
|
125
|
-
* - `withSafe`: Include safe details.
|
|
126
|
-
*
|
|
127
|
-
*/
|
|
128
|
-
getTransactionsForBlockHash(chainName: Chain, blockHash: string, queryParamOpts?: GetTransactionsForBlockHashQueryParamOpts): Promise<GoldRushResponse<TransactionsBlockResponse>>;
|
|
129
105
|
}
|
|
@@ -73,7 +73,7 @@ export type MultiChainBalanceItem = Nullable<{
|
|
|
73
73
|
/** * The timestamp when the token was transferred. */
|
|
74
74
|
last_transferred_at: Date;
|
|
75
75
|
/** * Indicates if a token is the chain's native gas token, eg: ETH on Ethereum. */
|
|
76
|
-
|
|
76
|
+
is_native_token: boolean;
|
|
77
77
|
/** * One of `cryptocurrency`, `stablecoin`, `nft` or `dust`. */
|
|
78
78
|
type: string;
|
|
79
79
|
/** * Denotes whether the token is suspected spam. */
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export declare enum ChainName {
|
|
2
2
|
ETH_MAINNET = "eth-mainnet",
|
|
3
3
|
ETH_SEPOLIA = "eth-sepolia",
|
|
4
|
-
ETH_GOERLI = "eth-goerli",
|
|
5
4
|
ETH_HOLESKY = "eth-holesky",
|
|
6
5
|
MATIC_MAINNET = "matic-mainnet",
|
|
7
|
-
MATIC_MUMBAI = "matic-mumbai",
|
|
8
6
|
AVALANCHE_MAINNET = "avalanche-mainnet",
|
|
9
7
|
AVALANCHE_TESTNET = "avalanche-testnet",
|
|
10
8
|
BSC_MAINNET = "bsc-mainnet",
|
|
@@ -21,15 +19,11 @@ export declare enum ChainName {
|
|
|
21
19
|
FANTOM_TESTNET = "fantom-testnet",
|
|
22
20
|
PALM_MAINNET = "palm-mainnet",
|
|
23
21
|
PALM_TESTNET = "palm-testnet",
|
|
24
|
-
BTC_MAINNET = "btc-mainnet",
|
|
25
22
|
SOLANA_MAINNET = "solana-mainnet",
|
|
23
|
+
BTC_MAINNET = "btc-mainnet",
|
|
26
24
|
AXIE_MAINNET = "axie-mainnet",
|
|
27
25
|
OPTIMISM_MAINNET = "optimism-mainnet",
|
|
28
26
|
OPTIMISM_SEPOLIA = "optimism-sepolia",
|
|
29
|
-
EVMOS_MAINNET = "evmos-mainnet",
|
|
30
|
-
EVMOS_TESTNET = "evmos-testnet",
|
|
31
|
-
HARMONY_MAINNET = "harmony-mainnet",
|
|
32
|
-
HARMONY_TESTNET = "harmony-testnet",
|
|
33
27
|
CRONOS_MAINNET = "cronos-mainnet",
|
|
34
28
|
CRONOS_TESTNET = "cronos-testnet",
|
|
35
29
|
CRONOS_ZKEVM_TESTNET = "cronos-zkevm-testnet",
|
|
@@ -44,53 +38,23 @@ export declare enum ChainName {
|
|
|
44
38
|
BOBA_BNB_TESTNET = "boba-bnb-testnet",
|
|
45
39
|
SCROLL_SEPOLIA_TESTNET = "scroll-sepolia-testnet",
|
|
46
40
|
METIS_MAINNET = "metis-mainnet",
|
|
47
|
-
METIS_STARDUST = "metis-stardust",
|
|
48
41
|
AVALANCHE_DEXALOT_MAINNET = "avalanche-dexalot-mainnet",
|
|
49
42
|
AVALANCHE_DEXALOT_TESTNET = "avalanche-dexalot-testnet",
|
|
50
43
|
AVALANCHE_SHRAPNEL_MAINNET = "avalanche-shrapnel-mainnet",
|
|
51
44
|
AVALANCHE_NUMBERS = "avalanche-numbers",
|
|
52
|
-
AVALANCHE_DOS = "avalanche-dos",
|
|
53
|
-
AVALANCHE_XPLUS = "avalanche-xplus",
|
|
54
45
|
AVALANCHE_XANACHAIN = "avalanche-xanachain",
|
|
55
46
|
AVALANCHE_STEP_NETWORK = "avalanche-step-network",
|
|
56
47
|
AVALANCHE_SHRAPNEL_TESTNET = "avalanche-shrapnel-testnet",
|
|
57
48
|
AVALANCHE_BEAM_TESTNET = "avalanche-beam-testnet",
|
|
58
49
|
AVALANCHE_BLITZ_TESTNET = "avalanche-blitz-testnet",
|
|
59
|
-
AVALANCHE_MINTARA_TESTNET = "avalanche-mintara-testnet",
|
|
60
|
-
AVALANCHE_GREEN_DOT_TESTNET = "avalanche-green-dot-testnet",
|
|
61
|
-
AVALANCHE_PULSAR_TESTNET = "avalanche-pulsar-testnet",
|
|
62
50
|
AVALANCHE_UPTN = "avalanche-uptn",
|
|
63
|
-
AVALANCHE_AVACLOUD_TESTNET = "avalanche-avacloud-testnet",
|
|
64
51
|
AVALANCHE_BEAM_MAINNET = "avalanche-beam-mainnet",
|
|
65
|
-
AVALANCHE_BULLETIN_TESTNET = "avalanche-bulletin-testnet",
|
|
66
|
-
AVALANCHE_CONDUIT_TESTNET = "avalanche-conduit-testnet",
|
|
67
|
-
AVALANCHE_HERO_TESTNET = "avalanche-hero-testnet",
|
|
68
|
-
AVALANCHE_HUBBLE_EXCHANGE_TESTNET = "avalanche-hubble-exchange-testnet",
|
|
69
|
-
AVALANCHE_KIWI_TESTNET = "avalanche-kiwi-testnet",
|
|
70
|
-
AVALANCHE_MIHO_TESTNET = "avalanche-miho-testnet",
|
|
71
|
-
AVALANCHE_MONDRIAN_TESTNET = "avalanche-mondrian-testnet",
|
|
72
|
-
AVALANCHE_NMAC_TESTNET = "avalanche-nmac-testnet",
|
|
73
|
-
AVALANCHE_ORDERLY_TESTNET = "avalanche-orderly-testnet",
|
|
74
|
-
AVALANCHE_THIRDWEB_TESTNET = "avalanche-thirdweb-testnet",
|
|
75
|
-
AVALANCHE_WAGMI_TESTNET = "avalanche-wagmi-testnet",
|
|
76
|
-
AVALANCHE_PLAYA3ULL_TESTNET = "avalanche-playa3ull-testnet",
|
|
77
52
|
AVALANCHE_MIRAI_TESTNET = "avalanche-mirai-testnet",
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
AVALANCHE_LT5_TESTNET = "avalanche-lt5-testnet",
|
|
81
|
-
AVALANCHE_HUBBLE_EXCHANGE_MAINNET = "avalanche-hubble-exchange-mainnet",
|
|
82
|
-
METER_MAINNET = "meter-mainnet",
|
|
83
|
-
METER_TESTNET = "meter-testnet",
|
|
84
|
-
MILKOMEDA_A1_MAINNET = "milkomeda-a1-mainnet",
|
|
85
|
-
MILKOMEDA_C1_MAINNET = "milkomeda-c1-mainnet",
|
|
86
|
-
MILKOMEDA_C1_DEVNET = "milkomeda-c1-devnet",
|
|
53
|
+
BERACHAIN_MAINNET = "berachain-mainnet",
|
|
54
|
+
UNICHAIN_MAINNET = "unichain-mainnet",
|
|
87
55
|
CANTO_MAINNET = "canto-mainnet",
|
|
88
56
|
FLARENETWORKS_FLARE_MAINNET = "flarenetworks-flare-mainnet",
|
|
89
57
|
FLARENETWORKS_FLARE_TESTNET = "flarenetworks-flare-testnet",
|
|
90
|
-
FLARENETWORKS_CANARY_MAINNET = "flarenetworks-canary-mainnet",
|
|
91
|
-
FLARENETWORKS_CANARY_TESTNET = "flarenetworks-canary-testnet",
|
|
92
|
-
KCC_MAINNET = "kcc-mainnet",
|
|
93
|
-
KCC_TESTNET = "kcc-testnet",
|
|
94
58
|
POLYGON_ZKEVM_MAINNET = "polygon-zkevm-mainnet",
|
|
95
59
|
LINEA_MAINNET = "linea-mainnet",
|
|
96
60
|
LINEA_GOERLI_TESTNET = "linea-goerli-testnet",
|
|
@@ -98,81 +62,61 @@ export declare enum ChainName {
|
|
|
98
62
|
POLYGON_ZKEVM_TESTNET = "polygon-zkevm-testnet",
|
|
99
63
|
POLYGON_AMOY_TESTNET = "polygon-amoy-testnet",
|
|
100
64
|
MANTLE_MAINNET = "mantle-mainnet",
|
|
101
|
-
POLYGON_ZKEVM_CARDONA_TESTNET = "polygon-zkevm-cardona-testnet",
|
|
102
65
|
MANTLE_SEPOLIA_TESTNET = "mantle-sepolia-testnet",
|
|
66
|
+
POLYGON_ZKEVM_CARDONA_TESTNET = "polygon-zkevm-cardona-testnet",
|
|
103
67
|
BASE_MAINNET = "base-mainnet",
|
|
104
|
-
BASE_TESTNET = "base-testnet",
|
|
105
68
|
BASE_SEPOLIA_TESTNET = "base-sepolia-testnet",
|
|
106
|
-
OASYS_MAINNET = "oasys-mainnet",
|
|
107
|
-
OASYS_TESTNET = "oasys-testnet",
|
|
108
69
|
SX_MAINNET = "sx-mainnet",
|
|
109
|
-
LUMOZ_PUBLIC_ZKSYNC_V2 = "lumoz-public-zksync-v2",
|
|
110
|
-
LUMOZ_STARK_SPORT = "lumoz-stark-sport",
|
|
111
70
|
OASIS_SAPPHIRE_MAINNET = "oasis-sapphire-mainnet",
|
|
112
|
-
OASIS_SAPPHIRE_TESTNET = "oasis-sapphire-testnet",
|
|
113
|
-
XAI_MAINNET = "xai-mainnet",
|
|
114
71
|
SYNDR_TESTNET = "syndr-testnet",
|
|
72
|
+
OASIS_SAPPHIRE_TESTNET = "oasis-sapphire-testnet",
|
|
115
73
|
CELO_MAINNET = "celo-mainnet",
|
|
116
74
|
X1_MAINNET = "x1-mainnet",
|
|
117
|
-
CROSSFI_EVM_TESTNET = "crossfi-evm-testnet",
|
|
118
75
|
HORIZEN_EON_MAINNET = "horizen-eon-mainnet",
|
|
119
76
|
HORIZEN_GOBI_TESTNET = "horizen-gobi-testnet",
|
|
120
77
|
FRAXTAL_MAINNET = "fraxtal-mainnet",
|
|
121
78
|
APECHAIN_TESTNET = "apechain-testnet",
|
|
122
|
-
LISK_MAINNET = "lisk-mainnet",
|
|
123
79
|
BERACHAIN_TESTNET = "berachain-testnet",
|
|
124
80
|
REDSTONE_MAINNET = "redstone-mainnet",
|
|
125
81
|
SEI_MAINNET = "sei-mainnet",
|
|
82
|
+
APECHAIN_MAINNET = "apechain-mainnet",
|
|
83
|
+
UNICHAIN_SEPOLIA_TESTNET = "unichain-sepolia-testnet",
|
|
84
|
+
WORLD_MAINNET = "world-mainnet",
|
|
85
|
+
WORLD_SEPOLIA_TESTNET = "world-sepolia-testnet",
|
|
86
|
+
LENS_SEPOLIA_TESTNET = "lens-sepolia-testnet",
|
|
87
|
+
INK_SEPOLIA_TESTNET = "ink-sepolia-testnet",
|
|
88
|
+
INK_MAINNET = "ink-mainnet",
|
|
126
89
|
AVALANCHE_MELD_TESTNET = "avalanche-meld-testnet",
|
|
127
90
|
AVALANCHE_MELD_MAINNET = "avalanche-meld-mainnet",
|
|
128
91
|
GUNZILLA_TESTNET = "gunzilla-testnet",
|
|
129
|
-
ULTRON_MAINNET = "ultron-mainnet",
|
|
130
|
-
ULTRON_TESTNET = "ultron-testnet",
|
|
131
92
|
ZORA_MAINNET = "zora-mainnet",
|
|
132
93
|
ZORA_SEPOLIA_TESTNET = "zora-sepolia-testnet",
|
|
133
|
-
LISK_SEPOLIA_TESTNET = "lisk-sepolia-testnet",
|
|
134
|
-
OPSIDE_READON_CONTENT_TESTNET = "opside-readon-content-testnet",
|
|
135
94
|
ZKSYNC_MAINNET = "zksync-mainnet",
|
|
136
95
|
ZKSYNC_SEPOLIA_TESTNET = "zksync-sepolia-testnet",
|
|
137
|
-
BNB_ANTIMATTER_TESTNET = "bnb-antimatter-testnet",
|
|
138
|
-
BNB_META_APES_MAINNET = "bnb-meta-apes-mainnet",
|
|
139
|
-
BNB_FNCY_MAINNET = "bnb-fncy-mainnet",
|
|
140
96
|
BNB_OPBNB_TESTNET = "bnb-opbnb-testnet",
|
|
141
|
-
BNB_FNCY_TESTNET = "bnb-fncy-testnet",
|
|
142
97
|
BNB_OPBNB_MAINNET = "bnb-opbnb-mainnet",
|
|
143
98
|
ZETACHAIN_TESTNET = "zetachain-testnet",
|
|
144
99
|
ZETACHAIN_MAINNET = "zetachain-mainnet",
|
|
145
|
-
MODE_TESTNET = "mode-testnet",
|
|
146
|
-
MODE_MAINNET = "mode-mainnet",
|
|
147
100
|
KINTO_TESTNET = "kinto-testnet",
|
|
148
|
-
LOOT_MAINNET = "loot-mainnet",
|
|
149
|
-
PGN_MAINNET = "pgn-mainnet",
|
|
150
|
-
PGN_TESTNET = "pgn-testnet",
|
|
151
101
|
MANTA_SEPOLIA_TESTNET = "manta-sepolia-testnet",
|
|
152
102
|
ROLLUX_MAINNET = "rollux-mainnet",
|
|
153
|
-
ROLLUX_TESTNET = "rollux-testnet",
|
|
154
103
|
GNOSIS_MAINNET = "gnosis-mainnet",
|
|
155
104
|
GNOSIS_TESTNET = "gnosis-testnet",
|
|
156
|
-
TELOS_MAINNET = "telos-mainnet",
|
|
157
|
-
TELOS_TESTNET = "telos-testnet",
|
|
158
105
|
VICTION_MAINNET = "viction-mainnet",
|
|
159
106
|
VICTION_TESTNET = "viction-testnet",
|
|
160
107
|
TAIKO_HEKLA_TESTNET = "taiko-hekla-testnet",
|
|
161
108
|
TAIKO_MAINNET = "taiko-mainnet",
|
|
162
109
|
MERLIN_MAINNET = "merlin-mainnet",
|
|
163
110
|
MERLIN_TESTNET = "merlin-testnet",
|
|
164
|
-
BLAST_MAINNET = "blast-mainnet",
|
|
165
111
|
MOVEMENT_MEVM_TESTNET = "movement-mevm-testnet",
|
|
166
|
-
|
|
167
|
-
|
|
112
|
+
BLAST_MAINNET = "blast-mainnet",
|
|
113
|
+
SCROLL_MAINNET = "scroll-mainnet"
|
|
168
114
|
}
|
|
169
115
|
export declare enum ChainID {
|
|
170
116
|
ETH_MAINNET = 1,
|
|
171
117
|
ETH_SEPOLIA = 11155111,
|
|
172
|
-
ETH_GOERLI = 5,
|
|
173
118
|
ETH_HOLESKY = 17000,
|
|
174
119
|
MATIC_MAINNET = 137,
|
|
175
|
-
MATIC_MUMBAI = 80001,
|
|
176
120
|
AVALANCHE_MAINNET = 43114,
|
|
177
121
|
AVALANCHE_TESTNET = 43113,
|
|
178
122
|
BSC_MAINNET = 56,
|
|
@@ -194,10 +138,6 @@ export declare enum ChainID {
|
|
|
194
138
|
AXIE_MAINNET = 2020,
|
|
195
139
|
OPTIMISM_MAINNET = 10,
|
|
196
140
|
OPTIMISM_SEPOLIA = 11155420,
|
|
197
|
-
EVMOS_MAINNET = 9001,
|
|
198
|
-
EVMOS_TESTNET = 9000,
|
|
199
|
-
HARMONY_MAINNET = 1666600000,
|
|
200
|
-
HARMONY_TESTNET = 1666700000,
|
|
201
141
|
CRONOS_MAINNET = 25,
|
|
202
142
|
CRONOS_TESTNET = 338,
|
|
203
143
|
CRONOS_ZKEVM_TESTNET = 282,
|
|
@@ -212,53 +152,23 @@ export declare enum ChainID {
|
|
|
212
152
|
BOBA_BNB_TESTNET = 9728,
|
|
213
153
|
SCROLL_SEPOLIA_TESTNET = 534351,
|
|
214
154
|
METIS_MAINNET = 1088,
|
|
215
|
-
METIS_STARDUST = 588,
|
|
216
155
|
AVALANCHE_DEXALOT_MAINNET = 432204,
|
|
217
156
|
AVALANCHE_DEXALOT_TESTNET = 432201,
|
|
218
157
|
AVALANCHE_SHRAPNEL_MAINNET = 2044,
|
|
219
158
|
AVALANCHE_NUMBERS = 10507,
|
|
220
|
-
AVALANCHE_DOS = 7979,
|
|
221
|
-
AVALANCHE_XPLUS = 1228,
|
|
222
159
|
AVALANCHE_XANACHAIN = 8888,
|
|
223
160
|
AVALANCHE_STEP_NETWORK = 1234,
|
|
224
161
|
AVALANCHE_SHRAPNEL_TESTNET = 2038,
|
|
225
162
|
AVALANCHE_BEAM_TESTNET = 13337,
|
|
226
163
|
AVALANCHE_BLITZ_TESTNET = 1343,
|
|
227
|
-
AVALANCHE_MINTARA_TESTNET = 1079,
|
|
228
|
-
AVALANCHE_GREEN_DOT_TESTNET = 6765897100,
|
|
229
|
-
AVALANCHE_PULSAR_TESTNET = 431234,
|
|
230
164
|
AVALANCHE_UPTN = 6119,
|
|
231
|
-
AVALANCHE_AVACLOUD_TESTNET = 152703,
|
|
232
165
|
AVALANCHE_BEAM_MAINNET = 4337,
|
|
233
|
-
AVALANCHE_BULLETIN_TESTNET = 78431,
|
|
234
|
-
AVALANCHE_CONDUIT_TESTNET = 78432,
|
|
235
|
-
AVALANCHE_HERO_TESTNET = 17772,
|
|
236
|
-
AVALANCHE_HUBBLE_EXCHANGE_TESTNET = 321123,
|
|
237
|
-
AVALANCHE_KIWI_TESTNET = 2037,
|
|
238
|
-
AVALANCHE_MIHO_TESTNET = 360163,
|
|
239
|
-
AVALANCHE_MONDRIAN_TESTNET = 179188,
|
|
240
|
-
AVALANCHE_NMAC_TESTNET = 7777,
|
|
241
|
-
AVALANCHE_ORDERLY_TESTNET = 986532,
|
|
242
|
-
AVALANCHE_THIRDWEB_TESTNET = 894538,
|
|
243
|
-
AVALANCHE_WAGMI_TESTNET = 11111,
|
|
244
|
-
AVALANCHE_PLAYA3ULL_TESTNET = 3012,
|
|
245
166
|
AVALANCHE_MIRAI_TESTNET = 2195,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
AVALANCHE_LT5_TESTNET = 31335,
|
|
249
|
-
AVALANCHE_HUBBLE_EXCHANGE_MAINNET = 1992,
|
|
250
|
-
METER_MAINNET = 82,
|
|
251
|
-
METER_TESTNET = 83,
|
|
252
|
-
MILKOMEDA_A1_MAINNET = 2002,
|
|
253
|
-
MILKOMEDA_C1_MAINNET = 2001,
|
|
254
|
-
MILKOMEDA_C1_DEVNET = 200101,
|
|
167
|
+
BERACHAIN_MAINNET = 80094,
|
|
168
|
+
UNICHAIN_MAINNET = 130,
|
|
255
169
|
CANTO_MAINNET = 7700,
|
|
256
170
|
FLARENETWORKS_FLARE_MAINNET = 14,
|
|
257
171
|
FLARENETWORKS_FLARE_TESTNET = 114,
|
|
258
|
-
FLARENETWORKS_CANARY_MAINNET = 19,
|
|
259
|
-
FLARENETWORKS_CANARY_TESTNET = 16,
|
|
260
|
-
KCC_MAINNET = 321,
|
|
261
|
-
KCC_TESTNET = 322,
|
|
262
172
|
POLYGON_ZKEVM_MAINNET = 1101,
|
|
263
173
|
LINEA_MAINNET = 59144,
|
|
264
174
|
LINEA_GOERLI_TESTNET = 59140,
|
|
@@ -266,73 +176,55 @@ export declare enum ChainID {
|
|
|
266
176
|
POLYGON_ZKEVM_TESTNET = 1422,
|
|
267
177
|
POLYGON_AMOY_TESTNET = 80002,
|
|
268
178
|
MANTLE_MAINNET = 5000,
|
|
269
|
-
POLYGON_ZKEVM_CARDONA_TESTNET = 2442,
|
|
270
179
|
MANTLE_SEPOLIA_TESTNET = 5003,
|
|
180
|
+
POLYGON_ZKEVM_CARDONA_TESTNET = 2442,
|
|
271
181
|
BASE_MAINNET = 8453,
|
|
272
|
-
BASE_TESTNET = 84531,
|
|
273
182
|
BASE_SEPOLIA_TESTNET = 84532,
|
|
274
|
-
OASYS_MAINNET = 248,
|
|
275
|
-
OASYS_TESTNET = 9372,
|
|
276
183
|
SX_MAINNET = 416,
|
|
277
|
-
LUMOZ_PUBLIC_ZKSYNC_V2 = 12027,
|
|
278
|
-
LUMOZ_STARK_SPORT = 12029,
|
|
279
184
|
OASIS_SAPPHIRE_MAINNET = 23294,
|
|
280
|
-
OASIS_SAPPHIRE_TESTNET = 23295,
|
|
281
|
-
XAI_MAINNET = 660279,
|
|
282
185
|
SYNDR_TESTNET = 412346,
|
|
186
|
+
OASIS_SAPPHIRE_TESTNET = 23295,
|
|
283
187
|
CELO_MAINNET = 42220,
|
|
284
188
|
X1_MAINNET = 196,
|
|
285
|
-
CROSSFI_EVM_TESTNET = 8545,
|
|
286
189
|
HORIZEN_EON_MAINNET = 7332,
|
|
287
190
|
HORIZEN_GOBI_TESTNET = 1663,
|
|
288
191
|
FRAXTAL_MAINNET = 252,
|
|
289
192
|
APECHAIN_TESTNET = 1798,
|
|
290
193
|
BERACHAIN_TESTNET = 80084,
|
|
291
|
-
LISK_MAINNET = 1135,
|
|
292
194
|
REDSTONE_MAINNET = 690,
|
|
293
195
|
SEI_MAINNET = 1329,
|
|
196
|
+
APECHAIN_MAINNET = 33139,
|
|
197
|
+
UNICHAIN_SEPOLIA_TESTNET = 1301,
|
|
198
|
+
WORLD_MAINNET = 480,
|
|
199
|
+
WORLD_SEPOLIA_TESTNET = 4801,
|
|
200
|
+
LENS_SEPOLIA_TESTNET = 37111,
|
|
201
|
+
INK_SEPOLIA_TESTNET = 763373,
|
|
202
|
+
INK_MAINNET = 57073,
|
|
294
203
|
AVALANCHE_MELD_TESTNET = 222000222,
|
|
295
204
|
AVALANCHE_MELD_MAINNET = 333000333,
|
|
296
205
|
GUNZILLA_TESTNET = 49321,
|
|
297
|
-
ULTRON_MAINNET = 1231,
|
|
298
|
-
ULTRON_TESTNET = 1230,
|
|
299
206
|
ZORA_MAINNET = 7777777,
|
|
300
207
|
ZORA_SEPOLIA_TESTNET = 999999999,
|
|
301
|
-
LISK_SEPOLIA_TESTNET = 4202,
|
|
302
|
-
OPSIDE_READON_CONTENT_TESTNET = 12015,
|
|
303
208
|
ZKSYNC_MAINNET = 324,
|
|
304
209
|
ZKSYNC_SEPOLIA_TESTNET = 300,
|
|
305
|
-
BNB_ANTIMATTER_TESTNET = 20221,
|
|
306
|
-
BNB_META_APES_MAINNET = 16350,
|
|
307
|
-
BNB_FNCY_MAINNET = 73,
|
|
308
210
|
BNB_OPBNB_TESTNET = 5611,
|
|
309
|
-
BNB_FNCY_TESTNET = 923018,
|
|
310
211
|
BNB_OPBNB_MAINNET = 204,
|
|
311
212
|
ZETACHAIN_TESTNET = 7001,
|
|
312
213
|
ZETACHAIN_MAINNET = 7000,
|
|
313
|
-
MODE_TESTNET = 919,
|
|
314
|
-
MODE_MAINNET = 34443,
|
|
315
214
|
KINTO_TESTNET = 42888,
|
|
316
|
-
LOOT_MAINNET = 5151706,
|
|
317
|
-
PGN_MAINNET = 424,
|
|
318
|
-
PGN_TESTNET = 58008,
|
|
319
215
|
MANTA_SEPOLIA_TESTNET = 3441006,
|
|
320
216
|
ROLLUX_MAINNET = 570,
|
|
321
|
-
ROLLUX_TESTNET = 57000,
|
|
322
217
|
GNOSIS_MAINNET = 100,
|
|
323
218
|
GNOSIS_TESTNET = 10200,
|
|
324
219
|
VICTION_MAINNET = 88,
|
|
325
220
|
VICTION_TESTNET = 89,
|
|
326
|
-
TELOS_MAINNET = 40,
|
|
327
|
-
TELOS_TESTNET = 41,
|
|
328
221
|
TAIKO_HEKLA_TESTNET = 167009,
|
|
329
222
|
TAIKO_MAINNET = 167000,
|
|
330
223
|
MERLIN_MAINNET = 4200,
|
|
331
224
|
MERLIN_TESTNET = 686868,
|
|
332
|
-
BLAST_MAINNET = 81457,
|
|
333
225
|
MOVEMENT_MEVM_TESTNET = 336,
|
|
334
|
-
|
|
335
|
-
|
|
226
|
+
BLAST_MAINNET = 81457,
|
|
227
|
+
SCROLL_MAINNET = 534352
|
|
336
228
|
}
|
|
337
229
|
export type Chain = ChainID | ChainName | `${ChainName}` | `${ChainID}`;
|
|
338
230
|
export type Source = "Ponder" | "GoldRush" | "Viem";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChainID, type ChainName, type LogEvent, type NftData, type Nullable, type Pagination } from "./Generic.types";
|
|
1
|
+
import { type ChainID, type ChainName, type LogEvent, type NftData, type Nullable, type Pagination, type Quote } from "./Generic.types";
|
|
2
2
|
export type ChainCollectionResponse = Nullable<{
|
|
3
3
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
4
4
|
updated_at: Date;
|
|
@@ -271,3 +271,85 @@ export type CheckOwnershipInNftQueryParamOpts = Nullable<{
|
|
|
271
271
|
/** * Filters NFTs based on a specific trait value. If this filter is used, the API will return all NFTs with the specified trait value. Must be used with "traits-filter", is case-sensitive, and requires proper URL encoding. */
|
|
272
272
|
valuesFilter?: string;
|
|
273
273
|
}>;
|
|
274
|
+
export type GetCollectionMarketDataQueryParamOpts = Nullable<{
|
|
275
|
+
/** * The requested quote currency eg: `USD`. */
|
|
276
|
+
quote_currency?: Quote;
|
|
277
|
+
/** The number of days to return data for. Request up 365 days. Defaults to 30 days. */
|
|
278
|
+
days?: number;
|
|
279
|
+
}>;
|
|
280
|
+
export type NftCollectionFloorPriceResponse = Nullable<{
|
|
281
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
282
|
+
updated_at: Date;
|
|
283
|
+
/** The requested address. */
|
|
284
|
+
address: string;
|
|
285
|
+
/** * The requested quote currency eg: `USD`. */
|
|
286
|
+
quote_currency: Quote;
|
|
287
|
+
/** * The requested chain name eg: `eth-mainnet`. */
|
|
288
|
+
chain_name: ChainName;
|
|
289
|
+
/** * The requested chain ID eg: `1`. */
|
|
290
|
+
chain_id: ChainID;
|
|
291
|
+
/** * List of response items. */
|
|
292
|
+
items: NftCollectionFloorPriceItem[];
|
|
293
|
+
}>;
|
|
294
|
+
export type NftCollectionFloorPriceItem = Nullable<{
|
|
295
|
+
/** * The timestamp of the date of sale. */
|
|
296
|
+
date: Date;
|
|
297
|
+
/** * The ticker symbol for the native currency. */
|
|
298
|
+
native_ticker_symbol: string;
|
|
299
|
+
/** * The contract name of the native currency. */
|
|
300
|
+
native_name: string;
|
|
301
|
+
/** * The current floor price in native currency. */
|
|
302
|
+
floor_price_native_quote: number;
|
|
303
|
+
/** * The current floor price converted to fiat in quote-currency. */
|
|
304
|
+
floor_price_quote: number;
|
|
305
|
+
/** * A prettier version of the floor price quote for rendering purposes. */
|
|
306
|
+
pretty_floor_price_quote: string;
|
|
307
|
+
}>;
|
|
308
|
+
export type NftCollectionVolumeResponse = Nullable<{
|
|
309
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
310
|
+
updated_at: Date;
|
|
311
|
+
/** The requested address. */
|
|
312
|
+
address: string;
|
|
313
|
+
/** * The requested quote currency eg: `USD`. */
|
|
314
|
+
quote_currency: Quote;
|
|
315
|
+
/** * The requested chain name eg: `eth-mainnet`. */
|
|
316
|
+
chain_name: ChainName;
|
|
317
|
+
/** * The requested chain ID eg: `1`. */
|
|
318
|
+
chain_id: ChainID;
|
|
319
|
+
/** * List of response items. */
|
|
320
|
+
items: NftCollectionVolumeItem[];
|
|
321
|
+
}>;
|
|
322
|
+
export type NftCollectionVolumeItem = Nullable<{
|
|
323
|
+
/** * The timestamp of the date of sale. */
|
|
324
|
+
date: Date;
|
|
325
|
+
/** * The ticker symbol for the native currency. */
|
|
326
|
+
native_ticker_symbol: string;
|
|
327
|
+
/** * The contract name of the native currency. */
|
|
328
|
+
native_name: string;
|
|
329
|
+
/** * The current volume converted to fiat in `quoteCurrency`. */
|
|
330
|
+
volume_quote: number;
|
|
331
|
+
/** * The current volume in native currency. */
|
|
332
|
+
volume_native_quote: number;
|
|
333
|
+
/** * A prettier version of the volume quote for rendering purposes. */
|
|
334
|
+
pretty_volume_quote: string;
|
|
335
|
+
}>;
|
|
336
|
+
export type NftCollectionSalesCountResponse = Nullable<{
|
|
337
|
+
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
338
|
+
updated_at: Date;
|
|
339
|
+
/** The requested address. */
|
|
340
|
+
address: string;
|
|
341
|
+
/** * The requested quote currency eg: `USD`. */
|
|
342
|
+
quote_currency: Quote;
|
|
343
|
+
/** * The requested chain name eg: `eth-mainnet`. */
|
|
344
|
+
chain_name: ChainName;
|
|
345
|
+
/** * The requested chain ID eg: `1`. */
|
|
346
|
+
chain_id: ChainID;
|
|
347
|
+
/** * List of response items. */
|
|
348
|
+
items: NftCollectionSalesCountItem[];
|
|
349
|
+
}>;
|
|
350
|
+
export type NftCollectionSalesCountItem = Nullable<{
|
|
351
|
+
/** * The timestamp of the date of sale. */
|
|
352
|
+
date: Date;
|
|
353
|
+
/** * The total amount of sales for the current day. */
|
|
354
|
+
sales_count: string;
|
|
355
|
+
}>;
|