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): Whenfalse(atomic), the hook executes within the same transaction as order fulfillment. Whentrue(non-atomic), the hook executes in a separate transaction.isSuccessRequired(true/false): Whentrue, hook failure prevents the order from being filled. Whenfalse, the order completes even if the hook fails.