我正在使用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'});
我必须为平价专用网传递哪些参数?
"chainId": 0x03
{'chain':'ropsten'}