用于奇偶校验网络的ethereumjs-tx参数

时间:2019-09-08 13:41:03

标签: ethereum parity

我正在使用ethereumjs-tx,下面的示例是对rospten测试网的测试:

const EthereumTx = require('ethereumjs-tx').Transaction;

const rawTx = {
            "from": sender,
            "nonce": "0x" + count.toString(16),
            "gasPrice": "0x003B9ACA00",
            "gasLimit": "0x250CA",
            "to": "0x3f84d0ca3529fbe8c2b...",
            "value": "0x0",
            "data": data,
            "chainId": 0x03
        };
const tx = new EthereumTx(rawTx, {'chain':'ropsten'});

我必须为平价专用网传递哪些参数?

  1. "chainId": 0x03
  2. {'chain':'ropsten'}

0 个答案:

没有答案