Forem

Cover image for One Agent, Multiple Chains: EVM + Solana Wallet Infrastructure
Wallet Guy
Wallet Guy

Posted on

One Agent, Multiple Chains: EVM + Solana Wallet Infrastructure

Your Claude agent can browse the web, write code, and manage files. But can it swap tokens? What happens when your AI assistant needs to pay for its own API calls, or when your autonomous trading bot needs to execute DeFi strategies across Ethereum and Solana? Most AI agents today can analyze the blockchain but can't actually touch money.

The Multi-Chain Problem for AI Agents

Building AI agents that can transact on blockchains isn't just about giving them a wallet—it's about giving them secure, reliable access to an entire ecosystem. Your agent might need to stake ETH on Ethereum, swap tokens on Jupiter (Solana), bridge assets via LI.FI, or even trade prediction markets on Polymarket. Each chain has different wallet formats, transaction structures, and quirks that would require months of integration work.

Even if you solve the technical challenges, there's the security nightmare. How do you let an AI agent spend money without risking your entire treasury? How do you approve high-value transactions while still allowing automated micropayments? These aren't solved problems—until now.

One Wallet Service, All Chains

WAIaaS (Wallet-as-a-Service for AI agents) solves this by providing a self-hosted wallet infrastructure that speaks both EVM (Ethereum, Polygon, Base) and Solana natively. Instead of building custom blockchain integrations for each agent framework, you get 45 MCP tools that work with Claude Desktop, plus SDKs for LangChain, CrewAI, and any system that can make HTTP calls.

The architecture handles the complexity so your agents don't have to. WAIaaS manages 14 DeFi protocol integrations—including Aave v3, Jupiter swap, Hyperliquid, Lido staking, and Polymarket—so your agent can execute sophisticated strategies without you building each integration from scratch.

Here's what makes it different: instead of just another wallet API, WAIaaS provides a complete transaction pipeline with 7 stages of processing. Your agent submits a high-level intent like "stake 1 ETH on Lido," and WAIaaS handles the validation, policy checks, gas optimization, execution, and confirmation across chains.

Getting Your Agent Connected

The fastest way to get started is with Claude Desktop and MCP. Install the CLI and bootstrap everything in under 2 minutes:

npm install -g @waiaas/cli
waiaas init                        # Create data directory + config.toml
waiaas start                       # Start daemon (sets master password on first run)
waiaas quickset --mode mainnet     # Create wallets + MCP sessions in one step
Enter fullscreen mode Exit fullscreen mode

The quickset command creates wallets for both EVM and Solana, generates MCP session credentials, and outputs the exact JSON config for Claude Desktop. Copy that into your Claude config file:

# quickset already printed the MCP config JSON -- paste it into
# ~/Library/Application Support/Claude/claude_desktop_config.json
# Or auto-register with all wallets:
waiaas mcp setup --all
Enter fullscreen mode Exit fullscreen mode

That's it. Your Claude agent now has access to 45 blockchain tools through MCP, including send-token, get-defi-positions, approve-token, hyperliquid, and polymarket. Ask Claude to check your Ethereum balance, and it will call the get-balance tool. Ask it to stake SOL through Jito, and it will use the action-provider tool with the Jito staking integration.

The security model uses 3-layer authorization: session auth for routine operations, time delays plus human approval for large transactions, and monitoring with kill switches for everything else. Your agent can execute micropayments automatically while still requiring your approval for significant transfers.

Beyond Basic Transfers

Where WAIaaS gets interesting is in the advanced DeFi integrations. Your agent doesn't just send tokens—it can manage complex strategies across protocols. The system includes 14 DeFi protocol providers: Aave v3 for lending, Jupiter and 0x for swapping, LI.FI and Across for cross-chain bridging, Lido and Jito for liquid staking, Kamino for yield farming, Pendle for yield tokenization, and Polymarket for prediction markets.

Each provider handles the protocol-specific complexity. When your agent wants to open a leveraged position, it can use the Aave v3 provider to deposit collateral, borrow assets, and monitor the health factor—all through simple API calls. The Hyperliquid integration supports perpetual futures, spot trading, and sub-account management for more sophisticated trading strategies.

The x402 HTTP payment protocol support is particularly powerful for autonomous agents. Your agent can pay for API calls automatically using its wallet, enabling true economic autonomy where agents earn money from one service and spend it on others.

Cross-chain operations work seamlessly. Your agent can hold USDC on Polygon, bridge it to Solana via the Across protocol integration, swap it for SOL on Jupiter, and stake the SOL through Jito—all from the same wallet infrastructure. The system handles the different transaction formats, gas tokens, and confirmation patterns across chains.

Production-Ready Features

WAIaaS isn't just a prototype—it's built for production use with features that real applications need. The system includes NFT support for both EVM (ERC-721/ERC-1155) and Solana (Metaplex) with metadata caching. Incoming transaction monitoring provides real-time notifications when your agent receives deposits.

The Admin Web UI gives you visibility into wallet management, policy configuration, and DeFi positions across all chains. You can monitor your agent's activities, adjust spending limits, and intervene when necessary. Gas conditional execution means transactions only execute when gas prices meet your thresholds, preventing your agent from overpaying during network congestion.

ERC-4337 Account Abstraction support enables gasless transactions and UserOp build/sign APIs for more sophisticated wallet behaviors. The ERC-8004 Trustless Agents integration provides onchain agent reputation and validation, allowing your agents to build credibility over time.

For development and testing, the dry-run API lets you simulate transactions before execution. Docker deployment makes production setup straightforward with pre-built waiaas/daemon and waiaas/push-relay images.

Quick Start: Get Your Agent Trading

  1. Install and start the daemon: Run the install and quickset commands above to get wallets and MCP integration set up
  2. Add DeFi skills: Install pre-built skills for common operations:
npx @waiaas/skills add all
Enter fullscreen mode Exit fullscreen mode
  1. Fund your wallets: Transfer some ETH and SOL to your new wallet addresses (shown in the quickset output)
  2. Test with Claude: Ask Claude to check balances, make a small swap, or stake tokens
  3. Configure policies: Use the Admin Web UI to set spending limits and approval requirements for your use case

Scaling Beyond MCP

While MCP integration with Claude is the fastest way to get started, WAIaaS provides multiple integration paths. The TypeScript SDK (@waiaas/sdk) and Python SDK enable programmatic access from any application. The OpenClaw plugin offers 17 sessionAuth tools for external AI agent frameworks like LangChain and CrewAI.

The REST API provides 39 route modules for direct HTTP integration. This makes it possible to integrate WAIaaS with any AI framework that can make HTTP calls, from AutoGPT to custom agent implementations. The 611+ test files across all packages ensure reliability for production deployments.

If you're running headless agents that can't use Claude Desktop, the automated setup mode generates random master passwords and handles wallet creation without human intervention:

npm install -g @waiaas/cli
waiaas init --auto-provision     # Generates random master password → recovery.key
waiaas start                     # No password prompt
waiaas quickset                  # Creates wallets + sessions automatically
waiaas set-master                # (Later) Harden password, then delete recovery.key
Enter fullscreen mode Exit fullscreen mode

What's Next

This is just the beginning of what's possible when AI agents have native blockchain access. Start with simple operations like checking balances and making transfers, then explore DeFi integrations as you get comfortable with the security model.

Ready to give your AI agents a wallet? Check out the full documentation and code at GitHub, or visit waiaas.ai for more examples and tutorials.

Top comments (0)