Learn how to build a cross-chain agent with Wormhole, NextJS, and Solana Agent Kit
This documentation provides a comprehensive guide to building a NextJS application that leverages the Solana Agent Kit to create a Wormhole agent for cross-chain operations. This integration enables a chat-based interface for interacting with Wormhole’s cross-chain messaging protocol.
Here are some example prompts that can be handled by the Wormhole agent:
Copy
# Token Transfer Examples- "Transfer 0.01 SOL from Solana to Ethereum"- "Send 5 USDC from Ethereum to Base"- "Move 1 WBTC from Polygon to Solana"# CCTP Transfer Examples- "Send 10 USDC from Solana to Base using CCTP"- "Transfer 50 USDC via CCTP from Ethereum to Arbitrum"- "Use CCTP to send 25 USDC from Avalanche to Optimism"# Information Requests- "What chains do you support?"- "Show me all available networks"- "What is Wormhole?"- "How does CCTP work?"- "What's the difference between token bridge and CCTP?"