Skip to main content
Use this guide when you want to create and deploy an ERC20 token on Berachain using Foundry (Forge for build/deploy, Cast for calls).

Repository

Requirements

Stack

Foundry, Solidity, ERC20.

Quick start

  1. Clone and install
    git clone https://github.com/berachain/guides.git && cd guides/apps/foundry-erc20
    forge build
    
  2. Set PRIVATE_KEY and RPC (e.g. https://bartio.rpc.berachain.com/) in env or --rpc-url.
  3. Deploy with forge create or a script; use cast to interact. Exact commands are in the README.
For full deploy and test commands, fetch the raw README.