This guide will walk you through deploying, testing and interacting with your smart contracts on the Mazze Testnet. Since Mazze is EVM-compatible, you can use familiar Ethereum tools like Truffle, Hardhat, or Remix for your development process.
Prerequisites
Ensure your Metamask is configured for the Mazze Testnet. See our guide on .
Have some test MAZZE tokens in your account to pay for gas fees. You can obtain these from our Testnet Faucet: faucet.mazze.io [soon]
Step 1: Setting Up Your Development Environment
Using Truffle
Install Truffle
Install Truffle globally on your machine if you haven't already:
npm install -g truffle
Initialize a New Truffle Project
mkdir MyDapp && cd MyDapp
truffle init
Configure Truffle to Use Mazze Testnet
Edit truffle-config.js to add the Mazze Testnet configuration:
module.exports = {
networks: {
mazze-testnet: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, "https://testnet-rpc.mazze.io"),
network_id: 199991,
gas: 5500000, // Gas limit used for deploys
confirmations: 2, // # of confs to wait between deployments
timeoutBlocks: 200, // # of blocks before a deployment times out
skipDryRun: true // Skip dry run before migrations? (default: false for public nets)
},
},
// Other configurations...
};
Using Hardhat
Install Hardhat
Set up a new Hardhat project if you haven't already:
npm init -y
npm install --save-dev hardhat
Create a Hardhat Project
npx hardhat
Configure Hardhat to Connect to Mazze Testnet
Modify hardhat.config.js: