NFTicket
NFTicket: Blockchain platform preventing ticket scalping via resale limits & price caps. Transforms tickets to memorabilia post-event. Ensures fair distribution with purchase limits. Adds organizer ac
Created on 9th March 2025
•
NFTicket
NFTicket: Blockchain platform preventing ticket scalping via resale limits & price caps. Transforms tickets to memorabilia post-event. Ensures fair distribution with purchase limits. Adds organizer ac
The problem NFTicket solves
The Problem NFTicket Solves
NFTicket addresses key issues in event ticketing:
Ticket Scalping Prevention
- Caps resale price at 110% of last transaction
- Limits resales to maximum of 2 per ticket
- Prevents exploitative price gouging at high-demand events
Fair Distribution
- Limits purchases to 2 tickets per batch per buyer
- Ensures more fans can access tickets at original prices
- Reduces monopolization by scalpers using bots
Organizer Accountability
- Requires ETH staking by organizers to register
- Builds trust between event creators and attendees
- Ensures organizers have skin in the game
Ticket Fraud Elimination
- Blockchain verification prevents counterfeits
- Transparent ownership history
- Secure ticket transfers through smart contracts
Post-Event Value
- Transforms tickets into digital memorabilia after events
- Special metadata changes create collectible NFTs
- Adds unique utility beyond the event itself
Secondary Market Trust
- Transparent pricing history
- Verifiable transaction records
- Automated enforcement of resale policies
Enhanced Security
- ReentrancyGuard protection against attacks
- Implements OpenZeppelin's security standards
- Pausable functionality for emergency situations
NFTicket creates a safer, fairer ticketing ecosystem that rewards genuine fans while providing additional value to both attendees and organizers.
Challenges we ran into
Challenges We Ran Into
Building NFTicket presented several complex challenges that tested our technical skills and problem-solving abilities:
Smart Contract Security Vulnerabilities
Our initial implementation was vulnerable to reentrancy attacks during the ticket purchase process. After thorough testing, we discovered that malicious actors could potentially exploit our contract by recursively calling the buyNFT function before the state was properly updated.
Solution: We implemented OpenZeppelin's ReentrancyGuard and carefully restructured our code to follow the check-effects-interactions pattern, ensuring all state changes occur before external calls.
Gas Optimization for Batch Operations
Early versions of our contract consumed excessive gas when minting and listing tickets, making it economically unfeasible for large events.
Solution: We redesigned our architecture to use batch operations and optimized storage patterns, reducing gas costs by approximately 40%. This was particularly challenging as we needed to maintain individual ticket properties while grouping operations.
Price Cap Enforcement Mechanism
Creating a reliable mechanism to enforce the 110% price cap for resales proved tricky, especially when handling edge cases like multiple transfers and decimal precision.
Solution: We implemented a robust tracking system that stores the last sale price and performs accurate percentage calculations with proper rounding to prevent manipulation through floating-point errors.
Metadata Transformation Logic
Ensuring the URI update mechanism worked properly after event completion without compromising the integrity of the existing tokens required several iterations.
Solution: We created a dual-URI system with batch-specific metadata tracking that allows selective URI updates while maintaining backward compatibility.
Purchase Limit Enforcement
Initially, our purchase limit system could be circumvented by using multiple trans
Tracks Applied (1)
Ethereum Track
ETHIndia
