solanace
A high-level Python library to effortlessly interact with the Solana Blockchain (work in progress).
Features
- Simplistic syntax
- Full support for Asyncio & Gevent (but can also run synchronous)
- Fallback clients
- Swapping functionality using Jupiter Aggregator (raydium, orca, etc.)
- High performance (uses solders, written in Rust, under the hood)
- Meaningful error messages
- RPC Performance Testing & Profiling
- Full support for Type Hints
For support, drop me a DM on my X.
Following is the goal, this library is WIP
Get Started
from solanace import Tokens, Metrics
from solanace import Wallet, Client
my_wallet = Wallet.from_private_key("xyzxyzxyz") # base58 encoded private key
my_client = Client("https://sola.na/rpc", "https://mainnet-beta.solana.com/rpc")
# send and recieve solana & spl tokens
my_client.get_balance()
my_client.send_sol(wallet=my_wallet, to="bob.sol", amount=0.1)
my_client.send_token(wallet=my_wallet, token=Tokens.USDC, to="bob.sol", amount=2)
my_wallet_address = my_wallet.address()
# swap 0.1 solana to usdc
my_client.swap(wallet=my_wallet, from_currency=Tokens.Solana, to_currency=Tokens.USDC, amount_from_currency=0.1)
my_client.swap(wallet=my_wallet, from_currency=Tokens.Solana, to_currency=Tokens.USDC, amount_to_currency=5)
# nft utility
my_client.send_nft(wallet=my_wallet, nft_address="xyz", to="abc")
my_client.burn_nft(wallet=my_wallet, nft_address="uvw")
# test rpcs
Metrics.test(urls=["rpc1", "rpc2", "rpc3"], limit=10)
Upcoming Features
- Mint NFTs
- Mint Tokens
- List, Buy & Bid on NFTs
- Whitelist Wallets & Limit amounts sent
Metadata
Release files for solanace 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| solanace-0.0.2.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| solanace-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / solanace-0.0.2.tar.gz
| Download URL | solanace-0.0.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56d9a79a69bdcbcb879636a6fe969791a1a709adc71d70880ca3cd33b6899d98
|
|
BLAKE2b-256 checksum How to use checksums |
ca1b6da229a6d1b3df0f45d1f23d6f5ddfc35898b0fb8c1884e7c4e6ddff281d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.2 Windows/10
|
Release files / solanace-0.0.2-py3-none-any.whl
| Download URL | solanace-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4c48a94f3314df93dc6c74e74d63db00846a927c3eefa8a17407a51e9574181
|
|
BLAKE2b-256 checksum How to use checksums |
bf453e7a95bdc4a65de4d938434480aedd56b51d6a9de6a1ffa6d239887383f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.2 Windows/10
|
Security for solanace 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.