惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Full Disclosure
博客园 - 聂微东
IT之家
IT之家
The Cloudflare Blog
L
LangChain Blog
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
P
Proofpoint News Feed
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
I
Intezer
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
ThreatConnect
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
小众软件
小众软件
T
The Exploit Database - CXSecurity.com
H
Help Net Security
T
Tenable Blog
WordPress大学
WordPress大学
F
Future of Privacy Forum
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
NISL@THU
NISL@THU
The Register - Security
The Register - Security
A
About on SuperTechFans
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MyScale Blog
MyScale Blog
Malwarebytes
Malwarebytes
博客园_首页
T
Threatpost
C
CERT Recently Published Vulnerability Notes
Know Your Adversary
Know Your Adversary
T
Threat Research - Cisco Blogs
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
Blog — PlanetScale
Blog — PlanetScale
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
K
Kaspersky official blog
月光博客
月光博客
Jina AI
Jina AI
S
Securelist
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
腾讯CDC
S
Secure Thoughts
V
V2EX - 技术

DEV Community

Terraform + Terragrunt + Ansible: A Hands-On Learning Journey Switching Users in Linux (su, sudo) AI 智能体的鲁莽速度 Quick Win Card #01 — Ton backlog.md t'a menti (la cure en 30 secondes) Quick Win Card #01 — Your backlog.md lied to you (a 30-second cure) How to Manage an IT Team: Structure, Scaling, and Daily Workflows That Work Speccing Is the New Coding CAC 250만 원을 뚫기 위해 퍼널 세 곳을 뜯어고친 3개월 Five Salesforce Reports Every Nonprofit Leadership Team Should Have Beyond the West: What Eastern AI Models Mean for Enterprises, Developers, and Digital Sovereignty Class and Pseudo Class Git & GitLab Basics 고객은 우리를 사기꾼으로 봤다: 아무도 믿지 않는 신사업을 단 둘이서 검증한 3개월 Cron Not Working on Mac? How to Fix the macOS Sleep Trap with launchd Cache Everything: Advanced Caching Strategies in Vue 3 & Nuxt 4 Deploy a Node.js App to STACKIT Kubernetes Engine With Managed Redis & PostgreSQL Slopsquatting & Remote Prompts: Why I Built a 38,000 Ticker Engine with Zero NPM Dependencies 05/20: TCP/IP vs OSI Model: The Ultimate Comparison My New Adventures in IT # Mitigating Market Inefficiency in eSports: A Stochastic Approach to EA Sports FC25 Modeling Don't let a billion RAG docs drown your 25-result pipeline Experienced devs are slower with AI tools. Nobody wants to admit it. I built an MCP-native OSINT framework that lets AI agents investigate from your terminal AWS Nitro Enclaves vs Intel TDX: Why Attestation Root Matters for Regulated Workloads Vibe Coding: Revolution or Risk in Software Development? - SmarterArticles S1E6 JSON Schema Explained: Validate Your API Data Before It Breaks Production Harness Tells Your Agent What to Do. GUI Agents Let It Actually Do It. Is AI actually replacing developers? Customizing Docker Images: Write Your First Dockerfile (2026) €40 n8n vs 28% weekly Anthropic quota. Which /goal layer should you actually run? Reviving glyph-v8: From a Forgotten Prototype to STRIDE - a Field-Aware Integer Coder 04/20: Data Encapsulation: How a Message Becomes Bits on the Wire Hướng Dẫn Thiết Lập Reasoning Proxy DeepSeek V4-Pro với Cursor (2026) Sofi Log #012: Agentic GDP — Solana Pay.sh & x402 Protocol Spec Input Types, Attributes, Self-Closing Tags, Hover Effect Absolute vs Relative Paths File Types (Regular, Directory, Link, Device, Socket, Pipe) From Arduino IDE to AVR GCC | AVR Bare Metal #1 Using Bitcoin as collateral without wrapping it: the design of a BTC collateral vault Unreal Engine 5 Skill System Architecture using GAS and GameplayTags 5 Things I Wish I Knew Before Building with Hermes Agent Thoughts on Codingame 2026 Spring challenge OUT WITH THE OLD IN WITH THE NEW Why are simple 1099 tax calculators online so horribly bloated? So I built my own "Why You're Not Getting Callbacks (It's Not Your Skills)" # How I Built a Retail Demand Forecasting App with Python and Streamlit Why We Deliberately Crush Lithium Batteries (UN38.3 Crush Testing Explained) Command History & Completion The Three-Body Problem: AI Code, Supply Chain Attacks, and the Talent Exodus 로컬 LLM 셋업 가이드 (v27) Building Better .NET Worker Services with Cursor Rules Generate Professional PDF Invoices via REST API — JSON In, PDF Out Redis: Big Keys Destroem o Desempenho Compartilhado Agentic AI for Cybersecurity: Autonomous Threat Detection and Response How to Automate Android Without Appium Cron vs systemd daemon: which one for Node.js? Designing XSLT transforms with parameters and multiple inputs I Downloaded Gemma4:e2b On My Macbook in 2 steps Building an Autonomous SRE Agent: From Raw Telemetry to Safe, AI-Driven Remediation The EU AI Act in 2026: Reading the Law After the Omnibus I had zero coding knowledge. Here is "RetroTube", a 2010 YouTube sandbox prototype I built using AI! How to Validate Environment Variables in TypeScript (and Why You Should) I Built a CLI Tool That Writes Better Git Commits Than I Do Transfer Fees, Metadata, and Soulbound Tokens: My First Real Token Experiments on Solana Stop Using Fetch() in React: A Better Way To Call Your Backend Creando un Tetris con JavaScript VI: Complicando el juego. DeepSeek's API Price Cut Changed My Claude Code and ChatGPT Math [Boost] Perl 🐪 Weekly #774 - Perl is too HOT How to Track AI Usage Without Losing Revenue (Complete Guide) 77 Rules Later: What Graduating Our First Stack Actually Looked Like RAG 시스템 실전 구축 (v26) When Premature Scaling Leads to Operator Burnout Multi-Repo Microservice Changes Are a Coordination Problem. I Solved It With AI Agent Teams. The Next Frontier: How Multi-Agent Systems are Redefining Productivity The Kimwolf Bust Just Outed Android Webcams as Botnet Fodder — Here's the Question Every Repurposed-Phone Camera Setup Has to Answer I'm an autonomous AI agent. I shipped 18 fixes to myself in one session. Building a Secure Future with Zero Trust Security Architecture Asynchronous Functions in Dart How I migrated magic-link login from Resend to AWS SES + Lambda five days before launch Edge Computing He creado una empresa ficticia IT/OT para poder encontrar sus vulnerabilidades y reforzar su seguridad en sus activos críticos Why I Built @editora/react I built a tiny UGC script generator because hooks are the hardest part The Phone Is Becoming the New Terminal Why Most AI Music Tools Feel Wrong to Developers Goroutines vs. Promises: Why Go and JavaScript Look at Concurrency Completely Differently How I Use Antigravity 2.0 to Navigate Open-Source Codebases and Make Better Technical Decisions Understanding Basic HTML & CSS Concepts for Beginners Go Error Handling: Annoying or Awesome? Your To-Do List Doesn't Know You — So I Gave Mine Three Brains Shell Basics (Bash, Zsh, Sh) Free MongoDB GUI Tool for Developers, Students, and Teams Designing High-Performance Blockchain Indexers Choosing Models for an Agentic Chat App on Amazon Bedrock How Smart Growth Teams Automate Their Marketing Stack in 2026 (Without Hiring More People) What I Learned About Memory-Augmented AI Agents Seven Docker Tips Every Engineer Should Know (from Docker Captains) Welcome to the Fast-Food Era of Testing: Over-Weight by Tests How to use Claude in vscode?
Creating My First Token on Solana Devnet as a Web2 Developer
Tobi Ayinmir · 2026-05-25 · via DEV Community

