Forum

Multiple problems occurred during migration dApp from Ethereum blockchain to xDai blockchain

Multiple problems occurred during migration dApp from Ethereum blockchain to xDai blockchain


Hello,

We are trying to migrate our dApp from Ethereum to xDai blockchain. To do the migration we need to send ~43000 transactions ASAP.
Today we tried to do the migration but received a lot of unexpected errors:

  • Wrong response id “1”, expected (X number) - these errors seems to appear during “call” (receipt, get block number) methods
  • Too many requests (ok, probably we need to send less RPC requests)
  • And a lot of error related to nonce (ok, maybe the errors are related to our script, but not xdai network)

We tried to send approx. ~250 requests in ~5 seconds.

We are using latest version of Web3 library.
Used RPC endpoints:

  1. rpc.xdaichain.com
  2. xdai.poanetwork.dev
    We tried both endpoints (each one individually)

Web3 instance:
const web3 = Web3(‘https://rpc.xdaichain.com’)

Is something special that we need to change in our system to migrate from Ethereum network to xDai network?
Our project works just fine on Ethereum network.