Payments
Payment Protocols Overview
ErgoPay and the web dApp connectors that Nautilus uses serve similar purposes but have key differences. ErgoPay can connect any wallet with any dApp, while a web dApp connector is limited to web extension wallets and website dApps. It can only connect processes living in the same web browser.
ErgoPay
✅ Advantages
- Universal compatibility
- Can connect any wallet with any dApp
- Cross-platform support
- Mobile-friendly
- No browser restrictions
🔧 Use Cases
- Mobile wallet integration
- Cross-platform dApps
- QR code-based transactions
- Offline wallet support
Web dApp Connectors
✅ Advantages
- Seamless web integration
- Real-time communication
- Browser-native experience
- Automatic wallet detection
- Direct API access
⚠️ Limitations
- Limited to web browsers
- Extension wallets only
- Same-origin restrictions
- No mobile support
Development Considerations
As a dApp developer, you may not know which type of wallet application will connect to your dApp. Therefore, a part of your logic must run on a server that can be accessed by user's wallet applications.
Backend Requirements
- Server-side logic for wallet communication
- API endpoints for transaction processing
- Secure authentication mechanisms
- Cross-platform compatibility
Backend Flexibility
For a website dApp, this means that some of your code needs to live on your backend. This doesn't necessarily complicate things. In fact, on the backend, you aren't restricted to using JavaScript or its derivatives.
Language Options
- Python (Flask, Django, FastAPI)
- Node.js (Express, Koa)
- Java (Spring Boot)
- Go (Gin, Echo)
- Rust (Actix, Rocket)
- PHP (Laravel, Symfony)
Framework Benefits
- Choose the best tool for your needs
- Leverage existing expertise
- Better performance optimization
- Enhanced security features
- Scalability options
- Integration flexibility
💡 Key Insight
You are free to choose the language and framework that best suits your needs. This flexibility allows you to build robust, scalable payment solutions that integrate seamlessly with the Ergo ecosystem.
Payment Protocols
ErgoPay Protocol (EIP-20)
- Mobile wallet integration
- QR code-based transactions
- Cross-platform compatibility
- Offline wallet support
Payment Request URI (EIP-25)
- Standard payment request format
- URI-based payment initiation
- Multi-asset support
- Parameterized transactions