将现有NodeJS模块部署到WebAssembly

发布于 2025-02-12 09:19:26 字数 523 浏览 0 评论 0原文

我已经在nodejs中编写了一个代码,在该代码中,我可以使用Web3在Localhost上获取块详细信息。现在,我试图将相同的NodeJS模块部署到Web组件。

因此,如何使用WebAssembly部署相同的功能。 您可以在此处查看我当前的nodejs代码: github链接到

chainllinker我的输出如下所示。我只是在游戏机和Localhost上显示了封锁和价格。

PS C:\Users\msi\Downloads\UniswapPriceMonitor-main> node index.js
BlockNumber: 15064092 Price ETH/DAI : 1050.63548627748881905413
Chain Connect listening on port 3000!

I have written a code in nodejs in which I am able to get block details on localhost using web3. Now I am trying to deploy the same nodejs module to Web assembly.

So, how can I deploy the same using WebAssembly.
You can have a look at my current nodejs code here : Github Link to chainLinker

Currently, I am getting output like shown below. I am just showing the blocknumber and price in console and also on localhost.

PS C:\Users\msi\Downloads\UniswapPriceMonitor-main> node index.js
BlockNumber: 15064092 Price ETH/DAI : 1050.63548627748881905413
Chain Connect listening on port 3000!

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

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

发布评论

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