Wormhole
In the previous chapters, we set up the Solana and Ethereum development environments and prepared the project for cross-chain work. Now it’s time to start building with the Wormhole SDK and enable real cross-chain communication! 🚀

In this lesson, you will:

✅ Create a Wormhole instance connected to both Solana and Ethereum
✅ Initialize the Wormhole network and ensure it's ready for cross-chain interaction

1. Create a Wormhole Instance

To perform a cross-chain transfer, we need to establish a Wormhole connection between Solana and Ethereum:

2. Test the Wormhole Connection

✅ Expected output:
1
🚨 Troubleshooting Tips:
●Ensure your Solana and Ethereum RPC URLs are reachable (you can test with curl).
●Confirm your .env.local contains correct values for the RPC endpoints and NEXT_PUBLIC_WORMHOLE_NETWORK.

3. List All Supported Chains in the Wormhole SDK

The Wormhole SDK also allows you to view all supported chains for the current network:
✅ Sample output:
1
💡 This means your Wormhole instance is successfully initialized and ready to interact across multiple chains! 🚀