# Tạo ERC721

By [tonythanh2012](https://paragraph.com/@tonythanh) · 2025-06-11

---

Deploy xong nhớ MINT sẽ có token ERC 721

    // SPDX-License-Identifier: MIT
    // Compatible with OpenZeppelin Contracts ^5.0.0
    pragma solidity ^0.8.0;
    import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
    
    contract lehieukemNFT is ERC721 {
        uint256 public tokenId;
    
        constructor() ERC721("lehieukemCollection", "LKEM") {
            tokenId = 0;
        }
    
        function mint() public {
            _mint(msg.sender, tokenId);
            tokenId++;
        }
    }

---

*Originally published on [tonythanh2012](https://paragraph.com/@tonythanh/t-o-erc721)*
