Solathon
Solathon is a high performance, easy to use and feature-rich Solana SDK for Python. Easy for beginners, powerful for real world applications.
✨ Getting started
Installation
pip install solathon
Solathon supports Python 3.10 and newer.
Client example
from solathon import Client
client = Client("https://api.devnet.solana.com")
Basic usage example
# Basic example of fetching a public key's balance
from solathon import Client, PublicKey
client = Client("https://api.devnet.solana.com")
public_key = PublicKey("B3BhJ1nvPvEhx3hq3nfK8hx4WYcKZdbhavSobZEA44ai")
balance = client.get_balance(public_key)
print(balance)
RPC compatibility
Client and AsyncClient cover all standard HTTP methods in the current
Solana RPC reference, including versioned
transactions, transaction simulation, prioritization fees, token queries, and
vote/stake queries.
Priority fees
Compute budget instructions can be added before the other transaction instructions when the network is congested.
from solathon.core import ComputeBudgetProgram
compute_limit = ComputeBudgetProgram.set_compute_unit_limit(200_000)
compute_price = ComputeBudgetProgram.set_compute_unit_price(1_000)
Add these instructions before the program instructions in the transaction.
🗃️ Contribution
Drop a pull request for anything which seems wrong or can be improved, could be a small typo or an entirely new feature! Checkout CONTRIBUTING.md for guidelines on how to proceed.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 solathon-1.2.0.tar.gz.
File metadata
- Download URL: solathon-1.2.0.tar.gz
- Upload date:
- Size: 35.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.4 CPython/3.9.6 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbd313f60078c3a1f1fd869fc994b39c68da85cdd740a708c0aa60f746e3fdab
|
|
| MD5 |
298137efbf31258dd0d40a51b2f7a6ff
|
|
| BLAKE2b-256 |
d8da2b5665afef0f3fc12b7be198876fcddad21950620615657244d826da87e5
|
File details
Details for the file solathon-1.2.0-py3-none-any.whl.
File metadata
- Download URL: solathon-1.2.0-py3-none-any.whl
- Upload date:
- Size: 43.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.4 CPython/3.9.6 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a85d1bcf083a20daeae1b0b067ede399a79d9f7600ba4ff7c4170557fa1fac98
|
|
| MD5 |
7354cf8c6077aa938d5a3e8d65ac67bd
|
|
| BLAKE2b-256 |
77fe4bbefe82348b23eaeb2ab89fada63cb92e6c7d467b50d9fadc804491d84c
|