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
>>>
>>>
>>>
>>>
>>>
>>>
>>> =
>>> =
>>> =
>>> =
>>> =
>>> =
>>> = # replace with a real blockhash
>>> =
Development
Setup
- Install poetry
- Install dev dependencies:
poetry install
- Activate the poetry shell:
Testing
- Run
maturin developto compile the Rust code. - Run
make fmt,make lint, andmake test.