Does it is needed to install npm ethereumjs-tx
while using a browser version of it which is directly downloaded from github.
If yes then how we can import the ethereumjs-tx
module in our script file.
Because both are two different things as my knowledge.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
ethereumjs-tx as a browser build can be found here
If it helps anyone in the future. EthereumJS community have created browser builds for most of their repositories here. Please use with caution as it has not been updated regularly. But they have put instructions on how to create a build for the latest versions over here