As a web developer, I’m used to building systems where currencies, rewards, and balances live inside databases controlled by the backend.

This week was my first time creating an actual on-chain token on Solana, and honestly, it changed how I think about digital assets.

Instead of storing balances in a database table, the blockchain itself handled everything — minting, transfers, metadata, and verification.

In this post, I’ll walk through how I created my first token on Solana devnet using Token-2022, added metadata to it, minted supply, and transferred tokens between wallets.


What I Needed Before Starting

Before creating the token, I needed:

  • Solana CLI installed
  • SPL Token CLI installed
  • A funded devnet wallet
  • Solana configured to devnet

First, I configured Solana to use devnet:

solana config set --url devnet

Enter fullscreen mode Exit fullscreen mode

Then I requested free devnet SOL:

solana airdrop 2

Enter fullscreen mode Exit fullscreen mode


Creating My First Token Mint

Unlike the older SPL Token Program, I used the newer Token-2022 Program because it supports extensions like:

  • Metadata
  • Transfer fees
  • Interest-bearing tokens
  • Non-transferable (soulbound) tokens

Here’s the command I used:

spl-token create-token \
  --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb \
  --enable-metadata \
  --decimals 6

Enter fullscreen mode Exit fullscreen mode

After running it, Solana generated a token mint address for me.

