Metadata-Version: 2.1
Name: solathon
Version: 1.2.0
Summary: A high-performance, easy-to-use, and feature-rich Solana SDK for Python.
Home-page: https://github.com/GitBolt/solathon
License: MIT
Keywords: solana,web3,sdk,blockchain,crypto
Author: GitBolt
Requires-Python: >=3.10,<4.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: base58 (>=2.1.1,<3.0.0)
Requires-Dist: httpx (>=0.28.1,<0.29.0)
Requires-Dist: pillow (>=12.3.0,<13.0.0)
Requires-Dist: pynacl (>=1.6.2,<2.0.0)
Requires-Dist: qrcode (>=8.2,<9.0)
Project-URL: Repository, https://github.com/GitBolt/solathon
Description-Content-Type: text/markdown

<p align="center">
  <a href="#">
    <img
      alt="Solathon logo"
      src="https://solathon.vercel.app/solathon.svg"
      width="140"
    />
  </a>
</p>


<p align="center">
  <a href="https://pypi.org/project/solathon/" target="_blank"><img src="https://badge.fury.io/py/solathon.svg" alt="PyPI version"></a>
  <a href="https://github.com/GitBolt/solathon/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="MIT License"></a>
  <br>
</p>

<h1 align="center">Solathon</h1>

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
```python
from solathon import Client

client = Client("https://api.devnet.solana.com")
```
## Basic usage example
```python
# 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](https://solana.com/docs/rpc/http), 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.

```python
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](CONTRIBUTING.md) for guidelines on how to proceed.

