- 1,448GitHub stars
- Nevertrades
solana-py is the Python Solana SDK for RPC, transactions, and SPL tokens. Use it for research and scripting beside Moby; keep live execution and keys inside Moby Guardrails.
About
solana-py is a MIT-licensed Python client for the Solana JSON RPC API and SPL Token program. It is commonly paired with solders for core types. Agents can read accounts, balances, and logs, or build transactions in research code.
What it adds to Moby. A Python-native Solana toolkit when your harness already runs Python and you need RPC reads or offline transaction crafting next to Moby's trading tools.
How to pair it. pip install solana solders, point the client at a public or keyed RPC URL, and use read APIs freely. Do not put seed phrases into agent env files. Prefer Moby for live swaps so Guardrails stay on.
What it does not do. It is not a marketplace trading terminal. Signing with a local keypair is possible in the library; treat that as advanced and avoid unaudited custody patterns.
What's inside this repo
- Python Solana JSON RPC and SPL Token client
- Works with solders core types
- MIT license, multi-contributor maintenance
- Research and scripting beside Moby execution
Install steps
Third-party code: Moby does not audit or control it. Read the source before you run it.
pip install solders solana- Create an
AsyncClientor sync client against your RPC URL for reads. - Keep seed phrases out of agent config. Place live trades through Moby.
- Docs: https://michaelhly.github.io/solana-py/
- Ask:
Using solana-py, fetch account or token balances for <pubkey> and summarize. Do not sign or send a transaction.
Permissions
- Reads
- Solana JSON RPC and account data you configure
- Writes
- Transactions only if you sign and submit them yourself; prefer Moby for live trading
- Tools
- Python packages `solana` and `solders`
- Trade
- Never trades
Review
Curated listing. Moby did not audit the code.
Links
On GitHub
- Stars
- 1,448
- Forks
- 345
How it works with Moby
solana-py works on its own. With Moby your agent can also trade on what it finds.
- Set up AI Trading
In the Moby app: create your agent and fund its Solana wallet.
Get the app - Connect Moby MCP
Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.
View Moby MCP - Install solana-py
Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.
Install
Related
- CCXTCCXT is a unified library for crypto exchange market data, balances…
- CryptofeedCryptofeed is a Python websocket handler for live cryptocurrency…
- DuckDBDuckDB is an in-process analytical database for SQL over local and…
- QuantStatsQuantStats is a Python portfolio analytics library for drawdowns…
- Moby MCP connectorConnect any MCP-capable agent to Moby for live onchain research on…
- Moby KnowledgeThe /agents page and agents.md as your agent's Moby reference: how…
Curated listing. Moby did not audit the code · Report this item
