# Is it possible to fork the bsc mainnet with blockNumber?

**URL:** <https://forum.openzeppelin.com/t/is-it-possible-to-fork-the-bsc-mainnet-with-blocknumber/27630>\
**Category:** Smart Contracts\
**Tags:** hardhat\
**Created:** [April 15, 2022, 3:03am UTC](https://forum.openzeppelin.com/t/is-it-possible-to-fork-the-bsc-mainnet-with-blocknumber/27630 "2022-04-15T03:03:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arbaz\_Hussain](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/arbaz_hussain/32/8667_2.png) [@Arbaz\_Hussain](https://forum.openzeppelin.com/u/Arbaz_Hussain)\
**Post date:** [April 15, 2022, 3:03am UTC](https://forum.openzeppelin.com/t/is-it-possible-to-fork-the-bsc-mainnet-with-blocknumber/27630/1 "2022-04-15T03:03:13Z")

</div>

```auto
module.exports = {
  solidity: "0.8.2",
  networks: {
    hardhat: {
      loggingEnabled: false,
      forking: {
        url: "https://bsc-dataseed.binance.org",
        chainId: 56,
        blockNumber: 16954837 
      }
    }
  }
};

```

I have tried forking with blockNumber but no success, the provider responds with

```auto
ProviderError: empty resp

```

---

<div class="post-metadata">

**Author:** ![cryptodev77](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cryptodev77](https://forum.openzeppelin.com/u/cryptodev77)\
**Post date:** [April 18, 2022, 1:15pm UTC](https://forum.openzeppelin.com/t/is-it-possible-to-fork-the-bsc-mainnet-with-blocknumber/27630/2 "2022-04-18T13:15:26Z")

</div>

yes. sure.  
please check hardhat doc.
