What are Agents?
Agents in ActumX are autonomous entities with their own Solana wallets. Each agent has:- A unique identifier
- A Solana public/private key pair
- Independent wallet balance
- Lifecycle management
- Multi-tenant applications
- Testing different wallet strategies
- Isolating funds across use cases
- Automated trading bots
- DeFi protocol interactions
Each agent is associated with your user account but operates as an independent blockchain entity.
Agent Structure
An agent contains the following properties:Database Schema
Agents are stored in theagents table:
/home/daytona/workspace/source/api/src/db/schema.ts:74-83
Solana Wallet Integration
Each agent is backed by a Solana wallet generated using@solana/web3.js:
Key Generation
When you create an agent, a new keypair is generated:Balance Checking
ActumX integrates with Solana RPC to fetch real-time balances:Agent Lifecycle
1. Creation
Create an agent via the API:Agent names must be between 2-80 characters. Choose descriptive names to easily identify agents.
2. Funding (Devnet)
For testing on Solana devnet, you can airdrop SOL to your agent:- Minimum: 0.01 SOL
- Maximum: 2 SOL per request
3. Usage in MCP Tools
Agents can be referenced in Model Context Protocol (MCP) tool calls:agentId, the system uses your most recently created agent:
4. Management
List all your agents:Implementation Details
Service Layer
The agent service handles all agent operations: Key Functions:list(request): Retrieve all agents with balancescreate(request, payload): Generate new agent with Solana walletfundDevnet(request, agentId, payload): Airdrop devnet SOL
/home/daytona/workspace/source/api/src/modules/agents/service.ts
Validation
Agent creation validates:Security Considerations
- Private Key Storage: Private keys are stored encrypted in the database
- User Isolation: Agents are scoped to user accounts via foreign key
- Cascade Deletion: Deleting a user removes all associated agents
- Public Key Uniqueness: Each Solana public key can only belong to one agent
Balance Fetching
ActumX uses theSolanaBalanceService to query on-chain balances:
Network Configuration
ActumX supports multiple Solana networks:- Devnet: For testing and development (airdrop available)
- Mainnet: For production use (manual funding required)
The network is configured server-side. Check with your deployment to confirm which network is active.
Use Cases
1. Automated Trading
Create agents for different trading strategies:2. Multi-Tenant SaaS
Assign one agent per customer:3. Testing Scenarios
Create test agents with different balances:Best Practices
- Name Descriptively: Use clear names like “Production Bot” or “Staging Wallet”
- Secure Private Keys: Store private keys in secure vaults (e.g., AWS Secrets Manager)
- Monitor Balances: Regularly check agent balances to avoid insufficient funds
- Test on Devnet: Always test agent operations on devnet before mainnet
- Backup Keys: Keep offline backups of critical agent private keys
- Use Latest Agent: Omit
agentIdin MCP calls to auto-select the newest agent
Error Handling
Common agent errors:Next Steps
Creating Agents
Step-by-step guide to creating your first agent
Dashboard - Agents
Manage agents in the web dashboard
API Reference
View detailed agent API endpoints
x402 Protocol
Learn how agents work with x402 payments