solana-proxy
A library for using HTTP and SOCKS5 proxies with solana clients
The library provides Client and AsyncClient classes, which override the initialization of the original classes. Apart from these two classes, the library does not offer any additional features, and in all other cases, the original solana library, included as part of the installation package, should be used.
pip install solana-proxy
Depencies: solana, httpx, httpx-socks, proxystr
Simple usage
from solana_proxy import Client
RPC_URL = 'https://api.mainnet-beta.solana.com'
client = Client(RPC_URL, proxy='login:password@ip:port') # or 'socks5://login:password@ip:port'
client.is_connected()
...
client.close()
Client and AsyncClient take proxy in any popular format because they use proxystr lib. Also they take a Proxy obj from that lib.
Context manager
import asyncio
from solana_proxy import Client, AsyncClient
RPC_URL = 'https://api.mainnet-beta.solana.com'
PROXY = 'login:password@ip:port' # or 'socks5://login:password@ip:port'
with Client(RPC_URL, proxy=PROXY) as client:
client.is_connected()
async def is_connected():
async with AsyncClient(RPC_URL, proxy=PROXY) as client:
return await client.is_connected()
Support
Developed by MrSmith06: telegram | gtihub
If you find this project helpful, feel free to leave a tip!
- EVM address (metamask):
0x6201d7364F01772F8FbDce67A9900d505950aB99
Metadata
Release files for solana-proxy 0.1.1
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 | Actions |
|---|---|---|---|---|
| solana_proxy-0.1.1.tar.gz | 4.4 kB | Without provenance | Details for solana_proxy-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| solana_proxy-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for solana_proxy-0.1.1-py3-none-any.whl |
Total release size: 11.3 kB
Release files / solana_proxy-0.1.1.tar.gz
| Download URL | solana_proxy-0.1.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf60e6a272faf6cb63ab41762f9811531731b3b4ec515d47fdbd736fab2fa669
|
|
BLAKE2b-256 checksum How to use checksums |
671fbfada8d0db3b108f7171e56eae19d9127da2cd0b7ffe2036544e9e624ee1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.11 Windows/10
|
Release files / solana_proxy-0.1.1-py3-none-any.whl
| Download URL | solana_proxy-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7617b9f5846136005fae9f92348cde91c6fd7744b9fad0f7e577c0703eec7971
|
|
BLAKE2b-256 checksum How to use checksums |
d2868f7b76625246d6e13ac9c6d1d35da1b6707137fa51d765a69d2b2cd6c1d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.11 Windows/10
|
Security for solana-proxy 0.1.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.