- what is Web3.js
- Modules
- Web3.js with chrome console
- ABI and bytecode
- compilation
- deployment
- blockchain
- ethereum
- solidity
- js
- Node js
- Vs code
- web3 js is a collection of libraries that allow you to imteract with local or remote ethereum mode using HTTP,IPC or websocket
npm install -g ganache-cli
ganache-cli --version
npm install -g ethereumjs-testrpc
- Download image from link
- chmod a+x ganache-2.5.4-linux-x86_64.AppImage
- ./ganache-2.5.4-linux-x86_64.AppImage
- More for Ganache
-
npm install -g truffle
on your terminal -
cd to your main dir and RUN:-
truffle init
-
Compilation of contract on truffle
-
make new contract on
/contracts
test.sol
-
and compile contract using :
truffle compile
-
RUN Ganche
-
RUN
truffle migrate
-
If Contract file was rewrite and change something on sol file than you cant migarte you need
truffle migrate --reset
- for connect with infura you need install this package
npm install @truffle/hdwallet-provider
- RUN
truffle migrate --network repston