Seahorse is beta software. Many features are unimplemented and it's not production-ready.

GitHub

Seahorse (beta)

Write Anchor-compatible Solana programs in Python

game.py
@instruction
def init_player(owner: Signer, player: Empty[Player]):
player = player.init(
payer = owner,
seeds = ['player-account', owner]
)
player.owner = owner.key()
player.health = 100
player.gold = 0

Introduction

Getting started

Installation

Install Seahorse and get started writing Solana programs.

Calculator: your first Seahorse program

Learn Seahorse by writing and deploying a simple program.

Using Seahorse

Get in-depth with Seahorse's capabilities.

Community

Learn more about our community!


The ease of Python with the safety of Rust.

Seahorse lets you write Solana programs in Python. It is a community-led project built on Anchor.

Developers gain Python's ease-of-use, while still having the same safety guarantees of every Rust program on the Solana chain. Low-level memory problems are handled by default, letting you worry about the important stuff.

Features

  • Compile-time type safety
  • Fully interoperable with Rust code
  • Compatibility with Anchor
  • Built-in integration with Pyth

The Seahorse compiler generates intermediate Rust artifacts and uses Anchor to do some of the heavy lifting.

Seahorse is beta software. Many features are unimplemented and it's not production-ready.

Community

Seahorse is more than just a compiler, it's also a community of people who want to make development on Solana better. We're officially on Discord and Twitter. You can also check out a bunch of other community-made resources here!