How to use ethereumjs-tx in browser

2019-08-05 06:31发布

问题:

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