BrettVM
  • BrettVM
    • Welcome
    • Overview
    • FAQ
    • Addresses
  • Getting Started
    • Metamask
    • Deploy to BrettVM
      • Remix
      • Hardhat
  • Socials
    • BrettVM Twitter
    • BrettVM Website
    • BrettVM Telegram
    • Contact/Support
  • BrettVM Testnet Tools
    • Block Explorer
    • Testnet Bridge
Powered by GitBook
On this page
  1. Getting Started
  2. Deploy to BrettVM

Hardhat

Hardhat is a development environment for Ethereum. It consists of different components for editing, compiling, debugging and deploying your smart contracts and dApps, all of which work together.

PreviousRemixNextTestnet Bridge

Last updated 11 months ago

Please manage your private keys securely and to the highest standard feasible

Here is an example configuration for hardhat.config.js to connect to BrettVM Testnet

require("@nomicfoundation/hardhat-toolbox");

// Ensure your configuration variables are set before executing the script
const { vars } = require("hardhat/config");

// Add your Sepolia account private key to the configuration variables
// To export your private key from Coinbase Wallet, go to
// Settings > Developer Settings > Show private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Beware: NEVER put real Ether into testing accounts
const PRIVATE_KEY = vars.get("PRIVATE_KEY");

module.exports = {
  solidity: "0.8.24",
  networks: {
    brettvmSepolia: {
      url: `rpc-sepolia.brettvm.com`,
      accounts: [PRIVATE_KEY],
    },
  },
};

LogoEthereum development environment for professionalsHardhatHQ