- create account
- import account by Mnemonic/private key/keystore & password
- send transaction
- token transaction
- read & write contract
-
install dependencies
npm install
-
initial env variable
cd ether-wallet-visual-demo/ cp .env.example .env
-
Start developing.
start it up.
npm run dev
different config from ether-wallet-demo
-
install packages browserify
npm install stream-browserify events process buffer assert
-
add script to
index.html
<!-- global is undefined --> <script> var global = window; </script> <script type="module"> import process from 'process'; import { Buffer } from 'buffer'; window.Buffer = Buffer; window.process = process; </script>
-
add alias to pack config file:
vite.config.ts
resolve: { alias: { process: 'process/browser', stream: 'stream-browserify', }, }