Skip to main content

Actions Status PyPI version License: MIT Code style: black

Solders

solders is a Python binding to the Solana Rust SDK. It provides robust, high-performance solutions to core Solana tasks such as transaction signing and serialization, and saves us from reimplementing Solana logic in pure Python.

Installation

pip install solders

Note: Requires Python >= 3.7.

Example Usage

>>> from solders.message import Message
>>> from solders.keypair import Keypair
>>> from solders.instruction import Instruction
>>> from solders.hash import Hash
>>> from solders.transaction import Transaction
>>> from solders.pubkey import Pubkey
>>> program_id = Pubkey.default()
>>> arbitrary_instruction_data = bytes([1])
>>> accounts = []
>>> instruction = Instruction(program_id, arbitrary_instruction_data, accounts)
>>> payer = Keypair()
>>> message = Message([instruction], payer.pubkey())
>>> blockhash = Hash.default()  # replace with a real blockhash
>>> tx = Transaction([payer], message, blockhash)

Development

Setup

  1. Install poetry
  2. Install dev dependencies:
poetry install
  1. Activate the poetry shell:
poetry shell

Testing

  1. Run maturin develop to compile the Rust code.
  2. Run make fmt, make lint, and make test.

Metadata

Release files for solders 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solders 0.3.0
File Size Uploaded
solders-0.3.0.tar.gz 33.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for solders 0.3.0
File
solders-0.3.0-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details
solders-0.3.0-cp37-abi3-musllinux_1_2_x86_64.whl CPython 3.7 abi3 Linux musl 1.2+ x86-64 Details
solders-0.3.0-cp37-abi3-musllinux_1_2_i686.whl CPython 3.7 abi3 Linux musl 1.2+ x86-32 Details
solders-0.3.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl CPython 3.7 abi3 Linux glibc 2.17+ IBM System/390x Details
solders-0.3.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl CPython 3.7 abi3 Linux glibc 2.17+ PowerPC 64-be Details
solders-0.3.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl CPython 3.7 abi3 Linux glibc 2.17+ ARMv7l Details
solders-0.3.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.7 abi3 Linux glibc 2.17+ ARM64 Details
solders-0.3.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl CPython 3.7 abi3 Linux glibc 2.5+ x86-64 Details
solders-0.3.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl CPython 3.7 abi3 Linux glibc 2.5+ x86-32 Details
solders-0.3.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.7 abi3 macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64 Details
solders-0.3.0-cp37-abi3-macosx_10_7_x86_64.whl CPython 3.7 abi3 macOS 10.7+ x86-64 Details

Total release size: 38.0 MB

Release files / solders-0.3.0.tar.gz

Download URL solders-0.3.0.tar.gz
Size 33.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0f4fb3b11bea840e3f1f7b9f957706e198c4d367a0027612f54c59da7a3c03d7
BLAKE2b-256 checksum
How to use checksums
07ba768a299c4a0d3421728826cd32c7d64648d70683a5943cdd6b7f374bd6ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-win_amd64.whl

Download URL solders-0.3.0-cp37-abi3-win_amd64.whl
Size 2.1 MB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5dff605472bd747310b4651f8ca72fdc42aba2b633833911a566f89bed608999
BLAKE2b-256 checksum
How to use checksums
e3e8686992e20356c29e799bf5fd6f78d7e4853e73a345a6317c5045a4881899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-musllinux_1_2_x86_64.whl

Download URL solders-0.3.0-cp37-abi3-musllinux_1_2_x86_64.whl
Size 3.7 MB
Tags CPython 3.7 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
9e10c59623af2b3c1a493aefa7114595f05881639db5556112c4d2426ac3ba33
BLAKE2b-256 checksum
How to use checksums
bd25fc5af65d1ceba7909fce0699ae4ef04049b319c59edb7a232f66e5afacfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-musllinux_1_2_i686.whl

