Contract Deployment
Matchain Development Guide
Hardhat
Getting Started with Hardhat
npm install --save-dev hardhatnpx hardhat initmodule.exports = { solidity: "0.8.17", networks: { matchain: { url: "https://rpc.matchain.io", chainId: 698, accounts: ["YOUR_PRIVATE_KEY"] // Replace with your wallet's private key } } };// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; contract HelloWorld { string public greet = "Hello World!"; }npx hardhat compilenpx hardhat run scripts/deploy.js --network matchainasync function main() { const HelloWorld = await ethers.getContractFactory("HelloWorld"); const helloWorld = await HelloWorld.deploy(); await helloWorld.deployed(); console.log("Contract deployed to:", helloWorld.address); } main().catch((error) => { console.error(error); process.exitCode = 1; });
Remix
What is Remix?
Getting Started with Remix
Deploying Your Smart Contract
Last updated