Write Solana Smart Contracts in Solidity

SolScript compiles Solidity-style code into native Solana BPF programs. Use the syntax you already know to build on the fastest blockchain.

Solidity Syntax, Solana Performance

Write a token contract in Solidity. Deploy it to Solana.

token.sol
contract Token {
    string public name;
    string public symbol;
    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;

    event Transfer(address indexed from, address indexed to, uint256 value);

    constructor(string memory _name, string memory _symbol, uint256 _supply) {
        name = _name;
        symbol = _symbol;
        _mint(msg.sender, _supply);
    }

    function transfer(address to, uint256 amount) public returns (bool) {
        balanceOf[msg.sender] -= amount;
        balanceOf[to] += amount;
        emit Transfer(msg.sender, to, amount);
        return true;
    }
}

What SolScript Does

  • 1. Parses your Solidity-style contract
  • 2. Converts mapping to Solana PDAs
  • 3. Generates Rust/Anchor code
  • 4. Deploys to Solana devnet, testnet, or mainnet
Try This Example in the Playground

Everything You Need

A complete compiler toolchain for Solidity-to-Solana development.

{ }

Solidity Syntax

Write contracts in the language you already know. State variables, mappings, events, modifiers, and inheritance all work as expected.

->

Automatic PDA Mapping

Solidity mappings compile to Solana Program Derived Addresses automatically. No manual seed management or bump derivation.

Anchor Compatible

Generated code is standard Rust/Anchor. Inspect it, modify it, audit it, and deploy it with existing Solana tools.

Browser WASM Compiler

Compile contracts instantly in the browser. No backend required. The playground runs a full WASM-compiled SolScript compiler.

$

SPL Token Built-in

Token transfers, minting, and burning are first-class operations. SolScript generates the correct SPL Token CPI calls.

<>

VS Code Extension

Full Language Server Protocol support with real-time diagnostics, syntax highlighting, and build commands.

How SolScript Compares

Choose the right tool for your Solana development workflow.

Feature SolScript Solang Anchor (Rust) Neon EVM
Language Solidity Solidity Rust Solidity
Approach Transpiler LLVM Compiler Native EVM Emulation
Auto PDA Mapping Yes Manual Manual N/A
Auditable Output Rust source code Binary only Native Rust EVM bytecode
Browser Playground Yes (WASM) No No No
Native Solana Perf Yes Yes Yes Emulated

Frequently Asked Questions

What is SolScript?
SolScript is a compiler that lets you write Solana smart contracts using Solidity syntax. It bridges the gap between Ethereum and Solana development by compiling familiar Solidity-style code into native Solana BPF programs.
Can I deploy Solidity contracts to Solana?
Not directly — Solana uses a different virtual machine (BPF) than Ethereum (EVM). SolScript compiles Solidity-style syntax into native Solana programs. The syntax is familiar, but the output is a Solana BPF program with full Anchor compatibility.
Is SolScript free to use?
Yes. SolScript is fully open source under the MIT license. The compiler, playground, CLI tool, and VS Code extension are all free.
Do I need to know Rust to use SolScript?
No. SolScript is designed so you never need to write Rust. You write Solidity-style code, and SolScript generates the Rust/Anchor code for you. However, understanding the generated code is helpful for advanced debugging.
How do Solidity mappings work on Solana?
SolScript automatically converts Solidity mappings to Solana Program Derived Addresses (PDAs). When you write mapping(address => uint256) public balanceOf, SolScript creates PDA accounts using the key as a seed. This is handled transparently.
What Solidity features are supported?
SolScript supports state variables, mappings, functions (public, internal, view, pure), modifiers, events, custom errors, constructors, single inheritance, interfaces, and SPL Token operations. EVM-specific features like assembly, delegatecall, and selfdestruct are not applicable to Solana.

Start Building on Solana Today

No Rust required. Write your first Solana contract in Solidity syntax.