From Basic Tokens to Soulbound Assets: What I Learned Building on Solana Token-2022
Over the past few days, I went from knowing almost nothing about Solana tokens to building Token-2022 assets with metadata, transfer fee mechanics, and even non-transferable “soulbound” tokens.
Coming from a more Web2 mindset, one of the biggest realizations for me was this:
On Solana, token behavior is enforced directly by the blockchain protocol itself not just by application code.
That completely changed how I think about digital assets.
Starting With a Simple Token
My journey started with creating a basic token mint on Solana devnet.
At first, it felt similar to creating records in a database:
- create a mint
- create token accounts
- mint supply
- transfer between wallets
But after experimenting more deeply, I realized Solana tokens are much more programmable than I expected.
Using the Token-2022 program, I could attach rules and behavior directly to the token itself.
Adding Metadata to Tokens
One of the first things I learned was that a token without metadata is basically just an address.
Adding metadata gave the token:
- a name
- a symbol
- a metadata URI
Example:
const mint = await createMint(
connection,
payer,
payer.publicKey,
null,
9,
undefined,
undefined,
TOKEN_2022_PROGRAM_ID
);
This made the token feel more like a real product instead of raw blockchain data.
Understanding Transfer Fees
The next concept I explored was transfer fees.
In Web2 systems, fee logic is usually handled by:
- backend servers
- payment processors
- APIs
But with Token-2022, fee behavior can be attached directly to the token design itself.
I simulated a 2% transfer fee model where:
- sending 100 tokens
- resulted in the recipient receiving 98
- while 2 tokens were treated as fees
That was the moment I started understanding how blockchain protocols can enforce economic rules at the asset level.
The Most Interesting Part: Soulbound Tokens
The most fascinating experiment for me was creating non-transferable tokens.
These are sometimes called “soulbound” tokens.
Instead of behaving like currency, they behave more like:
- certificates
- badges
- credentials
- identity proofs
I created a Token-2022 mint and intentionally simulated a failed transfer attempt.
TRANSFER FAILED
Reason: Token is NON-TRANSFERABLE
Blockchain rejected transfer attempt
At first this seemed strange because most blockchain discussions focus heavily on trading and transfers.
But then it clicked:
Not every digital asset should be tradable.
A university certificate, event attendance badge, or verified identity token only has meaning if it stays attached to the original wallet.
That is where non-transferable tokens become powerful.
What Surprised Me Most
The biggest surprise was how much token behavior can be enforced at the protocol level.
In Web2:
- platforms enforce rules in backend code
On Solana:
- the blockchain itself can enforce those rules
That changes the trust model completely.
Another thing that surprised me was how quickly tooling differences appear between environments. Some Token-2022 CLI commands were unavailable in Solana Playground, so I had to adapt by using TypeScript implementations instead.
That debugging process honestly taught me a lot more than just following tutorials.
Key Concepts I Learned
Over these exercises, I learned:
- how token mints work
- how token accounts hold balances
- how metadata gives identity to assets
- how transfer fee systems operate
- how Token-2022 extends the original SPL token standard
- how non-transferable tokens can represent credentials instead of currency
Why Token-2022 Matters
Before this challenge, I thought tokens were mostly about cryptocurrencies.
Now I see them more as programmable digital assets.
A token can represent:
- money
- reputation
- access
- memberships
- achievements
- credentials
And Solana’s Token-2022 program gives developers much more flexibility in designing those systems.
What’s Next
I want to continue exploring:
- advanced Token Extensions
- NFTs and compressed NFTs
- on-chain identity systems
- Solana program development
- real-world Web3 applications
This challenge gave me a much deeper appreciation for how blockchain systems can move beyond speculation and become infrastructure for digital ownership and identity.
# Have a Coderfull Day
Top comments (0)