LiveTheLifeTV
  • The Future of Photography?
  • LTL Art Collective
    • Auction House
      • Photogrammetry
      • GVO Premint
      • MetaVerse
    • Culture Code
      • Vision / Mission
      • The Bear Market
    • Dream Team
      • Dimitri Daniloff
      • Official Links
  • LTL Workstreams
    • The Summary ⌐◨-◨
    • Creative Design ⌐◧-◧
      • Brand Guide
      • Experimental
        • The Blind Mint
        • Oncyber 1/1
    • Engineering ⌐◫-◫
      • GVO Free Mint
      • Auction House
      • Experimental
        • Play Grounds
          • AllianceDAO
          • DAOhaus
        • Archived (TBD)
          • NFT Component
          • Dynamic Rarity
          • Bankless Loans
          • ERC 1271
          • Optimism
          • Tokenomics
          • Charged Particles
          • Fair Launch
          • Gitflow
          • Audit
          • ENS polygon
        • Web3 Travel
        • Lens Protocol
        • NFT LootBox
        • NFT Staking
    • Operations ⌐◪-◪
      • Governance
      • SnapShot
      • Discord TBD
    • Treasury & Legal ⌐Ξ-Ξ
      • Onchain LLCs
      • Web3 Grants
      • Fundraising
      • JuiceBox
      • Pre-Seed
      • Fairmint
      • Web3 VC
      • License
    • Partnerships ⌐◩-◩
      • TDM Drops
      • Spatial
      • Token Proof
      • MF + HaLo
      • Whitewall
      • Art Link
      • Anima Supply AR
      • One Tree Planted
      • Klima
    • Marketing & PR ⌐◮-◮
      • MPR Strategy
      • FAQ by Dyno
    • Community Vibes ⌐◭-◭
      • Degen Vibes
        • Degen Vibes Proposal
        • Snapshot Delegate
        • The NounsDAO
      • CC Monthly #01
      • Collectors Club
      • IRL Wine Tasting
      • IRL Experiences
  • LTL Tool Box
    • Creator
      • New To NFTs?
      • Davinci Resolve
      • Capture One
      • Photogrammetry
        • MetaShape
        • ZBrush
        • Capture Reality
        • Blender 3D
      • IRL Workshop
    • Frontend
      • Basics
        • NextJS
        • Tailwind
        • SASS SCSS
        • Bun
        • Vite / Rainbow
        • Postgres
        • ImageKit
        • Vercel
        • Kafka
        • Factoria
      • Web2
        • Ghost
        • Shopify
        • Webflow
    • Backend
      • Fleek
      • Spheron
      • TableLand
      • FileBase
      • Arweave
      • Prisma
      • Sanity GROQ
      • PlanetScale
      • HandShake
    • Contracts
      • Manifold
      • AsyncArt
      • Niftykit
      • Buildship
      • VerisArt
      • Hashlips
      • Bunzz
      • BuildSpace
      • Foundry
    • NFT SDKs
      • Zora V3
      • Rarible
      • Seaport
      • Foundation
      • SudoSwap
    • NFT APIs
      • Reservoir
      • SimpleHash
      • Alchemy
      • Moralis
      • OpenSea
      • NFTport
Powered by GitBook
On this page
  1. LTL Workstreams
  2. Engineering ⌐◫-◫
  3. Experimental

NFT LootBox

PreviousLens ProtocolNextNFT Staking

Last updated 2 years ago

For example, if our lootbox collection has a total of 100 NFTs, and 75 of them are copies of NFT A, and 25 of them are NFT B, then the probability of getting NFT A is 75%, and the probability of getting NFT B is 25%, making NFT B more ‘rare’ than NFT A. To execute this, we’ll use Thirdweb, an easy to use web dashboard for building Web3 applications, to create an NFT ‘bundle collection’, that we’ll use to create a ‘pack’. Each pack will have a randomly generated number which will determine if the NFT inside is either NFT A or NFT B.

Our NFT metadata and assets will be stored in a .

The pack contract lets you bundle , and, tokens together into ERC-1155 NFTs that act as randomized loot boxes. When a pack is opened, a pre-defined quantity of tokens are randomly selected from the ones that were used to create the packs (that haven't already been selected), and awarded to the opener. The pack NFT is burned as it's opened.

You can configure how many tokens get selected for the pack: How many tokens are in each "unit" (for ERC-20 & ERC-1155 tokens - one unit could be multiple tokens). How many units are in each pack. You could use the Pack contract to:

  • Create randomized NFT loot boxes

  • Run a randomized raffle where some users open a winning ticket

  • Reward your community with token gift boxes

update

  • Deploy a pack contract

  • Mint pack NFTs with other tokens inside them

  • Create an app that lets you open them to reveal what's inside

Filebase IPFS bucket
ERC20
ERC721
ERC1155
LogoCreating an NFT Lootbox on IPFS with Filebase and ThirdwebFilebase Blog
LogoCreate NFT Loot-Boxes Using the Pack Contract | thirdweb developer portal
LogoPack | thirdweb developer portal