current position:Home>ethers. The problem of token transaction in JS

ethers. The problem of token transaction in JS

2022-02-03 23:16:29 Q & A of Denglian community

const txParams = {  nonce: '0x00',  gasPrice: '0x09184e72a000',  gasLimit: '0x2710',  to: '0x0000000000000000000000000000000000000000',  value: '0x00',  data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057',  // EIP 155 chainId - mainnet: 1, ropsten: 3  chainId: 3}

The parameters in this data Is a message attached to the transaction , If the transaction is initiated for the contract address , This will translate into the execution of the contract function in ethers.js Inside , This data How is it generated




Take the answer 1:

The problem has been solved ,image.png






Other answers 1:


Other answers 2:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032316266242.html

Random recommended