How to Ropsten, Rinkeby, Kovan, Goerli, and Kiln

From cb-sol-cli doc page https://github.com/ChainSafe/chainbridge-deploy/blob/master/cb-sol-cli/docs/deploy.md It is not very clear or easy to use this cb-sol-cli tool.

I made one config file with all the public keys, private keys, and network RPC URLs, etc...



another bash script to run commands

cb-sol-cli --url $SRC_GATEWAY --privateKey $SRC_PK --gasPrice $GAS_PRICE deploy --bridge --erc20Handler --erc20 \
    --relayers $SRC_ADDR \
    --relayerThreshold 1 \
    --expiry 1000 \
    --chainId 0

when I ran those:

source ./configFile

I got this error message

  e: Error: invalid response - 0
      at exports.XMLHttpRequest.request.onreadystatechange (/mnt/sda3/polkadot/chainbridge-deploy/cb-sol-cli/node_modules/ethers/utils/web.js:84:29)
      at exports.XMLHttpRequest.dispatchEvent (/mnt/sda3/polkadot/chainbridge-deploy/cb-sol-cli/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:591:25)
      at setState (/mnt/sda3/polkadot/chainbridge-deploy/cb-sol-cli/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:610:14)
      at exports.XMLHttpRequest.handleError (/mnt/sda3/polkadot/chainbridge-deploy/cb-sol-cli/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:532:5)
      at ClientRequest.errorHandler (/mnt/sda3/polkadot/chainbridge-deploy/cb-sol-cli/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:459:14)
      at ClientRequest.emit (node:events:527:28)
      at Socket.socketErrorListener (node:_http_client:454:9)
      at Socket.emit (node:events:527:28)
      at emitErrorNT (node:internal/streams/destroy:157:8)
      at emitErrorCloseNT (node:internal/streams/destroy:122:3) {
    statusCode: 0,
    responseText: 'Error: connect ECONNREFUSED\n' +
      '    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)'

Is it okay to use Infura's URL as the cb-sol-cli --url <Infura's URL> ?

1 Answer 1


Should run source ./configFile inside the bashscript.sh every time! Otherwise those variables cannot be read from the bash script for some reason.

Also check out those tutorials because the official tutorial does not cover public testnets like Ethereum Rinkeby:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.