LucenDEX API Reference
Non-custodial, deterministic routing for XRPL decentralized exchange.
Partner APIIN DEVELOPMENT
B2B integration for production workloads with authentication, rate limiting, and usage-based billing.
Key Features
- Ed25519 request signing for authentication
- Deterministic quote generation with QuoteHash binding
- Rate limits: 100-10,000 req/min based on plan
- Usage metering and billing endpoints
- System health monitoring
- SLA guarantees
Base URL (Planned)
Future Production: https://api.lucendex.com (Not yet live)
Authentication
All endpoints require Ed25519 signature with headers:
X-Partner-Id: Your partner UUIDX-Request-Id: Unique request UUID (replay protection)X-Timestamp: RFC3339 timestamp (max 60s drift)X-Signature: base64(Ed25519.Sign(canonical_request))
Public APICOMING IN M3
Open-access endpoints for market data and demo quotes without authentication.
Planned Features
- No authentication required
- Global rate limit: 100 req/min per IP
- Trading pairs with liquidity metrics
- Orderbook data
- Demo quote generation
Use Cases
Testing, exploration, and demo applications. For production workloads, use the Partner API.
Core Concepts
Quote → Sign → Submit Workflow
- Request Quote: Call
POST /partner/v1/quotewith token pair and amount - Receive QuoteHash: Backend returns deterministic route with QuoteHash
- Sign Transaction: Client wallet signs XRPL transaction with QuoteHash in memo
- Submit to XRPL: Client submits signed transaction directly to rippled (or via optional relay)
- Attribution: Indexer observes transaction on-chain, attributes to partner via QuoteHash
Non-Custodial Design
Backend never sees private keys or seed phrases. All transaction signing happens client-side in the user's wallet (GemWallet, Xumm, etc.). The QuoteHash ensures deterministic execution while maintaining full user custody.
Revenue Model
B2B usage-based billing. Partners pay monthly based on executed volume tracked via QuoteHash in XRPL transaction memos. Router fee (basis points) is included in the QuoteHash to ensure tamper-evident billing.
Getting Started
Getting Started
- Contact us to create partner account
- Receive partner UUID and Ed25519 keypair
- Integrate Partner API endpoints
- Go live with SLA coverage