Hook
(Added by the [Hooks amendment][].)
A Hook
object describes a smart contract, which can be triggered by a transaction to perform predefined operations. The operations are defined by the Hook
creator and can interact with the ledger and transactions.
Example JSON
Fields
A Hook
object has the following fields:
Hook Fields
The following fields are used in the hook object:
Hook ID Format
The ID of a Hook
object is the [SHA-512Half][] of the following values, concatenated in order:
The Hook space key (
0x0048
)The AccountID of the sender of the [SetHook transaction][] that created the
Hook
object
Last updated