Is it possible to use https://bsc-dataseed4.binance.org/ to fork bsc mainnet with hardhat? I'm not getting any errors when I do so. I get a bunch of funded ETH accounts. But I can't seem to interact with any of the contracts that are deployed on BSC mainnet. What endpoint do you guys use to fork BSC? I used Moralis before but they just stopped supporting speedy nodes and I don't know how to use their API
Jul 12, 2022, 4:17 AM
https://hardhat.org/hardhat-network/docs/guides/forking-other-networks
You need to use impersonateAccount, also if you use custom block number it will be works faster
You need to use impersonateAccount, also if you use custom block number it will be works faster
Jul 12, 2022, 4:25 AM
Thanks, but this guide suggests using alchemy which doesn't support BSC
Jul 12, 2022, 4:33 AM
You can use speedynodes
Jul 12, 2022, 4:43 AM
Moralis stopped supporting those and I'm not sure how to access their API from my terminal using hardhat —fork
Jul 12, 2022, 4:48 AM