Skip to main content
Submitted by manoj on 9 June 2023

I am assuming that you have already installed compiler if not please read related article first Installing the Solidity compiler.

Step 1: check whether solidity compiler installed or not by using the command below   
solcjs --version

Step 2: First of all we need to have a smart contract, go to the smart contract path cd E:\ run the command solcjs --bin filename.sol (or file path if you are not in same dir)   
it will genearte bytecode in a differnt file with .bin extension   
.bin file: you can run bytecode into a evm(etherium virtual machine) to deploy smart contact on amy block chain

Step 3: solcjs --abi filename.sol (or file path if you are not in same dir)

.abi file: