返回
项目

NFT - Part 1

What is an NFT? NFTs are unique digital assets stored on the blockchain, representing ownership of distinct items such as art, music, or collectibles. In Part 1 of the NFT course, we will learn the fundamentals of NFT contracts at a beginner-friendly level, including minting NFTs, querying NFTs by tokenId, and querying tokens by owner.

语言solidity
难度简单
总时长1.3小时

目标学习者

这门课是给谁上的

  • For developers who are interested in learning about DeFi
  • For developers who want to learn about the technical implementation of cryptocurrencies.

要求

  • Basic understanding of Solidity is recommended - at a minimum, you should be familiar with the content from the course Solidity101 to Solidity103
  • Possess an Ethereum account, connected to both Mantle and a wallet, holding either Mantle tokens or test tokens (for those wishing to perform real on-chain operations, though deployment can also be done directly in a local environment if test tokens are not available).

你会学到什么

  • Writing projects in Solidity to implement the functions of minting, and querying information of NFTs.
NFT
mint

课程安排

  • Building contract and define variables

    Start our NFT contract by build the contract and define variables.


  • Mint NFT - Section 1

    Here, we will learn the initial steps of writing the mint NFT function, focusing on the function's structure and basic implementation.


  • Mint NFT - Section 2

    In this section, we will learn to complete the mint NFT function, ensuring its proper functionality within our smart contract.


  • getNFT

    Here, we will learn to query the information of newly minted NFTs, an essential function for tracking and managing NFT assets.


  • getTokensByOwner

    This part will focus on learning how to retrieve all the NFTs owned by a given address.

practice

NFT - Part 1

25 小节
移动和桌面设备访问