For the complete documentation index, see llms.txt. This page is also available as Markdown.

User Guide

Deploy smart contracts on the EMC chain

Configure network: Make sure your Web3 provider is connected to EMC mainnet or testnet.

Write smart contracts: Use Solidity to write your smart contracts.

Compile and deploy: Compile and deploy your smart contracts using tools like Hardhat or Truffle.

npx hardhat run scripts/deploy.js --network emc

Verify deployment: Check your smart contract deployment status in the block explorer.

Trading

Connect wallet: Integrate a Web3 wallet (e.g. MetaMask) in your dApp.

Initiate transaction: Use Web3.js or Ethers.js library to initiate transactions.

const transaction = await web3.eth.sendTransaction({

from: senderAddress,

to: recipientAddress,

value: web3.utils.toWei("1", "ether")

});

Confirm transaction: Check transaction status in the block explorer.

Last updated