What is the networkid and chain id of truffle cli?

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

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(
    name: 'my-network',
    networkId: ???,
    chainId: ???,

Related Questions

Raw transaction structure

Updated July 20, 2017 13:28 PM