File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ public async Task<NFT> Get(string tokenId)
4444 /// <summary>
4545 /// Get a all NFTs in this contract
4646 /// </summary>
47- public async Task < List < NFT > > GetAll ( )
47+ public async Task < List < NFT > > GetAll ( QueryAllParams queryParams = null )
4848 {
49- return await Bridge . InvokeRoute < List < NFT > > ( getRoute ( "getAll" ) , new string [ ] { } ) ;
49+ return await Bridge . InvokeRoute < List < NFT > > ( getRoute ( "getAll" ) , Utils . ToJsonStringArray ( queryParams ) ) ;
5050 }
5151
5252 /// <summary>
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ public async Task<NFT> Get(string tokenId)
4444 /// <summary>
4545 /// Get a all NFTs in this contract
4646 /// </summary>
47- public async Task < List < NFT > > GetAll ( )
47+ public async Task < List < NFT > > GetAll ( QueryAllParams queryParams = null )
4848 {
49- return await Bridge . InvokeRoute < List < NFT > > ( getRoute ( "getAll" ) , new string [ ] { } ) ;
49+ return await Bridge . InvokeRoute < List < NFT > > ( getRoute ( "getAll" ) , Utils . ToJsonStringArray ( queryParams ) ) ;
5050 }
5151
5252 /// <summary>
Original file line number Diff line number Diff line change @@ -149,7 +149,6 @@ public class ClaimConditions
149149 public string availableSupply ;
150150 public string currentMintSupply ;
151151 public CurrencyValue currencyMetadata ;
152- public string price ;
153152 public string currencyAddress ;
154153 public string maxClaimableSupply ;
155154 public string maxClaimablePerWallet ;
Original file line number Diff line number Diff line change @@ -51,15 +51,18 @@ public async void OnSignClick()
5151 public async void GetERC721 ( )
5252 {
5353 // fetch single NFT
54- var contract = sdk . GetContract ( "0x2e01763fA0e15e07294D74B63cE4b526B321E389" ) ; // NFT Drop
54+ var contract = sdk . GetContract ( "0x2e01763fA0e15e07294D74B63cE4b526B321E389" ) ; // NFT Drop
5555 count ++ ;
5656 resultText . text = "Fetching Token: " + count ;
5757 NFT result = await contract . ERC721 . Get ( count . ToString ( ) ) ;
5858 resultText . text = result . metadata . name + "\n owned by " + result . owner . Substring ( 0 , 6 ) + "..." ;
5959
6060 // fetch all NFTs
6161 // resultText.text = "Fetching all NFTs";
62- // List<NFT> result = await contract.ERC721.GetAll();
62+ // List<NFT> result = await contract.ERC721.GetAll(new Thirdweb.QueryAllParams() {
63+ // start = 0,
64+ // count = 10,
65+ // });
6366 // resultText.text = "Fetched " + result.Count + " NFTs";
6467 // for (int i = 0; i < result.Count; i++) {
6568 // Debug.Log(result[i].metadata.name + " owned by " + result[i].owner);
You can’t perform that action at this time.
0 commit comments