AI Trading is invite only. Check your Moby inbox for a code, or DM us on X for access. DM us on X →

Moby Agent Marketplace Connect Moby MCP Get the app

solana-py

by @michaelhlyCOMMUNITY· Updated Nov 6, 2026

michaelhly/solana-py★ 1,448

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.

  1. pip install solders solana
  2. Create an AsyncClient or sync client against your RPC URL for reads.
  3. Keep seed phrases out of agent config. Place live trades through Moby.
  4. Docs: https://michaelhly.github.io/solana-py/
  5. 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.

On GitHub

michaelhly/solana-py

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.

  1. Set up AI Trading

    In the Moby app: create your agent and fund its Solana wallet.

    Get the app
  2. Connect Moby MCP

    Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.

    View Moby MCP
  3. Install solana-py

    Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.

    Install

Curated listing. Moby did not audit the code · Report this item

Install solana-py