Key Features
- Cross-chain and same-chain swaps: One API for both — no separate integrations needed
- Near-instant settlement: Trades complete in seconds, not minutes
- 0-TVL architecture: No liquidity pools to hack
- Guaranteed rates: The quoted rate is the rate you get
- Zero slippage: No MEV, no front-running
- Native tokens: Receive real assets, not wrapped versions
- Hooks support: Execute contract calls with trades (PostHooks)
Same-Chain Swaps
DLN isn’t just for cross-chain — it also powers same-chain token swaps on both EVM chains and Solana through the same API. The DLN API routes through multiple DeFi aggregators, simulates execution, and returns ready-to-sign transactions — so your integration stays simple while users get competitive rates. Key capabilities:- Adaptive slippage: Instead of a static slippage value, DLN dynamically calculates a minimum reasonable bound based on real-time conditions and route simulation — protecting users in volatile markets
- Aggregator comparison: The API queries multiple aggregators and returns the comparison in the response, giving integrators full transparency into the routing decision
- Execution-ready transactions: The
/v1.0/chain/transactionendpoint returns a fully constructed transaction (targetingDeBridgeRouteron EVM, or a serializedVersionedTransactionon Solana) — no manual route building required - Built-in monetization: Affiliate fees work identically
to cross-chain swaps — just include
affiliateFeePercentandaffiliateFeeRecipientin your requests
/v1.0/chain/estimation for a quote (just for quotes – user’s address is
unknown), then /v1.0/chain/transaction once the sender is known. Sign and submit within ~30 seconds for best execution.
Same-Chain Swaps Overview
High-level overview of how same-chain swaps work
Engineering Guide
Endpoints, code examples, and production checklist
Foundational Role
DLN sits at the top of deBridge’s protocol stack:- deBridge Messaging Protocol (DMP) is foundational for DLN — providing the cross-chain messaging layer
- DLN — providing the order fulfillment and solver network
How to Integrate
DLN offers three integration paths depending on how much control you need:- Widget: Drop-in UI component — the fastest way to add cross-chain swaps to your app
- API: Full programmatic control over order creation, tracking, and hooks — best for custom UIs and backend integrations
- Smart contracts: Direct on-chain integration for specialized use cases. Note that accurate pricing depends on significant simulation infrastructure that the API already provides, so smart contract integration is rarely the right choice
Accurate pricing for solver profitability and competitive user rates requires significant simulation infrastructure. The
deBridge API provides this. Smart contract integration is available for very special cases but is not the primary integration
path.
Architecture
Integration Options
Widget
Drop-in UI component
API
Full programmatic control
Smart Contracts
On-chain integration (not recommended for most use cases)
Universal Swaps
Universal swaps - same-chain and cross-chain.
Documentation Sections
- Introduction: Core concepts
- Protocol Overview: How DLN works
- API Integration: Build with the API
- Hooks: Add contract calls
- Tracking: Track orders