---
title: "Discussion on \"How to Fork Ethereum Mainnet with Hardhat and Impersonate Accounts on Mainnet.\" | Hashnode"
description: "Discussion on \"How to Fork Ethereum Mainnet with Hardhat and Impersonate Accounts on Mainnet.\". How to fork mainnet using hardhat, how to impersonate accounts with hardhat, simulating the the same state as mainnet, but it will work as a local develop."
url: "https://hashnode.com/posts/how-to-fork-ethereum-mainnet-with-hardhat-and-impersonate-accounts-on-mainnet/65dce79114b470412d1d7fef"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Fork Ethereum Mainnet with Hardhat and Impersonate Accounts on Mainnet.](https://tobioke.hashnode.dev/how-to-fork-ethereum-mainnet-with-hardhat-and-impersonate-accounts-on-mainnet?utm_source=hashnode&utm_medium=feed)

How to fork mainnet using hardhat, how to impersonate accounts with hardhat, simulating the the same state as mainnet, but it will work as a local develop.

Feb 26, 2024 · 6 min read · tobioke.hashnode.dev  
Read the article

-   [#ethereum](https://hashnode.com/tag/ethereum)
-   [#hardhat](https://hashnode.com/tag/hardhat)
-   [#impersonation](https://hashnode.com/tag/impersonation)
-   [#web3](https://hashnode.com/tag/web3)
-   [#blockchain](https://hashnode.com/tag/blockchain)

## Written by

[Okekunle Oluwatobiloba](https://hashnode.com/@tobioke)

@tobioke

  
[View profile](https://hashnode.com/@tobioke)

range >>>

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
