3.7 KiB
Xahau Launch Hooks
Savings Hook
When it comes to managing money, it is a common practice to maintain separate spending and savings accounts. Suppose you receive an income or salary to your on-ledger account several times a month. Each time you receive funds above a certain threshold you may wish to move a predefined percentage to a savings account where you will not accidentally spend them. The savings hook does exactly this.
Hook Parameters
- Account to install on
- Account to send savings to
- The percentage to send
- The threshold at which it is activated
- Whether it applies to incoming payments only, outgoing payments only or both.
xApp Features
- Display the send-to account
- Display the percentage
- Display the total amount sent
- Display the conditions of sending (threshold + incoming/outgoing payments)
- Allow the hook to be uninstalled
Firewall Hook
The ledger is a messy place full of unwanted transactions and spam. To avoid being spammed with low value transactions containing unsolicitied memos you may install a Firewall hook on your account.
Hook Parameters
- Types of transactions to allow into and out of your account (Payment, Escrow, PayChannel) etc.
- Allow a minimum number of drops for an incoming txn to be allowed.
- Allow a minimum amount to be specified for each of the trustline assets on the account as well.
- Allow any txn with a memo larger than X bytes to be blocked regardless of other rules.
xApp Features
- Display the current settings of the hook. Allow the settings to be changed.
- Allow the hook to be uninstalled.
Blocklist Hook
Filter outgoing and incoming payments against a known list of scam accounts maintained by a third party. This acts as a guard against accidentally sending to a scam, or being sent tainted funds by a scammer.
Hook Parameters
- The blocklist (account) to listen to.
xApp Features
- Number of times a transaction was blocked.
- The current blocklist (account) being listened to.
- Allow the hook to be uninstalled.
Direct Debit Hook
Allow trusted third parties to pull funds from your account up to a limit you set. For example your power company can bill you and your account can automatically pay that bill.
Hook Parameters
- One or more accounts to provide direct deposit authorization to.
- A currency and a limit for each of these.
xApp Features
- See who you've authorized.
- See how much they're authorized for.
- See how much they've drawn down this month.
- Allow authorization to be removed.
- Allow authorization limit to be changed.
- Allow additional authorizations to be created.
- Allow the hook to be uninstalled.
- Show a list of recent direct debit transactions.
High-Value Payment Hook
When sending high value transactions out of your account, require first a notification that a high valued payment will be made, followed by a time delay, followed by the high value transaction itself. This prevents accidental high value sends, adding an additional layer of security to your account.
Hook Parameters
- Select currencies for which the hook will act.
- Select the thresholds for which the hook will be triggered.
xApp Features
- See current pending outgoing high value transactions.
- State that the hook is active and for which currencies and thresholds.
- Allow the hook to be uninstalled.
- If installed, and a high value transaction is made from Xumm, it is redirected into the xApp.
- The xApp then generates a notification transaction (ttInvoke) which is sent to the hook.
- The xApp will then remind the user with an event at a later time that the transaction proper still needs to be sent.
- Sending the transaction proper again will result in successful send.