current position:Home>Hello, teacher! DAPP calls approve and then transfers from. What parameters should be carried in send()

Hello, teacher! DAPP calls approve and then transfers from. What parameters should be carried in send()

2022-02-03 23:49:19 Q & A of Denglian community

web3.contractObj.methods.transferFrom(web3.accounts,toAddress,_money).send().on("transactionHash",function(rdata){....}




Take the answer 1:

send() At least add {from: account} Identify transaction originator .

Refer to the documentation for detailed parameters : https://learnblockchain.cn/docs/web3.js/web3-eth-contract.html#methods-mymethod-send




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

Random recommended