ElizaOS Multichain Agent
Plugin-Based Architecture for Cross-Chain Swaps
We forked ElizaOS v0.25.9 and extended its modular plugin system by reusing the existing MultiversX swap action as a template and integrating STON.fi’s SDK to enable token querying and swapping on TON’s network. A two-step confirmation flow was implemented to mitigate execution risks from hallucinations or typos, and tonconnect support was integrated into the TON plugin to facilitate secure, user-driven wallet interactions.
Agent Interaction and Deployment Workflow
Users interact via a React-based client, issuing natural-language swap requests that the ElizaOS runtime dispatches to the appropriate blockchain plugin (TON or MultiversX), orchestrating on-chain transactions and streaming back human-readable confirmations and status updates in real time. For demonstration purposes, three distinct agent characters were deployed, one for TON-only, one for MultiversX-only, and one multisupported agent, showcasing ElizaOS’s flexible character file configuration and secure management of private keys as character secrets rather than environment variables.