Skip to main content
Use this guide when you want to deploy a simple contract using Viem and solc only (no Hardhat or Foundry).

Repository

Requirements

Stack

Node.js, Viem, solc, JavaScript/TypeScript.

Quick start

  1. Clone and install
    git clone https://github.com/berachain/guides.git && cd guides/apps/viem-solc-helloworld
    npm install
    
  2. Set private key and RPC in env (see README).
  3. Compile and deploy using the repo scripts (Viem + solc); see README for exact commands.
For full compile/deploy commands, fetch the raw README.