Thirdweb zkSync
To get started, please visit: [Link]
Follow these steps:
- Connect your wallet and select the zkSync 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 zkSync network in the metamask. Click "Deploy".
Now that you have successfully deployed the smart contract, verify your on-chain interaction by clicking the "Verify" button below.
Utilize the "Schedule" button to conveniently plan your future interactions.
Last Completed: