Skip to main content
Use this guide when you want to deploy and interact with an ERC1155 (multi-token) contract on Berachain using Hardhat and Ethers v6.

Repository

Requirements

  • Node, npm, Hardhat
  • Wallet with testnet $BERA

Stack

Hardhat, Ethers v6, Solidity, ERC1155.

Quick start

  1. Clone and install
    git clone https://github.com/berachain/guides.git && cd guides/apps/hardhat-ethers6-erc1155
    npm install
    
  2. Set WALLET_PRIVATE_KEY (and RPC if needed) in .env.
  3. Compile, deploy, and run any scripts/tests per README.
For deploy and interaction commands, fetch the raw README.