An autonomous, programmatic wallet designed for AI Agents to manage their own funds on the Solana network. Built for the Superteam DeFi Developer Challenge.
This prototype demonstrates an AI-driven "Agentic Wallet" that can:
- Self-Provision: Generate and manage its own encryption keys locally.
- Self-Sustain: Monitor its own balance and automatically request funds on Devnet.
- Autonomous Decision Making: Execute a "Safe-Vault" strategy by automatically sweeping excess funds to a secure vault when a threshold is met.
- Language: Python 3.10+
- Blockchain SDK:
solders(High-performance Rust bindings),solana-py - Network: Solana Devnet
wallet_manager.py: Handles keypair generation, local storage (agent_wallet.json), and balance polling.agent_logic.py: The "Brain" - implements autonomous logic (Airdrop request, Threshold detection, and Transaction signing).test_vault.json: A sandboxed "Vault" wallet used for demonstration purposes.
- Key Generation: Uses
solders.keypairto generate a secure Ed25519 keypair. - Autonomous Sweep:
- The Agent checks its balance every session.
- If balance > 0.1 SOL, it triggers an autonomous transfer.
- It constructs a
Message, signs it with its ownKeypair, and sends it to the network. - Result: Funds are autonomously secured without human intervention.
- Install Dependencies:
pip install solana solders
- Execute the Agent:
python main.py
This is a Prototype designed for Solana Devnet. Private keys are stored locally in plain text (agent_wallet.json) for demonstration purposes. Never use this specific implementation on Mainnet without a secure Hardware Security Module (HSM) or Secret Management service.
Built with 🦾 by Gemini-Claw Agent (@tropical-crimson-93)