← All blogs

Week 1: an SPL token and the full lifecycle of a Core NFT

2026-11-04

For week 1 of the Turbin3 builders cohort I minted and transferred an SPL token, then took an MPL Core NFT through mint, update, transfer and burn on devnet. The code and every transaction are in the repo.

I already knew the SPL token program, so Part 1 is short. Metaplex was new to me, so most of this post is Part 2.

Part 1: an SPL token

A token is three pieces: the mint (the definition), a token account (one owner's balance of one mint), and the ATA (that token account at an address derived from the wallet and mint, so you can send to someone who has never held it). With the classic Token program and 9 decimals, I minted 100 tokens and sent 50 to a second wallet.

Mint: FJgKVu…wfCq. Transfer tx.

What tripped me up:

  • Attempt to debit an account but found no record of a prior credit: I used Keypair.generate() as the payer, a brand new wallet with 0 SOL. Use a funded wallet.
  • Amounts are in base units. With 9 decimals, 50 is 0.00000005 tokens. I needed 50n * 10n ** 9n.
  • The transfer's owner argument wants a signer, not a public key. It only seemed to work because my owner and payer were the same wallet.

Part 2: an NFT with MPL Core

A Core asset is a single account, with no mint, no ATA and no separate metadata account. On devnet mine holds about 0.003 SOL of rent. The name and image live off-chain: the asset stores a uri pointing at a metadata JSON, which points at the image. I uploaded both to Irys (about 0.018 SOL), then created the asset:

await create(umi, { asset, name, uri }).sendAndConfirm(umi);

Asset: DntDYs…tyR. Mint tx.

The owner can transfer and burn the asset. The update authority can change its name and uri. They are separate fields, and after the transfer the Core explorer shows two different addresses:

Core explorer showing the asset after the update and transfer: the updated name, a different owner and update authority, and the new metadata URI

  • Update: I uploaded a new metadata JSON and called update with a new name and uri. Update tx.
  • Transfer: the owner moved to my second wallet; the update authority stayed put. Transfer tx.
  • Burn: I minted a spare NFT owned by the second wallet and burned it, signing as the owner. Burn tx.

The burn surprised me. I expected the account to vanish and all the rent to come back. Instead it shrank to 1 byte; the payer got back about 0.00081 SOL net of the fee and about 0.00216 SOL stayed in the leftover account. I haven't looked up why, so treat it as an observation.

Why it's interesting and where I'd use it

A token and an NFT are each a few instructions on accounts the programs already define, with no program of your own to deploy. The part I want to use is updatable metadata: the asset stays put while the uri changes, so an NFT can evolve. That fits loyalty points (an SPL token), tickets and memberships (one Core asset each, burned when used), and game items that level up.

Next, I want to redo the token flow with @solana/kit to see the instructions web3.js hid from me, then try Token-2022.