@@ -43,7 +43,7 @@ public interface ITokenApi
4343 /// <param name="offset">offset</param>
4444 /// <param name="limit">limit</param>
4545 /// <returns>Returns the trades</returns>
46- TradesCollection GetNFTTrades ( string address , ChainList chain , int ? fromBlock = null , string toBlock = null , string fromDate = null , string toDate = null , string providerUrl = null , string marketplace = null , int ? offset = null , int ? limit = null ) ;
46+ TradeCollection GetNFTTrades ( string address , ChainList chain , int ? fromBlock = null , string toBlock = null , string fromDate = null , string toDate = null , string providerUrl = null , string marketplace = null , int ? offset = null , int ? limit = null ) ;
4747
4848 /// <summary>
4949 /// Get the lowest price found for a nft token contract for the last x days (only trades paid in ETH)
@@ -56,7 +56,7 @@ public interface ITokenApi
5656 /// <param name="providerUrl">web3 provider url to user when using local dev chain</param>
5757 /// <param name="marketplace">marketplace from where to get the trades (only opensea is supported at the moment)</param>
5858 /// <returns>Returns the trade with the lowest price</returns>
59- TradesCollection GetNFTLowestPrice ( string address , ChainList chain , int ? days = null , string providerUrl = null , string marketplace = null ) ;
59+ Trade GetNFTLowestPrice ( string address , ChainList chain , int ? days = null , string providerUrl = null , string marketplace = null ) ;
6060
6161 /// <summary>
6262 /// Returns metadata (name, symbol, decimals, logo) for a given token contract address.
@@ -103,7 +103,7 @@ public interface ITokenApi
103103 /// <param name="offset">offset</param>
104104 /// <param name="limit">limit</param>
105105 /// <returns>Returns a collection of token contract transactions.</returns>
106- List < Erc20Transaction > GetTokenAdressTransfers ( string address , ChainList chain , string subdomain = null , int ? fromBlock = null , int ? toBlock = null , string fromDate = null , string toDate = null , int ? offset = null , int ? limit = null ) ;
106+ Erc20TransactionCollection GetTokenAddressTransfers ( string address , ChainList chain , string subdomain = null , int ? fromBlock = null , int ? toBlock = null , string fromDate = null , string toDate = null , int ? offset = null , int ? limit = null ) ;
107107
108108 /// <summary>
109109 /// Gets the amount which the spender is allowed to withdraw from the spender
@@ -144,31 +144,6 @@ public interface ITokenApi
144144 /// <returns>Returns the matching NFTs</returns>
145145 NftMetadataCollection SearchNFTs ( string q , ChainList chain , string format = null , string filter = null , int ? fromBlock = null , int ? toBlock = null , string fromDate = null , string toDate = null , int ? offset = null , int ? limit = null ) ;
146146
147- /// <summary>
148- /// Gets data, including metadata (where available), for all token ids for the given contract address.
149- /// * Results are sorted by the block the token id was minted (descending) and limited to 100 per page by default
150- /// * Requests for contract addresses not yet indexed will automatically start the indexing process for that NFT collection
151- ///
152- /// </summary>
153- /// <param name="address">Address of the contract</param>
154- /// <param name="chain">The chain to query</param>
155- /// <param name="format">The format of the token id</param>
156- /// <param name="offset">offset</param>
157- /// <param name="limit">limit</param>
158- /// <returns>Returns a collection of nfts</returns>
159- NftCollection GetAllTokenIds ( string address , ChainList chain , string format = null , int ? offset = null , int ? limit = null ) ;
160-
161- /// <summary>
162- /// Gets the transfers of the tokens matching the given parameters
163- /// </summary>
164- /// <param name="address">Address of the contract</param>
165- /// <param name="chain">The chain to query</param>
166- /// <param name="format">The format of the token id</param>
167- /// <param name="offset">offset</param>
168- /// <param name="limit">limit</param>
169- /// <returns>Returns a collection of NFT transfers</returns>
170- NftTransferCollection GetContractNFTTransfers ( string address , ChainList chain , string format = null , int ? offset = null , int ? limit = null ) ;
171-
172147 /// <summary>
173148 /// Gets the transfers of the tokens from a block number to a block number
174149 /// </summary>
@@ -195,6 +170,31 @@ public interface ITokenApi
195170 /// <returns>Returns a collection of NFT transfers</returns>
196171 NftTransferCollection GetNftTransfersFromToBlock ( ChainList chain , int ? fromBlock = null , int ? toBlock = null , string fromDate = null , string toDate = null , string format = null , int ? offset = null , int ? limit = null ) ;
197172
173+ /// <summary>
174+ /// Gets data, including metadata (where available), for all token ids for the given contract address.
175+ /// * Results are sorted by the block the token id was minted (descending) and limited to 100 per page by default
176+ /// * Requests for contract addresses not yet indexed will automatically start the indexing process for that NFT collection
177+ ///
178+ /// </summary>
179+ /// <param name="address">Address of the contract</param>
180+ /// <param name="chain">The chain to query</param>
181+ /// <param name="format">The format of the token id</param>
182+ /// <param name="offset">offset</param>
183+ /// <param name="limit">limit</param>
184+ /// <returns>Returns a collection of nfts</returns>
185+ NftCollection GetAllTokenIds ( string address , ChainList chain , string format = null , int ? offset = null , int ? limit = null ) ;
186+
187+ /// <summary>
188+ /// Gets the transfers of the tokens matching the given parameters
189+ /// </summary>
190+ /// <param name="address">Address of the contract</param>
191+ /// <param name="chain">The chain to query</param>
192+ /// <param name="format">The format of the token id</param>
193+ /// <param name="offset">offset</param>
194+ /// <param name="limit">limit</param>
195+ /// <returns>Returns a collection of NFT transfers</returns>
196+ NftTransferCollection GetContractNFTTransfers ( string address , ChainList chain , string format = null , int ? offset = null , int ? limit = null ) ;
197+
198198 /// <summary>
199199 /// Gets all owners of NFT items within a given contract collection
200200 /// * Use after /nft/contract/{token_address} to find out who owns each token id in a collection
0 commit comments