This repository provides example scripts for deploying a simple ERC20 token (MyToken.sol
) to the 0G Testnet V3 (Chain ID: 16601) using popular development frameworks:
Each directory contains a self-contained example with specific setup and deployment instructions in its respective README.md
file.
The MyToken.sol
contract is a basic ERC20 token with an initial supply minted to the deployer, using OpenZeppelin Contracts v5.0.2.
- Network Name: 0G-Galileo-Testnet
- RPC URL: https://evmrpc-testnet.0g.ai
- Chain ID: 16601
- Token Symbol: OG
- Explorer: Chainscan
- Node.js/npm (for Truffle and Hardhat)
- Foundry (for the Foundry example)
- A private key for an account funded with 0G Testnet V3 tokens.
Important: Follow the instructions within each framework's directory (truffle/
, hardhat/
, foundry/
) to set up environment variables (.env
file) with your private key and the RPC URL.