Beginner Tutorial
π What You'll Learn
π― Prerequisites
ποΈ Project Structure Overview
1. HTML Structure β User interface elements with professional styling
2. External Libraries β Freighter API for wallet integration
3. Configuration β Centralized CONFIG object with all settings
4. Application State β Tracks wallet connection and transaction status
5. Utility Functions β Helper functions for UI updates and API calls
6. Core Functions β Connect, Quote, Sign, and Send (4 separate steps)π§ Core Functions Explained
Function 1: Connect to Wallet π
Function 2: Get Quote and Build Transaction π±
Function 3: Sign the Transaction βοΈ
Function 4: Send Transaction to Network π
π Complete Workflow Summary
π οΈ Key Concepts for Beginners
What is XDR?
What is a Quote?
What is Signing?
π¨ Security Best Practices
β
DO:
β DON'T:
π§ Common Troubleshooting
Problem: "Freighter not found"
Problem: "403 Forbidden" error
Problem: "Insufficient liquidity"
Problem: Transaction fails
π Next Steps
π Additional Resources
π‘ Pro Tips
Last updated