Skip to main content
Home
  • Tutorials
  • SEO
  • AI
    • How to write an AI prompt
    • GenAI Roadmap for Beginners
  • Crypto
  • Web
    • Sample resume
    • Resume builder
    • Download movies for free
    • Download paid sotware for free
  • Python
  • langchain
  • HTML
  • CSS
  • JavaScript
  • Algorithm
  • DSA
  • PHP
  • Docker

Breadcrumb

  1. Home
  2. Solidity

How to Compile Smart Contract using Solidity Compiler?

Profile picture for user manoj
By manoj , 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:

Book navigation

  • How to Compile Smart Contract using Solidity Compiler?
  • Installing the Solidity
RSS feed
Section
  • Home
  • Features
  • Pricing
  • FAQs
  • About
About
  • Advertise With Us
  • Disclaimer
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Sitemap
Section
  • Home
  • Features
  • Pricing
  • FAQs
  • About
Newsletter signup
The subscriber's email address.
Manage your newsletter subscriptions
Select the newsletter(s) to which you want to subscribe.
Stay informed - subscribe to our newsletter.
Manage existing

© 2022 - 2024 techbrushup.com. All rights reserved.