At this point, the token technically existed on-chain, but it still had no identity.

It was basically just a random string of characters.


Adding Metadata to the Token

This was one of the coolest parts for me.

I learned that Solana’s Token-2022 Program allows metadata to live directly on-chain instead of depending entirely on separate programs.

I initialized the token metadata like this:

spl-token initialize-metadata \
  <TOKEN_MINT_ADDRESS> \
  "<TOKEN_NAME>" \
  "<TOKEN_SYMBOL>" \
  "<TOKEN_METADATA_URI>"

Enter fullscreen mode Exit fullscreen mode

Example placeholders:

  • <TOKEN_MINT_ADDRESS> → your token mint address
  • <TOKEN_NAME> → e.g. MyCoin
  • <TOKEN_SYMBOL> → e.g. MYC
  • <TOKEN_METADATA_URI> → public JSON metadata link

At this point, my token finally had:

  • a name
  • a symbol
  • metadata attached to it

That made it feel like a real digital asset instead of just raw blockchain data.


Creating a Token Account

One concept that confused me initially was token accounts.

I assumed my wallet could directly hold tokens.

That’s not exactly how Solana works.

On Solana:

  • the mint defines the token
  • token accounts hold balances for that token

So before I could receive my token, I had to create a token account:

spl-token create-account <TOKEN_MINT_ADDRESS>

Enter fullscreen mode Exit fullscreen mode

This generated an associated token account tied to my wallet and token mint.


Minting My First Supply

Now came the exciting part.

I minted 1000 tokens into my token account:

spl-token mint <TOKEN_MINT_ADDRESS> 1000

Enter fullscreen mode Exit fullscreen mode

Then I checked the balance:

spl-token balance <TOKEN_MINT_ADDRESS>

Enter fullscreen mode Exit fullscreen mode

And seeing this:

1000

Enter fullscreen mode Exit fullscreen mode

it felt surprisingly rewarding to be honest


Creating a Second Wallet

To test transfers properly, I created a second wallet:

solana-keygen new \
  --outfile ~/second-wallet.json \
  --no-bip39-passphrase

Enter fullscreen mode Exit fullscreen mode

This simulated sending tokens to another user.


Transferring Tokens

I transferred 250 tokens to the second wallet:

spl-token transfer \
  <TOKEN_MINT_ADDRESS> \
  250 \
  $(solana-keygen pubkey ~/second-wallet.json) \
  --fund-recipient \
  --allow-unfunded-recipient

Enter fullscreen mode Exit fullscreen mode

The --fund-recipient flag automatically created the recipient’s token account if it didn’t already exist.

That was another thing that clicked for me:
even receiving tokens on Solana involves token accounts behind the scenes.


Verifying the Transfer

I checked both balances.

My wallet balance:

spl-token balance <TOKEN_MINT_ADDRESS>

Enter fullscreen mode Exit fullscreen mode

Recipient wallet balance:

spl-token balance \
  --owner $(solana-keygen pubkey ~/second-wallet.json) \
  <TOKEN_MINT_ADDRESS>

Enter fullscreen mode Exit fullscreen mode

The balances showed:

  • 750 in my wallet
  • 250 in the second wallet

The transfer worked successfully.


What Confused Me Initially

One of the biggest things that confused me was the difference between:

  • wallet addresses
  • token accounts
  • token mints

At first, I thought:

“Why can’t I just send directly to the wallet?”

But Solana separates:

  • the wallet owner
  • the token account holding balances
  • the token definition itself

Once that clicked, the entire token system started making much more sense.


What Surprised Me Most

The biggest surprise was realizing how much logic the blockchain itself handles.

In Web2, building something similar would require:

  • database tables
  • backend APIs
  • transfer validation
  • balance management
  • permission handling

On Solana:

  • the protocol handles balances
  • token programs enforce rules
  • transactions are verifiable on-chain

It felt like moving backend business logic directly into infrastructure.


Final Thoughts

Creating my first token on Solana made Web3 feel much less abstract.

Before this, tokens felt like mysterious blockchain concepts.

Now I understand that they’re actually programmable digital assets with rules enforced directly by the protocol.

This was my first step into Solana development, and it definitely won’t be the last.

Next, I want to explore:

  • transfer fee extensions
  • soulbound tokens
  • Solana programs with Rust
  • building full-stack dApps

If you’re coming from Web2 development, my advice is simple:

Start building.

Things make much more sense once you actually create something yourself.

link to the token: https://explorer.solana.com/address/vXRh8HHmjeFvpQgt19EEqf6iaAQxqM8NtCdTwCAqozu?cluster=devnet