📢 Gate Square Exclusive: #WXTM Creative Contest# Is Now Live!
Celebrate CandyDrop Round 59 featuring MinoTari (WXTM) — compete for a 70,000 WXTM prize pool!
🎯 About MinoTari (WXTM)
Tari is a Rust-based blockchain protocol centered around digital assets.
It empowers creators to build new types of digital experiences and narratives.
With Tari, digitally scarce assets—like collectibles or in-game items—unlock new business opportunities for creators.
🎨 Event Period:
Aug 7, 2025, 09:00 – Aug 12, 2025, 16:00 (UTC)
📌 How to Participate:
Post original content on Gate Square related to WXTM or its
Solana NFT identification verification: A comprehensive analysis of creation and implementation processes.
Explore Using Solana Token for Identification Verification
NFT, as a non-fungible token, is very suitable for use as an identification verification tool. This article will explore the feasibility of using NFT as a registration credential through a simple example.
Preparation Work
Before we start, we need to understand the following tools:
SPL Token
The Token Program provided by Solana is part of the Solana Program Library (SPL). SPL includes multiple commonly used program implementations and provides a comprehensive client library and CLI tools, greatly facilitating development.
Solana Playground
This is an online environment for writing and deploying Solana contracts, equipped with some commonly used tools, including the SPL Token mentioned above. We can easily create and manage tokens through spl-token-cli.
Create Identification Verification Token
We will create an NFT Token. If a user mints the Token, it is considered that the wallet address has been registered in the system.
Create Token
Create a new indivisible Token using spl-token:
spl-token create-token --decimals 0
This will output the Mint Address of the Token, which is the unique identification of the Token.
Create Token Account
Create a Token Account for the created Token:
spl-token create-account <token_mint_address>
Mint Token
Try to mint a Token unit for the Token Account:
spl-token mint <token_mint_address> 1
mint for wallet address
To mint tokens for a user wallet, you first need to create a Token Account for that wallet, and then use that Account to mint.
Create Token Account:
spl-token create-account <token_mint_address> --owner <wallet_address>
Get Token Account Information
Use the getTokenAccountsByOwner method of the RPC interface to check if the wallet has minted NFTs.
Implementation
We create a simple project using Nextjs and connect the wallet using Ant Design Web3.
Mainly implemented three pages:
Login process:
Registration process:
After completing registration, you can view the relevant transaction records and minted NFTs on Solscan.
Summary
We have implemented a simple identification verification system by creating NFTs and using them as user registration credentials. Users only need to connect the same wallet to log in to the website again. This method leverages the immutable nature of blockchain, providing a new approach to identification verification for Web3 applications.