This guide covers setting up your development environment for testing and integrating XentFi APIs.Documentation Index
Fetch the complete documentation index at: https://docs.xentfi.com/llms.txt
Use this file to discover all available pages before exploring further.
Test Networks
XentFi provides test networks for all supported blockchains to help you develop and test without using real funds.Available Testnets
Development vs Production Comparison
| Aspect | Development | Production |
|---|---|---|
| Network | Testnet (Sepolia, Mumbai, etc.) | Mainnet |
| API Keys | Sandbox keys | Production keys |
| Funds | Faucet tokens (free) | Real cryptocurrency |
| Transaction Cost | Free (testnet gas) | Real gas fees |
| Rate Limits | Higher limits | Standard limits |
| Monitoring | Optional | Required |
| Webhooks | Use ngrok for local testing | Production endpoints |
Environment Setup
1. Get Sandbox API Keys
Log into Dashboard
Go to dashboard.xentfi.com
2. Configure Environment Variables
Create a.env file in your project:
3. Install SDK
4. Initialize Client
Local Development with Testnet
Getting Test Tokens
Webhook Testing with ngrok
For local webhook development, use ngrok to expose your local server:Sample Development Workflow
Testing Checklist
Before moving to production, ensure you’ve tested:- API key authentication works
- Master wallet creation succeeds
- Deposit address generation works
- Payment link creation and access
- Payment processing with test tokens
- Webhook events received and verified
- Signature verification implemented
- Error handling for all scenarios
- Rate limit handling
- Idempotency keys working correctly
- Balance checking functionality
Common Development Issues
Insufficient testnet funds
Insufficient testnet funds
Solution: Request more tokens from the faucet. Some faucets have daily limits.
Webhook not received
Webhook not received
Solution:
- Verify ngrok is running
- Check webhook URL is accessible
- Verify signature verification
Transaction not confirming
Transaction not confirming
Solution:
- Testnet may be congested
- Increase gas limit
- Wait and retry
Rate limit hit during testing
Rate limit hit during testing
Solution:
- Sandbox has higher limits
- Implement delays between requests
- Contact support for temporary increase
Migrating to Production
Pre-Migration Checklist
- All tests pass on testnet
- Error handling implemented
- Rate limit handling in place
- Webhook signature verification working
- Idempotency keys implemented
- Monitoring and alerting configured
- Security review completed
- Backup and recovery procedures ready
Support During Development
- 📧 Developer Support: dev@xentfi.com
- 💬 Discord: #dev channel
- 📚 API Reference: docs.xentfi.com/api-reference
- 🐛 Report Issues: GitHub Issues
Next Steps
Authentication
Learn about API security best practices
Rate Limits
Understand API rate limiting
Products
Explore all XentFi products
API Reference
Browse complete API documentation

