聆听MetAmask弹出窗口以使用Puppeteer完成脚本

发布于 2025-01-21 17:51:58 字数 214 浏览 2 评论 0原文

嘿,我正在尝试使用Puppeteer和Dappeteer创建一个在节点JS中的应用程序,该应用程序使用脚本中的预定设置在浏览器中弹出的任何元掩as交易。我遇到的麻烦是聆听MetAmask弹出窗口进行交易确认,然后将其余的Puppeteer脚本排队以完成交易。无论如何,我是否可以听元掩as提示的事件?

它应该等待用户在尝试签署交易之前手动触发MetAmask弹出窗口。

任何帮助都很棒!

hey I am trying to create a application in node js utilizing puppeteer and dappeteer that signs off any metamask transaction that pops up in the browser using the predetermined settings in the script. what i am having trouble with is listening for the metamask popup for the transaction confirmation then queuing the rest of the puppeteer script to complete the transaction. is there anyway i can listen for the event of metamask prompt?

it should wait for the user to trigger the metamask popup manually prior to attempting to sign off the transaction.

any help would be great!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文