trufflesuite / ganache-cli-archive

Fast Ethereum RPC client for testing and development. See https://github.com/trufflesuite/ganache for current development.
https://www.trufflesuite.com/ganache
MIT License
3.36k stars 695 forks source link

How to use ganache-cli to fork the block specified by the bsc main network? #826

Closed 0xwhatly closed 3 years ago

0xwhatly commented 3 years ago

Hi,I use ganache-cli to fork bsc main network

ganache-cli --fork https://bsc-dataseed.binance.org@6727775

logs image

Code0x2 commented 3 years ago

You cant do that on binance provided rpcs. They only open the bare minimum methods for metamask/remix to work for people to send transactions. You'll need to point the fork to your own node or a hosted one for ganache to work

0xwhatly commented 3 years ago

@Code0x2 In fact I can only fork the nearest block use binance provided rpcs. if i want to fork any block,i must use archive nodes.