Collect Call
Hook Design Philosophy
Every party affected by a transaction should have the opportunity to have their hooks executed.
When hooks are not Strongly Executed it is unfair to bill the originating transaction for their execution. For example an OfferCreate which crosses 20 offers on the DEX should not be forced to pay for the execution of each of those account’s Hooks.
Therefore during typical Weak execution the fee for the execution is collected from the owner of the Hook. To enable this:
- The Hook owner must have set
asfTshCollect
on their Xahau account using the AccountSet transaction. - The Hook owner must have set
hsfCollect
on the specific Hook they wish to be called as a Weak TSH.
Fee Responsibility Table
Section titled “Fee Responsibility Table”Type of Weak Execution | Fee |
---|---|
Again As Weak | Free (already paid by the Strong Execution). |
Callback | Free (already paid during Emission). |
Weak Transactional Stakeholder | Paid for by your account (not by the originating transaction) if and only if both your account is marked with asfTshCollect flag and your Hook is marked with the hsfCollect flag. |