> For the complete documentation index, see [llms.txt](https://docs.henjin.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.henjin.xyz/henjinai-protocol/hooks-v4/what-is-a-v4-hook.md).

# What is a v4 hook ?

A v4 hook is a concept introduced in Henjin v4, allowing for greater flexibility and customization within the decentralized exchange (DEX). Hooks in Henjin v4 are essentially plugins or customizable smart contract functions added to the core Henjin protocol. These hooks enable developers to extend and modify the behavior of Henjin v4 pools and trading operations, introducing new features or optimizing existing ones.
