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.1.3

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.1.3
File Size Uploaded
solders-0.1.3.tar.gz 28.4 kB Details

Built distributions (wheels)

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

Total release size: 16.9 MB

Release files / solders-0.1.3.tar.gz

Download URL solders-0.1.3.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
83a0673265a421377f0cc8044d6cd0c671144fa88bc60efdc3eea39f97285cdb
BLAKE2b-256 checksum
How to use checksums
298ca1bc802296c6a76b7cc9f36d47b1d67fce47b1045ed4ee5b840c58e07319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-cp37-abi3-win_amd64.whl
Size 504.6 kB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0c15b8abaa03e6c78ae366c184bd07979cfb7aa6c1c378f4e2ec6b2574f98994
BLAKE2b-256 checksum
How to use checksums
38703062e3076291095655ef9c1da0e4a0271abcac022dfa8b1c8c6107c0b44d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-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
cbbcf14beee68ffa84a240bcaa028528edb9eb59b0f82c96c66b201709faeb5e
BLAKE2b-256 checksum
How to use checksums
b47cf3bc6c65b1922fc72f64ab0ef999c4cca83ad0959e51557bc74d9c278b4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-cp37-abi3-musllinux_1_2_i686.whl
Size 1.7 MB
Tags CPython 3.7 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
64ed81e2939103cf3c3cf74e1b285e9905e1133379aff502b6f1922df4e24230
BLAKE2b-256 checksum
How to use checksums
412e7b241acf63e86dc5bf8385ca8a43f19585adc043521f20b0727f6d42a4a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-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
bd57dade538f581d3d7ecb2e3025291bc68d7427c1512e0ea5533676d1f2ea96
BLAKE2b-256 checksum
How to use checksums
a57a0625c2f2caf2362bb4b0554aa8abe1e07cdda5c615838a582f3166506919
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-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
a31ec35f10319ba37e3cd7acad5334bdc742ab94846a42280631403879be478c
BLAKE2b-256 checksum
How to use checksums
807e1157149901e9489cc43f3c3ad964f640702fe587d22e8c0cc7a9adb2b857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-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
0e525b8e6caf1a70cee06b9d2e311c826d2ef4ef112ddb763e8fac1ec4cb6110
BLAKE2b-256 checksum
How to use checksums
c16562c6260b9bf48f605560c640b08fb9c564e12e8f94ea7b4271ed5763f5ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-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
f7ac5f289e305e9144d5efe9fdce9cba6bff24c59a765539fe239ed2cf246337
BLAKE2b-256 checksum
How to use checksums
b5dcee28cfd6f90f66160c138e9f0308f866758d689b97f2779be718f377e1ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-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
8c78e802caaf531bd5ee7c07f817fcc18263e11867693b24d09ca127dccf90c1
BLAKE2b-256 checksum
How to use checksums
e83ae3a0a4b0c045260ac4ad4acd6377579824e1a1b36df7e2341f283f8c09df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-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
e4a7b68312dec3464daddc851920a8e4a849276a1fa5bfb38e9d3339f7682ff0
BLAKE2b-256 checksum
How to use checksums
6313411aa02da576abe8a99401c2f7ec47c630a7d01273969c6092bfd4ff964b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-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
6dfd6f8c8e1fb4c9900b69b42fec2c90dfefb22e84b1cf249708752e6345034a
BLAKE2b-256 checksum
How to use checksums
380092f84245295425de20a9d7ac6bbe24d77f7aa6651affd173bd6fcc170357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 1.2 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
cb9b0fec0c564a7734198e810f2d0688e175be71c246bff5562b13a7bf0b5a5c
BLAKE2b-256 checksum
How to use checksums
aae6eb7b193ece85879605844e798812dc48fe2997877a9b9030109f189e1a32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

Download URL solders-0.1.3-cp37-abi3-macosx_10_7_x86_64.whl
Size 650.4 kB
Tags CPython 3.7 abi3 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
97fcc0e9db4044a2a61fc9afaed828d60ec64cb55a839104cc09745c9bcfa5fc
BLAKE2b-256 checksum
How to use checksums
bcd9f8471e6fa4ad0026d39c7cfe93706bfc32a35e3184462284dbf8a04ba6fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.18

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

0.2.0

13 release files

This release

0.1.3 This release

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