Python binding to the Solana Rust SDK
Project description
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
- Install poetry
- Install dev dependencies:
poetry install
- Activate the poetry shell:
poetry shell
Testing
- Run
maturin developto compile the Rust code. - Run
make fmt,make lint, andmake test.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solders-0.2.0.tar.gz.
File metadata
- Download URL: solders-0.2.0.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac952fa3d9d71001f1e98489336288d6b8a560c134d7aba98ce521699c844b21
|
|
| MD5 |
0688bffd75dab1bb42035f5dedfd21e2
|
|
| BLAKE2b-256 |
82b1dca3dad03c5933989a29801c81ccf811278a4452485b70f4c18327f8c978
|
File details
Details for the file solders-0.2.0-cp37-abi3-win_amd64.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 527.3 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d699d6f2f1854d85c7f1c4dc1b8cba7fd2c4a1fda6c6783b611ac88c99e0f97
|
|
| MD5 |
f63c571b5e916a32daab4c43b009d849
|
|
| BLAKE2b-256 |
039fe1c4ae7a0ddef83e557af8481659600de6e96760f6193212b280e235d5be
|
File details
Details for the file solders-0.2.0-cp37-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f696c6fcdbe37c4357865aaa5ab843881ead5ea1255cb58ea8bde3a6bd2af0fb
|
|
| MD5 |
7a070efadf537bd0522d031ecfaded11
|
|
| BLAKE2b-256 |
f9eb80322b7c766beee23d0e42a86497ba6ea033570af969ce0985c004a9461c
|
File details
Details for the file solders-0.2.0-cp37-abi3-musllinux_1_2_i686.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-musllinux_1_2_i686.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88ecad7525fe74513d9305a29f9a61330af3d1460a09322b7d65a187ffc74aa2
|
|
| MD5 |
f40ae6ce841c8d6d323029f39ba55d3d
|
|
| BLAKE2b-256 |
f9780a475673121b0980d590cd4693f7981527bd5ae1969262fe6d173fb914f3
|
File details
Details for the file solders-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63efde2713379325b547e45db481b002219e005cd7d71c3bb2ed722a03afefa
|
|
| MD5 |
cbd4f44e6a79f7821ad6a3a6c546cd9c
|
|
| BLAKE2b-256 |
31a1e02ffa74e3395ab04ab9c67c52b86deac1337e9827351bf4ca33795feba7
|
File details
Details for the file solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4327a6a37a226f572a3d7c5bd5dcb86e11de510dd5f0e0bede9519b08df223a4
|
|
| MD5 |
19f9c35e20ba0b8eef609ec3728cb21c
|
|
| BLAKE2b-256 |
955f9c136af61614e5cbf2022b2546ace71a40e57682235ab2f9b6e9f42ac799
|
File details
Details for the file solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ad094b1137e0efbe5e03d5808a596c455cbaf20956d44a7faae2e6da1a269c
|
|
| MD5 |
41873e243865dcce883c7f96a8057e86
|
|
| BLAKE2b-256 |
5fef3d63e16dccb8194c09b11370f1583b19f745de49044c4aec0c660641dc5a
|
File details
Details for the file solders-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ddd3da0921fb5a99a7e58899cd1c2f330e086d28b5feb4b367fc25550b5a3b6
|
|
| MD5 |
8f37ae227381d43e1614074c8bef5558
|
|
| BLAKE2b-256 |
630cab464a5f000e0746dbf05a53869bf9d6bbf0664609e76850dd87472b4314
|
File details
Details for the file solders-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39ebee6545660b393178d0ef5187b71d743f15cd15214cb7b4dd4177991f0aa4
|
|
| MD5 |
95dd7de0cd68a3d420e6304d0e122043
|
|
| BLAKE2b-256 |
4cbb5bf53faf3504bb761eab95a22d201ea3aae55bc13a4e699563632a8b7404
|
File details
Details for the file solders-0.2.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
841881445d8fe7964c55454e00a8d1ef3c5fe7476656f231eccc8bebe453b650
|
|
| MD5 |
80674767b2801ce28b3557c23eb53bec
|
|
| BLAKE2b-256 |
65295b83b6303552e759b234aafbdb69e69d9a2d80e0075e28143576623d4f4c
|
File details
Details for the file solders-0.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0117bd3559cb47a89dfcd669da9b2dd9d71d385588936bdaeadf7e1a53290e1c
|
|
| MD5 |
79a087de1218e7b9bac3d3e584aaadbf
|
|
| BLAKE2b-256 |
38e181f8889c37ebc7ac5466f0ad3a532e284aad0a076d0b026b12526870339a
|
File details
Details for the file solders-0.2.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.7+, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0872f8bccc14d67245d6849df957cbf7ae9fb6afcc61bcdf2076d0ba809c71a2
|
|
| MD5 |
d5fe09a47f07804614aec8f808b8969c
|
|
| BLAKE2b-256 |
dbb36ca6f6db7cdcda28dec5890d80d95c242808ebd86fecb3ad5349184c4fc8
|
File details
Details for the file solders-0.2.0-cp37-abi3-macosx_10_7_x86_64.whl.
File metadata
- Download URL: solders-0.2.0-cp37-abi3-macosx_10_7_x86_64.whl
- Upload date:
- Size: 672.1 kB
- Tags: CPython 3.7+, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b0a862b4aebf33c39fe68b4242737dc212d5eaa891db1fec466ce7f322027fd
|
|
| MD5 |
4fddb5c99931a6568a6baf1822dcfb39
|
|
| BLAKE2b-256 |
55616bd1b327647d7f492c2d035e50dc08138d22e327d3404fb15ba640d5896c
|