Valist Docs
  • Quick Start
    • 🌄Intro to Valist
      • 🎮Valist For Gamers
      • 👨‍💻Valist For Game Developers
    • 🚀Creating an Account & Project
    • 🌐Web Dashboard
    • 💎Sapphire Launcher
    • 💻CLI
    • 🧩GitHub Action
  • Publishing
    • 🌐Publishing Web Apps
      • Publishing a Next JS App
      • Publishing a React JS App
    • 🎮Publishing Unity Projects
    • 🚀Publishing using CI/CD
    • ⚙️Publishing Binaries & Executables
  • Monetization
    • 💰Intro to Software License NFTs
    • 💱Configuring Pricing for your Products
    • 🔐Token-gating Unity Projects
  • TypeScript SDK
    • TypeScript SDK
    • TypeDoc
  • Golang SDK
    • Golang SDK
  • Live Deployments
    • Smart Contracts
    • Subgraph
    • Gas Tank
Powered by GitBook
On this page
  1. Monetization

Token-gating Unity Projects

Valist makes it easy to token-gate Unity projects

PreviousConfiguring Pricing for your ProductsNextTypeScript SDK

Last updated 2 years ago

This page is under re-construction! Stay tuned for updates!

Once you've created a License NFT (ERC1155), it's up to you how you'd like to token gate!

The general flow for token gating your software is to:

  1. Connect to the user's wallet

  2. Sign a message to authenticate the user

  3. Recover the address from the signature

  4. Check the user's License NFT balance

  5. Start your application if they have a License token. If they don't, redirect them to your Valist Project page, or enable in-app purchasing of the License.

For Unity games and applications, we recommend:

  • SDK (Developer )

    • Example

  • Moralis Unity SDK (Developer )

A starter template for ChainSafe Gaming & Valist Software License NFTs can be found here:

The following script enables quick signing, you just simply need to attach this to a Login object in your Unity game!

Another example can be found here:

🔐
ChainSafe Gaming
Docs
script
Docs
GitHub - valist-io/valist-chainsafe-gaming-starter: Unity3D starter project for building games with ChainSafe GamingGitHub
NFTLicense.cs
Logo