freecoding.school100% FREE · NO SIGNUP
Ledger LandISSUE #63 of 90

metadata · on-chain vs ipfs vs centralized

BlockyVSDouble-Spend Dan
Blocky saysNFT metadata can live on-chain, on IPFS, or on a centralized server — with very different durability.

An NFT usually stores a tokenURI pointing at metadata (name, image, traits). Where that lives matters: on-chain (fully permanent, expensive), IPFS (content-addressed, durable if pinned), or a centralized server (cheap but the image can vanish or be swapped if the company dies). "Owning" an NFT whose image is on someone's server is fragile.

Power-ups you unlock

Double-Spend Dan attacks — common mistakes

Boss battleRank on-chain, IPFS, and centralized metadata by durability.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>on-chain   → permanent (expensive)
IPFS       → durable if pinned (content-addressed)
centralized→ can vanish/change if server dies</pre></body></html>
▶ Open the interactive comic issue
‹ Nft Utility · Access · Governance · GamingIpfs · Content-Addressed Storage ›