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.

Reference

Understand Seahorse's technical details.


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

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.