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.

Release files for solders 0.2.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.2.0
File Size Uploaded
solders-0.2.0.tar.gz 29.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for solders 0.2.0
File
solders-0.2.0-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details
solders-0.2.0-cp37-abi3-musllinux_1_2_x86_64.whl CPython 3.7 abi3 Linux musl 1.2+ x86-64 Details
solders-0.2.0-cp37-abi3-musllinux_1_2_i686.whl CPython 3.7 abi3 Linux musl 1.2+ x86-32 Details
solders-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl CPython 3.7 abi3 Linux glibc 2.17+ IBM System/390x Details
solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl CPython 3.7 abi3 Linux glibc 2.17+ PowerPC 64-le Details
solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl CPython 3.7 abi3 Linux glibc 2.17+ PowerPC 64-be Details
solders-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl CPython 3.7 abi3 Linux glibc 2.17+ ARMv7l Details
solders-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.7 abi3 Linux glibc 2.17+ ARM64 Details
solders-0.2.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.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl CPython 3.7 abi3 Linux glibc 2.5+ x86-32 Details
solders-0.2.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.7 abi3 macOS 10.9+ x86-64, macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64) Details
solders-0.2.0-cp37-abi3-macosx_10_7_x86_64.whl CPython 3.7 abi3 macOS 10.7+ x86-64 Details

Total release size: 17.2 MB

Release files / solders-0.2.0.tar.gz

Download URL solders-0.2.0.tar.gz
Size 29.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ac952fa3d9d71001f1e98489336288d6b8a560c134d7aba98ce521699c844b21
BLAKE2b-256 checksum
How to use checksums
82b1dca3dad03c5933989a29801c81ccf811278a4452485b70f4c18327f8c978
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-win_amd64.whl
Size 527.3 kB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4d699d6f2f1854d85c7f1c4dc1b8cba7fd2c4a1fda6c6783b611ac88c99e0f97
BLAKE2b-256 checksum
How to use checksums
039fe1c4ae7a0ddef83e557af8481659600de6e96760f6193212b280e235d5be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

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

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

Download URL solders-0.2.0-cp37-abi3-musllinux_1_2_i686.whl
Size 1.8 MB
Tags CPython 3.7 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
88ecad7525fe74513d9305a29f9a61330af3d1460a09322b7d65a187ffc74aa2
BLAKE2b-256 checksum
How to use checksums
f9780a475673121b0980d590cd4693f7981527bd5ae1969262fe6d173fb914f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 1.7 MB
Tags CPython 3.7 Linux glibc 2.17+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
d63efde2713379325b547e45db481b002219e005cd7d71c3bb2ed722a03afefa
BLAKE2b-256 checksum
How to use checksums
31a1e02ffa74e3395ab04ab9c67c52b86deac1337e9827351bf4ca33795feba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

Release files / solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 1.7 MB
Tags CPython 3.7 Linux glibc 2.17+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
4327a6a37a226f572a3d7c5bd5dcb86e11de510dd5f0e0bede9519b08df223a4
BLAKE2b-256 checksum
How to use checksums
955f9c136af61614e5cbf2022b2546ace71a40e57682235ab2f9b6e9f42ac799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Size 1.7 MB
Tags CPython 3.7 Linux glibc 2.17+ PowerPC 64-be abi3
SHA-256 checksum
How to use checksums
60ad094b1137e0efbe5e03d5808a596c455cbaf20956d44a7faae2e6da1a269c
BLAKE2b-256 checksum
How to use checksums
5fef3d63e16dccb8194c09b11370f1583b19f745de49044c4aec0c660641dc5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 1.5 MB
Tags CPython 3.7 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
6ddd3da0921fb5a99a7e58899cd1c2f330e086d28b5feb4b367fc25550b5a3b6
BLAKE2b-256 checksum
How to use checksums
630cab464a5f000e0746dbf05a53869bf9d6bbf0664609e76850dd87472b4314
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.5 MB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
39ebee6545660b393178d0ef5187b71d743f15cd15214cb7b4dd4177991f0aa4
BLAKE2b-256 checksum
How to use checksums
4cbb5bf53faf3504bb761eab95a22d201ea3aae55bc13a4e699563632a8b7404
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Size 1.5 MB
Tags CPython 3.7 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
841881445d8fe7964c55454e00a8d1ef3c5fe7476656f231eccc8bebe453b650
BLAKE2b-256 checksum
How to use checksums
65295b83b6303552e759b234aafbdb69e69d9a2d80e0075e28143576623d4f4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Size 1.6 MB
Tags CPython 3.7 Linux glibc 2.5+ x86-32 abi3
SHA-256 checksum
How to use checksums
0117bd3559cb47a89dfcd669da9b2dd9d71d385588936bdaeadf7e1a53290e1c
BLAKE2b-256 checksum
How to use checksums
38e181f8889c37ebc7ac5466f0ad3a532e284aad0a076d0b026b12526870339a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 1.3 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
0872f8bccc14d67245d6849df957cbf7ae9fb6afcc61bcdf2076d0ba809c71a2
BLAKE2b-256 checksum
How to use checksums
dbb36ca6f6db7cdcda28dec5890d80d95c242808ebd86fecb3ad5349184c4fc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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

Download URL solders-0.2.0-cp37-abi3-macosx_10_7_x86_64.whl
Size 672.1 kB
Tags CPython 3.7 abi3 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
6b0a862b4aebf33c39fe68b4242737dc212d5eaa891db1fec466ce7f322027fd
BLAKE2b-256 checksum
How to use checksums
55616bd1b327647d7f492c2d035e50dc08138d22e327d3404fb15ba640d5896c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.19

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.2.0 This release

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