A simple ERC20 token deployed on COTI Mainnet for testing purposes.
- Token Name: TestToken
- Token Symbol: TT
- Decimals: 18
- Initial Supply: 1,000,000 TT (minted to deployer)
- Deployed Address:
0x37b0FeDCD18121516D591e29D44EeA5bB904bB30
- Standard ERC20 functionality (transfer, approve, transferFrom)
- Mint function (owner only)
- Burn function (any holder)
- Node.js v18+
- npm or yarn
npm install- Copy
.env.exampleto.env:
cp .env.example .env- Add your private key to
.env:
SIGNING_KEYS=0xYOUR_PRIVATE_KEY_HERE
npx hardhat compileDeploy to COTI Mainnet:
npx hardhat run deploy.js --network coti-mainnetThe deployed contract address will be saved to .env as TEST_TOKEN_ADDRESS.
| Network | RPC URL | Chain ID |
|---|---|---|
| COTI Mainnet | https://mainnet.coti.io/rpc | 2632500 |
View on CotiScan: https://mainnet.cotiscan.io/address/0x37b0FeDCD18121516D591e29D44EeA5bB904bB30
MIT