6
web3.js向合约发送交易列子
source link: https://learnblockchain.cn/question/2492
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
web3.js向合约发送交易列子 | 登链社区 | 技术问答
web3.js向合约发送交易列子
求一个dapp用web3.js 拉起metamask 向合约发起交易的列子? 我写的拉不起来metamask。
var message = {from: defaultaccount, value: web3js.utils.toWei(amount, 'ether')};
console.log("111111111111",defaultaccount,web3js.utils.toWei(amount, 'ether'),message)
mytoken.methods.contre().send(message, function(error, transactionHash){
console.log(error)
});
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK