What is the networkid and chain id of truffle cli?

by cryptoKTM   Last Updated October 09, 2019 10:28 AM

I am using truffle console to deploy contracts and using Nodejs/web3js to interract with it. I wanted to use ethereumjs-tx for signing transaction, here is the reference link. I am not sure ,how can i find chain id and network id of local blockchain which i need to create rawtransaction. i.e

const customCommon = Common.forCustomChain(
  'randomchainNmae',
  {
    name: 'my-network',
    networkId: ???,
    chainId: ???,
  },
  'petersburg',
)


Related Questions


Updated September 30, 2017 23:28 PM

Updated August 13, 2018 09:28 AM

Updated June 27, 2017 15:28 PM

Updated July 20, 2017 13:28 PM

Updated September 14, 2018 12:28 PM