About the client
The client builds interactive features for live events and broadcasts, including polls, chat, VR/AR elements and social media integration, to build community during an event. It wanted to add blockchain-based access control and collectibles: letting service owners restrict access to holders of particular NFTs, and minting and airdropping NFT collections to audiences.
NFT access control that works on any network
- Contracts that might not exist. A service owner could enter a contract address that did not exist on the selected network.
- Attribute-level ownership checks. Access depended on owning NFTs with specific attributes, which meant retrieving token IDs efficiently.
- Configurable minting. Network type and contract instance had to be set dynamically for each minting job.
- No bulk minting. The contracts had no way to mint many NFTs at once.
- Hard to test. Test-network coins were scarce, some test networks were deprecated, and testing with real coins was expensive.
What FiftyFive built
FiftyFive's engineers delivered: contract address validation through a Web3 library, so gated chat rooms cannot be created against invalid contracts; Enumerable support in the smart contract, simplifying token ID retrieval for ownership checks; a provider built with ethers that handles network switching and contract creation for minting; a custom bulk-minting function for mass minting with custom metadata; off-chain collection creation to reduce gas fees; a custom event filter that retrieves the token IDs of a specific collection.
How the solution works
Creating a gated space
- When a service owner sets up a gated chat room, the system checks through a Web3 library that the contract address exists on the chosen network.
- Rooms with invalid contracts are rejected before creation.
Checking ownership
- With Enumerable support added to the smart contract, the platform can list the token IDs a user holds and check whether any carry the attributes the room requires.
Minting and airdrops
- An ethers-based provider selects the network and creates the contract instance for each minting job.
- A custom bulk-minting function mints many NFTs with custom metadata in one operation, and collections are created off-chain to keep gas fees down.
- A custom event filter then retrieves the token IDs belonging to a given collection.
Technology stack
What the solution enabled
Business transformation
Chat rooms for holders of particular NFTs
Custom metadata for many NFTs in one operation
Collection creation to reduce gas fees
Gating
Token gating for chat rooms, with on-chain contract validation and attribute-level ownership checks.
Minting
NFT minting with custom metadata on several networks, including bulk minting.
Gas costs
Off-chain collection creation to reduce gas costs.
Retrieval
Collection-level token ID retrieval, alongside airdropping of NFT collections.
FiftyFive Technologies built token gating and NFT minting for a company that creates interactive experiences for live events and broadcasts. The client wanted to control access to services, such as chat rooms, by NFT ownership and to mint NFT collections with custom metadata across several blockchain networks. FiftyFive validated contract addresses on-chain before gated rooms could be created, added Enumerable support to the smart contract for ownership checks, built an ethers-based provider for network switching, and wrote a custom bulk-minting function with off-chain collection creation to reduce gas fees.
Technical questions
How does token gating check that a contract exists?
When a service owner sets up a gated chat room, the system checks through a Web3 library that the contract address exists on the chosen network. Rooms with invalid contracts are rejected before creation.
How does bulk minting keep gas fees down?
A custom bulk-minting function mints many NFTs with custom metadata in one operation, and collections are created off-chain to keep gas fees down.