Hook Definition
(Added by the [Hooks amendment][].)
A HookDefinition
object describes a hook, which is a piece of code that is executed in response to certain transactions. The hook can modify the transaction, emit new transactions, or perform other actions.
Example JSON
Fields
A HookDefinition
object has the following fields:
Hook Definition ID Format
The ID of a HookDefinition
object is the [SHA-512Half][] of the following values, concatenated in order:
The HookDefinition space key (
0x0044
)The
HookHash
of the hook
Last updated