Solidity
Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts within the Ethereum state.
Last updated
Was this helpful?
Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts within the Ethereum state.
Last updated
Was this helpful?
Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts within the Ethereum state.
Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.
With Solidity you can create contracts for uses such as voting, crowdfunding, blind auctions, and multi-signature wallets.
Warning
1. Understand the Smart Contract Basics
If you are new to the concept of smart contracts we recommend you to get started by digging into the “Introduction to Smart Contracts” section, which covers:
2. Get to Know Solidity
3. Install the Solidity Compiler
Hint
W
4. Learn More
Language Description
Compiler
Internals
Additional Material
Solidity is a . It is influenced by C++, Python and JavaScript, and is designed to target the Ethereum Virtual Machine (EVM). You can find more details about which languages Solidity has been inspired by in the section.
When deploying contracts, you should use the latest released version of Solidity. This is because breaking changes as well as new features and bug fixes are introduced regularly. We currently use a 0.x version number .
Solidity recently released the 0.8.x version that introduced a lot of breaking changes. Make sure you read .
Ideas for improving Solidity or this documentation are always welcome, read our for more details.
written in Solidity.
.
.
Once you are accustomed to the basics, we recommend you read the and “Language Description” sections to understand the core concepts of the language.
There are various ways to install the Solidity compiler, simply choose your preferred option and follow the steps outlined on the .
You can try out code examples directly in your browser with the . Remix is a web browser based IDE that allows you to write, deploy and administer Solidity smart contracts, without the need to install Solidity locally.
As humans write software, it can have bugs. You should follow established software development best-practices when writing your smart contracts. This includes code review, testing, audits, and correctness proofs. Smart contract users are sometimes more confident with code than their authors, and blockchains and smart contracts have their own unique issues to watch out for, so before working on production code, make sure you read the section.
If you want to learn more about building decentralized applications on Ethereum, the can help you with further general documentation around Ethereum, and a wide selection of tutorials, tools and development frameworks.
If you have any questions, you can try searching for answers or asking on the , or our .