> ## Documentation Index
> Fetch the complete documentation index at: https://docs.debridge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# deBridge Liquidity Network

> Foundational cross-chain trading infrastructure

The deBridge Liquidity Network (DLN) is the foundational trading infrastructure powering deBridge. It provides fast,
capital-efficient **cross-chain and same-chain swaps** with guaranteed rates and no slippage.

## 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/transaction` endpoint returns a fully constructed transaction (targeting
  `DeBridgeRouter` on EVM, or a serialized `VersionedTransaction` on Solana) — no manual route building required
* **Built-in monetization**: [Affiliate fees](/dln-details/affiliates/affiliate-fees#same-chain-affiliate-fees) work identically
  to cross-chain swaps — just include `affiliateFeePercent` and `affiliateFeeRecipient` in your requests

The integration flow is intentionally compact: call `/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.

<CardGroup cols={2}>
  <Card title="Same-Chain Swaps Overview" icon="arrows-repeat" href="/dln-details/integration-guidelines/same-chain-swaps/executive">
    High-level overview of how same-chain swaps work
  </Card>

  <Card title="Engineering Guide" icon="code" href="/dln-details/integration-guidelines/same-chain-swaps/engineer">
    Endpoints, code examples, and production checklist
  </Card>
</CardGroup>

## Foundational Role

DLN sits at the top of deBridge's protocol stack:

1. **deBridge Messaging Protocol (DMP)** is foundational for DLN — providing the cross-chain messaging layer
2. **DLN** — providing the order fulfillment and solver network

## How to Integrate

DLN offers three integration paths depending on how much control you need:

* **[Widget](/dln-details/widget/deBridge-widget)**: Drop-in UI component — the fastest way to add cross-chain swaps to your app
* **[API](/dln-details/integration-guidelines/order-creation/creating-order/quick-start)**: Full programmatic control over order
  creation, tracking, and hooks — best for custom UIs and backend integrations
* **[Smart contracts](/dln-details/integration-guidelines/smart-contracts/introduction)**: 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

Most teams should start with the **Widget** (for speed) or the **API** (for flexibility).

<Note>
  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.
</Note>

## Architecture

```mermaid theme={null}
graph LR
    A[User] -->|Create order| B[DLN Contract]
    B -->|Emit event| C[Solver Network]
    C -->|Fulfill| D[Destination Chain]
    D -->|Tokens to user| E[User]
    C -->|Claim| B
```

## Integration Options

<Columns cols={2}>
  <Card title="Widget" icon="window" href="/dln-details/widget/deBridge-widget">
    Drop-in UI component
  </Card>

  <Card title="API" icon="code" href="/dln-details/integration-guidelines/order-creation/creating-order/quick-start">
    Full programmatic control
  </Card>

  <Card title="Smart Contracts" icon="file-contract" href="/dln-details/integration-guidelines/smart-contracts/introduction">
    On-chain integration (not recommended for most use cases)
  </Card>

  <Card title="Universal Swaps" icon="arrows-repeat" href="/dln-details/integration-guidelines/order-creation/authentication">
    Universal swaps - same-chain and cross-chain.
  </Card>
</Columns>

## Documentation Sections

* **[Introduction](/dln-details/overview/introduction)**: Core concepts
* **[Protocol Overview](/dln-details/overview/protocol-overview)**: How DLN works
* **[API Integration](/dln-details/integration-guidelines/order-creation/creating-order/creating-order)**: Build with the API
* **[Hooks](/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks)**: Add contract calls
* **[Tracking](/dln-details/integration-guidelines/order-creation/order-tracking-api/tracking-orders)**: Track orders

## Get Started

[Go to DLN Documentation](/dln-details/overview/introduction)
