1. Executive Summary

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.

2. Introduction to CoW Hooks

2.1 What are CoW Hooks?

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.

2.2 Benefits and Use Cases

2.3 Supported Networks

CoW Hooks are available on all networks where CoW Protocol operates:

For the most up-to-date list, check the official documentation.

3. Understanding CoW Hooks

3.1 Anatomy of a Hook

A hook is defined by three fields:

  1. target: The address of the contract to be called