ZEN-20 Contract Development
A standard interface for fungible (interchangeable) tokens, like voting tokens, staking tokens or virtual currencies.
The following is a guide developing your own custom ZEN-20 token on the Zenith blockchain using the Remix IDE.
You must have Metamask installed already and have added Zenith to it. Click here if you haven't done that already.
Now click on network drop down and switch to either Zenith Mainnet or Zenith Testnet according to your requirements.
Click here to get started with a template code for a ZEN-20 contract. You can explore the code in the MyToken.sol file and make any changes you'd like to make.
Compile the code and move to the deployment tab.
If the environment isn't Injected Web3, change that. You should either see Custom (79) network or Custom (91) network depending on whether you're using mainnet or testnet.
Finally, it's time to deploy. Choose MyToken contract in the contract dropdown and input the constructor argument. In this case, the argument will be the amount of the token you're creating. When you've done both these things, click deploy. You will get a metamask popup confirmation for the deploying transaction. Within no time (thanks to Zenith's fast block time), your contract will be deployed. You can interact with it within Remix in the Deployed Contracts section.
Copy link