Token metadata and URI
📖 Scenario: You are creating a simple blockchain token system. Each token has metadata like name, description, and an image URI. This metadata helps wallets and apps show useful info about the token.
🎯 Goal: Build a Python dictionary to store token metadata and a URI string. Then create a new dictionary that combines them, and finally print the full token info.
📋 What You'll Learn
Create a dictionary called
token_metadata with keys 'name', 'description', and 'image' and exact values.Create a string variable called
token_uri with the exact value.Create a new dictionary called
full_token_info that includes all token_metadata plus the token_uri under key 'uri'.Print the
full_token_info dictionary.💡 Why This Matters
🌍 Real World
Token metadata and URI are used in blockchain tokens like NFTs to provide details that wallets and marketplaces show to users.
💼 Career
Understanding how to manage token metadata is important for blockchain developers working on smart contracts, NFT platforms, and crypto wallets.
Progress0 / 4 steps