> ## 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.

# Hooks & Workflows

> Build complex cross-chain workflows with Hooks

Hooks enable arbitrary contract calls after cross-chain trades. This unlocks powerful workflows: move assets across chains, swap,
and deposit into a protocol — all in a single user action.

## What Are Hooks?

Hooks are contract calls that execute after your cross-chain swap completes. They let you trigger actions like deposits, staking,
or liquidity provision on the destination chain without requiring users to manage multiple transactions.

## DLN Hooks

DLN hooks are available for integrations using the deBridge Liquidity Network API.

* **Hooks**: Execute after cross-chain swaps — deposit, stake, add liquidity
* **Gas payment**: User pays gas on source chain
* **Caller identity**: DLN contract (not user's EOA) — target protocol must support beneficiary parameters like `onBehalfOf`

### DLN Hook Options

**EVM chains** support configurable hook behavior:

* **`isNonAtomic`** (true/false): When `false` (atomic), the hook executes within the same transaction as order fulfillment. When
  `true` (non-atomic), the hook executes in a separate transaction.
* **`isSuccessRequired`** (true/false): When `true`, hook failure prevents the order from being filled. When `false`, the order
  completes even if the hook fails.

**Solana** only supports non-atomic success-required hooks. The hook executes as serialized instructions after order fulfillment.

[DLN Hooks Guide](/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks) |
[EVM Hook Anatomy](/dln-details/protocol-specs/evm-chains-hook-anatomy)

## Next Steps

* [DLN Hooks Guide](/dln-details/integration-guidelines/order-creation/hooks/integrating-hooks)
* [DLN EVM Hook Anatomy](/dln-details/protocol-specs/evm-chains-hook-anatomy)
