This hardhat project template will fork ethereum mainnet. Check etherscan.io and change the blockNumber in the hardhat.config.js.
Try running the following example.
npm init -y
npm install hardhat
npx hardhat init -y
npx hardhat run scripts/examples.js