NFT (Non-Fungible Token)

Standards

परिभाषा

NFT एक unique token है जो ERC-721 या ERC-1155 standard को implement करता है। NFT-20 tokens के विपरीत interchangeable नहीं होते - हर NFT unique है और अलग metadata, ownership और value रखता है। NFTs digital art, collectibles, gaming items, domain names और real-world assets को represent करते हैं।

English version

NFT is a unique token that implements the ERC-721 or ERC-1155 standard. NFTs are not interchangeable like ERC-20 tokens - each NFT is unique with different metadata, ownership and value. NFTs represent digital art, collectibles, gaming items, domain names and real-world assets.

Code Example

contract MyNFT is ERC721 {
    uint256 public nextTokenId;

    constructor() ERC721("MyNFT", "MNFT") {}

    function mint(address to) public {
        _safeMint(to, nextTokenId);
        nextTokenId++;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        return string(abi.encodePacked("ipfs://metadata/", tokenId));
    }
}

संबंधित शब्द

Solingo पर इस concept को practice करें

NFT (Non-Fungible Token) को interactive exercises और integrated IDE के साथ master करें।

मुफ्त में शुरू करें