Created on 1st February 2025
•
TicketNFT provides a secure, fair, and seamless ticketing experience while giving organizers control over pricing, transfers, and engagement.
The initial challenge was to send meta mask account instance to all the pages because for all transactions, account instance is required and we cannot send it like cookies to another page as it is not as simple as a wallet address it rather contanins a whole bunch of functions associated with it, also it cannot be called in api routes too. So the solution was to create a our structure in such a way that there is a const navbar with wallet instance in layout file rather than page so it is accessible to all the children pages.
The next challenge was writing the solidity file, although webThree provides sample contract for minting and claiming and a full functional marketplace around ERC721A but soon we realised none of then alone was able to fullfill our expected functionality. So we went through documentations and sample videos on youtube to get a gist and use thirdweb modular contracts with tweaking and some other functionality, again from docs to write a basic contract through which one can claim NFT on certain price. Then we added function layer by layer many a times using ai for help and sometimes going through docs to debug as ai was not perfect sometimes.
On frontend side a big challenge was how to integrate this deployed contract through thirdWeb protal into our codeBase using sample videos by thirdWeb on YT soon we were able to find common patterns and were able to integrate and call basic read write function.
Tracks Applied (4)
ETHIndia
Aptos
Technologies used