Deploying smart contracts
Mazze supports EVM-compatible development workflows, but test configuration must come from your current RPC environment.
Before deploying
Ensure node/RPC are running: Setup Guide, RPC Guide.
Verify chain responsiveness:
./run/mazze-cli.sh statusQuery EVM chain id from active RPC before hardcoding it in tooling:
curl -s http://127.0.0.1:58545 \
-H 'content-type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'Hardhat example (environment-driven)
require('@nomicfoundation/hardhat-toolbox');
module.exports = {
solidity: '0.8.24',
networks: {
mazze: {
url: process.env.MAZZE_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
chainId: Number(process.env.MAZZE_CHAIN_ID),
},
},
};Use environment variables from your active node deployment, not old static docs values.
Recommended workflow
Last updated