Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

solidity

> 编程语言
Open source

Solidity, the Smart Contract Programming Language

25.7K stars0 likes3 views
WebsiteGitHub

About

Solidity, the Smart Contract Programming Language

The Solidity Contract-Oriented Programming Language

You can talk to us on Gitter and Matrix, tweet at us on X (previously Twitter) or create a new topic in the Solidity forum. Questions, feedback, and suggestions are welcome!

Solidity is a statically-typed, contract-oriented, high-level language for implementing smart contracts on the Ethereum platform.

For a good overview and starting point, please check out the official Solidity Language Portal.

Table of Contents

  • Background
  • Build and Install
  • Example
  • Documentation
  • Development
  • Maintainers
  • License
  • Security

Background

Solidity is a statically-typed curly-braces programming language designed for developing smart contracts that run on the Ethereum Virtual Machine. Smart contracts are programs that are executed inside a peer-to-peer network where nobody has special authority over the execution, and thus they allow anyone to implement tokens of value, ownership, voting, and other kinds of logic.

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 to indicate this fast pace of change.

Build and Install

Instructions about how to build and install the Solidity compiler can be found in the Solidity documentation.

Example

A "Hello World" program in Solidity is of even less use than in other languages, but still:

solidity
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;

contract HelloWorld {
    function helloWorld() external pure returns (string memory) {
        return "Hello, World!";
    }
}

To get started with Solidity, you can use Remix, which is a browser-based IDE. Here are some example contracts:

  1. Voting
  2. Blind Auction
  3. Safe remote purchase
  4. Micropayment Channel

Documentation

The Solidity documentation is hosted using Read the Docs.

Development

Solidity is still under development. Contributions are always welcome! Please follow the Developer's Guide if you want to help.

You can find our current feature and bug priorities for forthcoming releases in the projects section.

Maintainers

The Solidity programming language and compiler are open-source community projects governed by a core team. The core team is sponsored by the Ethereum Foundation.

License

Solidity is licensed under GNU General Public License v3.0.

Some third-party code has its own licensing terms.

Security

The security policy may be found here.

Issues· 830 open

View all issuesOpen on GitHub
  • #17059

    evmasm codegen rotates the stack slots of a growing nested-tuple component

    bug :bug:Updated Sep 30, 2026
  • #17051

    Sorted remappings in metadata can select a different file than the one compiled

    bug :bug:Updated Sep 30, 2026
  • #16596

    `ConstantEvaluator` computes shift and bit-not operations differently from codegen

    bug :bug:Updated Sep 29, 2026
  • #16421

    `keccak256()` in comptime context

    low effortmedium impactmust have eventuallyUpdated Sep 29, 2026
  • #16996

    AI tool policy: add AGENTS.md

    documentation :book:Updated Sep 28, 2026
  • #16906

    [ICE] Conditional expression selecting between two library functions with different state mutability aborts when called

    bug :bug:Updated Sep 28, 2026
  • #17041

    `ReferenceType::equals(ReferenceType const& _other)` name is misleading.

    bug :bug:low effortlow impactmust haveUpdated Sep 27, 2026
  • #17044

    doc

    documentation :book:Updated Sep 26, 2026
  • #17043

    sol

    documentation :book:Updated Sep 26, 2026
  • #16419

    `isConstant` annotation in the AST is always false

    bug :bug:low effortlow impactmust have eventuallyUpdated Sep 24, 2026

> Tags

C++blockchaincppethereumhacktoberfest

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言