Download URL solders-0.3.0-cp37-abi3-musllinux_1_2_i686.whl
Size 3.7 MB
Tags CPython 3.7 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
7dd19f9d065bad129ac7abc008eb106599b281f8450dead323e34da404b0f0e8
BLAKE2b-256 checksum
How to use checksums
e6b03ffe30893fdc1a79d42edea335aef82bcf93f4da0a61361fe813fece27bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL solders-0.3.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 3.8 MB
Tags CPython 3.7 Linux glibc 2.17+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
d199fc8773649dab7d54d6fbebc46944b2950658103a8a463fd2c30abae45bdd
BLAKE2b-256 checksum
How to use checksums
4679c7dbdeca5c84ae3cc81cedb6260a147c699ea861455f55a8c3abf4b0a756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl

Download URL solders-0.3.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Size 3.9 MB
Tags CPython 3.7 Linux glibc 2.17+ PowerPC 64-be abi3
SHA-256 checksum
How to use checksums
42c63fbf391701fa71b069015751a10fc72b2e45e27e00aeff05f9f138512cf3
BLAKE2b-256 checksum
How to use checksums
3c0db61607fb37f06c1fa457635e06035ef59d8981a4e3e6ac3660efdf159c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL solders-0.3.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.5 MB
Tags CPython 3.7 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
8f91def5d281039b2f97564c90803724d2bb639e87fe76e5ad4f0992cbc104a8
BLAKE2b-256 checksum
How to use checksums
0a73704087fd9f22894308dc50793e51647c82f12622ea91001edc4125e15f6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL solders-0.3.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.4 MB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
ea96c477f8bd3d007ab5cde3792d677fc51d0d12ec3e4b85cacbf9cc5d587e02
BLAKE2b-256 checksum
How to use checksums
077530405eedfae6350ce149112bed746f8b36075d731267e0cab5027bc77221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Download URL solders-0.3.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Size 3.5 MB
Tags CPython 3.7 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
f2bb051b8de266293b911223c3c0eee9fd0db6b6c2eaabdb6eb7e069128f0667
BLAKE2b-256 checksum
How to use checksums
efa1782607d11db8fda69c6c75b9dca253019641764dcae291623695a8260869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl

Download URL solders-0.3.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Size 3.6 MB
Tags CPython 3.7 Linux glibc 2.5+ x86-32 abi3
SHA-256 checksum
How to use checksums
0fd6e36d3d4cc494cda170f254ea57b7ee6712af9c63f630264ee608e735e31c
BLAKE2b-256 checksum
How to use checksums
28ccc8dcdc5686f990b54bc9b78c8bd70d0b43a3d05ee7d4aaf8292be99230cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL solders-0.3.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 4.4 MB
Tags CPython 3.7 abi3 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8f95763c2f7fd2d198de13e605aca24b15d639b9539714a4f900dc7e2da42a90
BLAKE2b-256 checksum
How to use checksums
dc3bff279f16a5b35aca97decd1315cd5a751b54dd05643cff0ad32430026e38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release files / solders-0.3.0-cp37-abi3-macosx_10_7_x86_64.whl

Download URL solders-0.3.0-cp37-abi3-macosx_10_7_x86_64.whl
Size 2.3 MB
Tags CPython 3.7 abi3 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
aa57db196b1f8352529c88b7339abae591f6385fdb4a0188856b3e1ef3298f14
BLAKE2b-256 checksum
How to use checksums
fd46cb3bd015b95c21b8a805e36e0aea5b7bf3ae000205aaa08747f981241a6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.20

Release history Release notifications | RSS feed

0.29.0

7 release files

0.27.1

9 release files

0.27.0

9 release files

0.26.0

9 release files

0.25.0

9 release files

0.24.0

9 release files

0.23.0

9 release files

0.22.0

9 release files

0.21.0

9 release files

0.20.0

9 release files

0.17.0

9 release files

0.16.0

9 release files

0.9.3

11 release files

0.9.2

11 release files

0.9.1

11 release files

0.9.0

11 release files

0.8.1

11 release files

0.8.0

11 release files

0.7.0

11 release files

0.5.1

11 release files

0.5.0

11 release files

0.4.0

11 release files

This release

0.3.0 This release

12 release files

0.2.0

13 release files

0.1.3

13 release files

0.1.2

13 release files

0.1.1

13 release files

0.1.0

13 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page