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.
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
mappingto Solana PDAs - 3. Generates Rust/Anchor code
- 4. Deploys to Solana devnet, testnet, or mainnet
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? ▼
Can I deploy Solidity contracts to Solana? ▼
Is SolScript free to use? ▼
Do I need to know Rust to use SolScript? ▼
How do Solidity mappings work on Solana? ▼
What Solidity features are supported? ▼
Start Building on Solana Today
No Rust required. Write your first Solana contract in Solidity syntax.