Back to All

Error HH100: Network sepolia doesn't exist

I have been doing the road to web3 tutorial on alchemy where you build an nft marketplace from scratch. SInce goerli was deprecated i am using the sepolia testnet but this error is occuring. Shown below is the only portion of my hardhat.config.js file which i have edited where earlier the network was goerli. I have given the correct API URL and PRIVATE KEY in the position of the placeholder.

module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337
sepolia: {
url: "<YOUR_API_URL>",
accounts: [ "<YOUR_PRIVATE_KEY>" ]