solders
Python bindings for Solana Rust tools
What it is and what it does
Solders is a Rust-backed Python library that handles the low-level cryptographic and serialization work for Solana blockchain operations. It provides keypair generation, transaction signing and serialization, and utilities for building and parsing RPC requests and responses—the core SDK primitives needed to interact with Solana without making actual network calls. It also includes litesvm, a fast in-process testing environment that replaces the slower solana-test-validator for integration tests.
The library is designed as a complement to solana-py, which uses solders internally for its core operations. Solders focuses on the SDK primitives and testing infrastructure; if you need actual RPC networking, SPL Token clients, or SPL Memo support, solana-py provides those layers on top. Solders depends on typing-extensions and jsonalias at runtime and is actively maintained with recent releases.
Use it for:
- Building and signing Solana transactions offline without network I/O.
- Generating and managing Solana keypairs and public keys in Python applications.
- Writing fast integration tests for Solana programs using the litesvm module instead of solana-test-validator.
- Parsing and constructing Solana RPC request and response objects programmatically.
- Embedding Solana transaction handling in high-performance Python services that need Rust-level speed.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Solders is a high-performance Python toolkit for Solana built in Rust, providing keypair and transaction handling, RPC request/response building, and a fast in-process testing environment via litesvm.
Yes, if you are building Solana applications in Python and need fast, low-level transaction and keypair handling. The active maintenance, recent release, and lack of known vulnerabilities make it reliable. Medium install friction is acceptable given prebuilt wheels for common platforms. The unclear license status warrants a quick check before use in proprietary projects, but the library itself is widely adopted (top 5000 PyPI packages).
Install
solders on PyPI
pip
pip install soldersuv
uv add solderspoetry
poetry add soldersInstalling solders
Before you install
Medium install friction due to compiled Rust bindings, but prebuilt wheels are available for common platforms (macOS, Linux x86_64/aarch64, Windows). Actively maintained with a release 1 day old.
Quickstart
pip install solders
from solders.keypair import Keypair
from solders.pubkey import Pubkey
from solders.instruction import Instruction
from solders.message import Message
from solders.transaction import Transaction
from solders.hash import Hash
payer = Keypair()
program_id = Pubkey.default()
instruction = Instruction(program_id, bytes([1]), [])
message = Message([instruction], payer.pubkey())
tx = Transaction([payer], message, Hash.default())
Requires Python >= 3.10 (per requires_python); compiled Rust bindings require a compatible platform (prebuilt wheels for macOS, Linux, Windows).
Verify before relying
- Whether the package's license status (currently unclear in metadata) affects commercial or proprietary use.
- Performance benchmarks comparing solders to solana-py for typical workloads.
- Whether all Solana RPC methods are fully supported or if gaps exist relative to the official Rust SDK.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 2 — typing-extensions, jsonalias |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,523,637/month — #3,818 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: solders-0.29.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; solders-0.29.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; solders-0.29.0-cp310-abi3-manylinux_2_28_aarch64.whl; solders-0.29.0-cp310-abi3-musllinux_1_2_aarch64.whl; solders-0.29.0-cp310-abi3-musllinux_1_2_x86_64.whl; solders-0.29.0-cp310-abi3-win_amd64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
solanaSolana.py is a Python SDK for building…
permissive · top 5,000 on PyPI
anchorpy-coreProvides Python bindings to Anchor Rust code,…
permissive · top 15,000 on PyPI
chia-rsProvides Python bindings to Rust crates for…
unclear · top 15,000 on PyPI
py-sr25519-bindingsProvides Python bindings to the sr25519 Rust…
permissive · top 15,000 on PyPI
cdp-sdkPython client library for the Coinbase…
permissive · top 15,000 on PyPI
x402Implements the x402 payment protocol with…
permissive · top 15,000 on PyPI
stellar-sdkStellar SDK provides Python APIs to build and…
permissive · top 15,000 on PyPI
phonorsPhonors provides Rust-accelerated numerical…
permissive · top 15,000 on PyPI
bitcoin-utilsA low-level Bitcoin library providing tools to…
permissive · top 15,000 on PyPI
eth-accounteth-account signs Ethereum transactions and…
permissive · top 5,000 on PyPI