Skip to main content

Solathon logo

PyPI version MIT License

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

solathon-1.2.0.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solathon-1.2.0-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

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

Hashes for solathon-1.2.0.tar.gz
Algorithm Hash digest
SHA256 cbd313f60078c3a1f1fd869fc994b39c68da85cdd740a708c0aa60f746e3fdab
MD5 298137efbf31258dd0d40a51b2f7a6ff
BLAKE2b-256 d8da2b5665afef0f3fc12b7be198876fcddad21950620615657244d826da87e5

See more details on using hashes here.

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

Hashes for solathon-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a85d1bcf083a20daeae1b0b067ede399a79d9f7600ba4ff7c4170557fa1fac98
MD5 7354cf8c6077aa938d5a3e8d65ac67bd
BLAKE2b-256 77fe4bbefe82348b23eaeb2ab89fada63cb92e6c7d467b50d9fadc804491d84c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.2

2 files

0.0.9

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page