Enable high-performance Solana blockchain interactions for your AI agent
The Solana plugin provides comprehensive integration with the Solana blockchain, enabling AI agents to manage wallets, transfer tokens, perform swaps, and track portfolios with real-time market data.
import { solanaPlugin } from '@elizaos/plugin-solana';import { AgentRuntime } from '@elizaos/core';// Initialize the agent with Solana pluginconst runtime = new AgentRuntime({ plugins: [solanaPlugin], // ... other configuration});
The plugin uses advanced prompt engineering to understand natural language:
Copy
Ask AI
// The AI understands various ways to express the same intent:"Send 1 SOL to alice.sol""Transfer 1 SOL to alice""Pay alice 1 SOL""Give 1 SOL to alice.sol"