GetChainLens
Learn
Developers
Security
Infrastructure
Analytics
Tools
Videos
Blog
Search...
⌘
K
Solidity Playground
Write, compile, and analyze smart contracts in your browser
Solidity 0.8.26
Solidity 0.8.25
Solidity 0.8.24
Solidity 0.8.23
Solidity 0.8.22
Solidity 0.8.21
Solidity 0.8.20
Solidity 0.8.19
Solidity 0.8.18
Solidity 0.8.17
Solidity 0.8.16
Examples
Compile
contract.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; contract HelloWorld { string public greeting = "Hello, Blockchain!"; function setGreeting(string memory _greeting) public { greeting = _greeting; } function getGreeting() public view returns (string memory) { return greeting; } }
Console
ABI
Bytecode
Click "Compile" to compile your contract