[Ethereum] chainID? Raw transaction from theEther wallet


So I just ran a function from a contract on Ropsten from myetherwallet.com. It ran fine via metamask, but I was just wondering what chainID was in the rawTx file?


Best Answer

The chainid was added about 1 year ago in order to prevent replay attacks across channels. This was due to the ETH / ETC fork, but also applies to testnet and alternate chains (like Expanse). Here you can find a list of well known chainId values.

You can read about the discussion surrounding replay protection & EIP-155 here: https://github.com/ethereum/eips/issues/155

Related Topic