Use this guide when you want to create and deploy an ERC20 token on Berachain using Foundry (Forge for build/deploy, Cast for calls).Documentation Index
Fetch the complete documentation index at: https://berachain-422fce37-feat-nodes-section-reno.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Repository
- Code: github.com/berachain/guides/tree/main/apps/foundry-erc20
- README (raw): raw README
Requirements
- Foundry (
foundryup) - Wallet with testnet $BERA (e.g. Bepolia Faucet)
Stack
Foundry, Solidity, ERC20.Quick start
- Clone and install
- Set
PRIVATE_KEYand RPC (e.g.https://bepolia.rpc.berachain.com/) in env or--rpc-url. - Deploy with
forge createor a script; usecastto interact. Exact commands are in the README.