Deploy Contract to 0G Chain

Official

Deploy 0G Chain contracts with cancun builds

AuthorVocaid
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Delivers hardened workflows for deploying Solidity contracts to 0G Chain so mismatched evmVersion settings, legacy ethers syntax, and missing verification steps no longer block releases.

Core Features & Use Cases

  • Cancun compiler enforcement: configure Hardhat or Foundry to compile every contract with evmVersion "cancun" and avoid invalid opcode errors.
  • Multi-framework deployment: run Hardhat scripts, Foundry commands, or raw ethers v6 factories with funded wallets, waitForDeployment checks, and balance logging before sending to mainnet.
  • Use Case: Ship a new OpenClaw agent contract by compiling, deploying to the 0G testnet, verifying the on-chain hash, and then promoting the verified address to production.

Quick Start

Compile your Solidity contract with evmVersion cancun, run a Hardhat or ethers v6 deployment using your funded wallet and RPC_URL, and confirm the verified address after waitForDeployment completes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Deploy Contract to 0G Chain
Download link: https://github.com/Vocaid/vocaid-hub/archive/main.zip#deploy-contract-to-0g-chain

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.