Skip to content

Error HH100: Network rinkeby doesn't exist #2316

Answered by RoboCrypter
behzadz1 asked this question in Q&A
Discussion options

You must be logged in to vote

@behzadz1 : Correct your hardhat.config.js like this :

networks: {
        rinkeby: {
            url: RINKEBY_RPC_URL,
            accounts: [PRIVATE_KEY],
            chainId: 4,
        },
    },

You did not put your networks inside networks{} thats why it is saying rinkeby does not exists

Just copy & paste the below corrected hardhat.config.js file.

require("@nomicfoundation/hardhat-toolbox")
require("dotenv").config()

const RINKEBY_RPC_URL = process.env.RINKEBY_RPC_URL
const PRIVATE_KEY = process.env.PRIVATE_KEY

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: "hardhat",

networks: {
        rinkeby: {
            url: RINKEBY_RPC_URL,
   …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@behzadz1
Comment options

Answer selected by behzadz1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants