An Introduction to solc-js

17 January, 2023

0

0

0

Contributors

solc-js is available as a npm package with the name solc. You may install the solc-js npm package locally or globally just like any other npm package. If this package is installed globally, then solc-js, a command-line utility, will be accessible.
So, to install the command-line utility, perform this command in the command prompt:
npm install -g solc
Now go ahead and run this command to see how to compile solidity files using the command-line compiler:
solcjs —help
To compile a solidity file and get the byte code, go to the directory where you have stored the .sol file and type the following command:
solcjs —bin <filename>.sol
To get the ABI for the file, type the following command in the directory where you have stored the .sol file:
solcjs —abi <filename>.sol
For more content, follow me on - https://linktr.ee/shlokkumar2303

blockchain

web3

ethereum

solidity

0

0

0

blockchain

web3

ethereum

solidity

Shlok Kumar
Web Developer | Blockchain Developer | AI Researcher

More Articles

Showwcase is a professional tech network with over 0 users from over 150 countries. We assist tech professionals in showcasing their unique skills through dedicated profiles and connect them with top global companies for career opportunities.

© Copyright 2025. Showcase Creators Inc. All rights reserved.