CoW Hooks is a powerful feature of CoW Protocol that enables users to execute arbitrary on-chain actions before and after their trades. This guide introduces CoW Hooks, explains the CoW Hook Store, and provides detailed integration instructions for developers.
CoW Hooks allow users to pair any Ethereum action (or set of actions) with an order on CoW Protocol. This feature extends the intent framework, enabling not just swaps but also preparation and post-processing of trades.
CoW Hooks are available on all networks where CoW Protocol operates:
For the most up-to-date list, check the official documentation.
A hook is defined by three fields: