is it possible to have mainnet fork using hardhat node to expose for frontend / backend apps #5225
-
i am working on 1inch integration into my smart contract, were they don't have any contract on testnet. So I am testing it over mainnet fork. so now I want to run my full application over mainnet fork that it works. Is that possible ? |
Beta Was this translation helpful? Give feedback.
Answered by
kanej
May 16, 2024
Replies: 1 comment
-
Yes, you can fork mainnet based on this guide: https://hardhat.org/hardhat-network/docs/guides/forking-other-networks The local hardhat node exposes an JSON-RPC endpoint that you can connect to from your frontend/backend app at |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kanej
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can fork mainnet based on this guide: https://hardhat.org/hardhat-network/docs/guides/forking-other-networks
The local hardhat node exposes an JSON-RPC endpoint that you can connect to from your frontend/backend app at
http://127.0.0.1:8545/