platform logo
Remix

To get started, please visit: [Link]

Follow these steps:

  • Connect your wallet and select the AltLayer network on Metamask.
  • Select "Contract" and create a new file by clicking the new file icon. Give it a name with the .sol extension.
  • Select the newly created file and copy-paste the code provided below:
    
 pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

contract NFT is ERC721 {
    using Counters for Counters.Counter;
    Counters.Counter private currentTokenId;

    constructor() ERC721("NFT Name", "NFT") {}

    function mint(address recipient)
        public
        returns (uint256)
    {
        currentTokenId.increment();
        uint256 tokenId = currentTokenId.current();
        _safeMint(recipient, tokenId);
        return tokenId;
    }
}
  • From the sidebar, select "Solidity Compiler" and click "Compile".
  • Go to the "Deploy" tab, and under "ENVIRONMENT," select "Injected Provider - Metamask." Ensure that you are on the AltLayer network in the metamask. Click "Deploy".

Now that you have successfully deployed the smart contract, verify your interaction by clicking the "Register Task" button below. Please note that this task is verified manually and not on-chain.

Utilize the "Schedule" button to conveniently plan your future interactions.

Last Completed: