Appearance
Examples
These examples show complete Hook workflows that build on the API reference.
Worked examples
- Payment filter — inspect an incoming payment and decide whether to accept it.
- State counter — read, increment, and write hook state.
- Emitted transaction — reserve, prepare, and emit a transaction.
- Foreign state — read another account's hook state.
- Memo routing — branch behavior based on memos and parameters.
Recommended reading
Start with Overview, then skim the relevant API group before trying an example.