6

如何监听到metamask确认事件,求大佬解答

 2 years ago
source link: https://learnblockchain.cn/question/2209
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.

最佳答案 19小时前

contract.sendTx(param1, "0x", {from: this.account})
.on('transactionHash', (tx) => {
// 确认后,执行这里。可获得 tx
}).then(() => {
//  交易完成后,执行这里。
})
Tiny熊 - 布道者
擅长:智能合约,以太坊 | 采纳率 40% | 回答于 19小时前

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK