A comprehensive demo application showcasing how to use the Etherfuse Ramp API for onramp and offramp. This application demonstrates the complete workflow from customer onboarding to order creation and management.
- Add your API key, to get started. It is stored in temp session storage.
- Generate Onboarding URLs: Create secure onboarding URLs for customers
- KYC Integration: Redirect customers to complete Know Your Customer (KYC) verification
- Wallet Connection: Allow customers to connect their cryptocurrency wallets
- Bank Account Linking: Enable customers to link their bank accounts
- Multi-Blockchain Support: Support for Stellar, Solana, Base, and Polygon networks
- Create Orders: Generate both onramp (fiat to crypto) and offramp (crypto to fiat) orders
- Order Lookup: Retrieve detailed information about specific orders by ID
- Order Status Tracking: Monitor order progression and status updates
- Optional Parameters: Include memos and payer account IDs
- Create Webhooks: Set up webhook endpoints to receive real-time notifications
- Event Types: Support for
bank_account_updated,customer_updated, andorder_updatedevents - Webhook Testing: Integration with services like webhook.site for testing
- Webhook Management: View, manage, and delete existing webhooks
- Real-time Updates: Receive asynchronous notifications about order status changes
- A valid Etherfuse API key
- Modern web browser with ES6 support
-
Clone the repository
git clone <repository-url> cd ramp-api-example
-
Install dependencies
npm install
-
Start the development server
npm start
-
Open your browser Navigate to
http://localhost:3000(or the port shown in your terminal)
- Enter your API Key: Input your Etherfuse API key to begin
- Navigate to Onboarding: Use the sidebar to access the onboarding section
- Generate Onboarding URL: Create a URL for customer onboarding
- Set up Webhooks: Configure webhooks to receive order updates
- Create Orders: Generate onramp or offramp orders
- Monitor Progress: Use the lookup functionality to track order status
POST /onboarding-url- Generate customer onboarding URLs
POST /order- Create new ordersGET /order/{orderId}- Retrieve order detailsPOST /orders- List existing orders
POST /webhook- Create webhook endpointsPOST /webhooks- List existing webhooksDELETE /webhooks/{webhookId}- Remove webhooks
POST /wallets- List customer walletsPOST /customers- List customer information
- Stellar - Fast, low-cost transactions
- Solana - High-performance blockchain
- Base - Ethereum L2 solution
- Polygon - Ethereum scaling solution
- Onramp: Fiat currency to cryptocurrency
- Offramp: Cryptocurrency to fiat currency
- bank_account_updated: Bank account status changes
- customer_updated: Customer information updates
- order_updated: Order status and progress updates
- API Integration: Learn how to integrate Etherfuse APIs into your applications
- Webhook Implementation: Understand webhook setup and handling
- Error Handling: See best practices for API error management
- State Management: Learn client-side state persistence techniques
- Documentation: Visit docs.etherfuse.com for detailed API documentation
- Support: Contact Etherfuse support for technical assistance
- Community: Join the Etherfuse community for discussions and support
This is a demonstration application and should not be used for production customer workflows. It's designed to showcase API functionality and integration patterns.
- Never expose API keys in client-side code in production
- Use server-side proxy for production implementations
- Implement proper authentication and authorization
- Validate all inputs on the server side
- Be aware of API rate limits when testing
- Implement proper retry logic for production use
- Monitor API usage and implement appropriate caching
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
For technical support or questions about the Etherfuse API:
- Documentation: docs.etherfuse.com
- Website: etherfuse.com
- Contact: Reach out through the official Etherfuse channels
Disclaimer: This is a demo application provided "as is" for demonstration purposes. It should not be used for production customer workflows. Always implement proper security measures and validation in production environments.