Pre-Hooks
These are actions that execute before the swap, allowing pre-hooks to be used to “set up” an order. Some examples including:- Unstaking tokens just-in-time for trading
- Claiming an airdrop right before dumping
- Signing token approvals so that the approval and the trade itself are batched together as a single action
Post-Hooks
These are actions that execute after the swap, taking advantage of trade proceeds. Examples include:- Bridging funds to L2s
- Staking funds
Getting started
To get started with writing a CoW Hook, check out our technical documentation. You can also read more about CoW Hooks on our blog or through our tutorials — here and here.Hooks: Getting Started
Step-by-step tutorial to create your first hook via CoW Swap
Hook Store
Browse and use pre-built hooks, or publish your own
Build a Hook dApp
Develop a custom hook dApp for the CoW Swap interface
Post-Hook Examples
Swap → stake, swap → bridge, and swap → vault patterns