Use Mainnet Fork to Swap Tokens on Uniswap with Code | Ethereum, EthersJS, Hardhat
Blockman Codes Blockman Codes
7.12K subscribers
3,569 views
73

 Published On May 8, 2023

Get my free EthersJS cheatsheet to master Web3!
👉 https://blockman-codes.ck.page/91b29a...
------------------------------------------
Courses:
👉 Build a Uniswap V3 interface that can do swaps: https://bit.ly/3JkXYqL
------------------------------------------

Learn to fork Ethereum mainnet with Hardhat and make swaps on Uniswap on the forked network.
Forking mainnet with Hardhat gives us a generated wallet with generated ether that we can use to make transactions on Uniswap.
These transactions will not persist.
So it can be very useful for testing code when the price of test ether on networks like Goerli are too high.

------------------------------------------
Code:
https://gist.github.com/BlockmanCodes...

show more

Share/Embed