const txParams = {
nonce: '0x00',
gasPrice: '0x09184e72a000',
gasLimit: '0x2710',
to: '0x0000000000000000000000000000000000000000',
value: '0x00',
data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057',
// EIP 155 chainId - mainnet: 1, ropsten: 3
chainId: 3
}
这个里面的参数data 是交易时附加的消息,如果是对合约地址发起交易,这会转化为对合约函数的执行 请问在ethers.js里面,这个data是如何生成的