Firewall
Watch an attack get blocked.
An agent with real money reads a web page with a hidden instruction to send everything away. Every payment is simulated and checked before it is signed. Here is what happens, step by step.
Runs on a local copy of the chain
This scenario moves real test money, so it runs only on an engine in test mode. Start one with the command below and open this page again.
cd engine && npm run testmodeThe rules
Budgets and the largest single payment are checked by the module on chain. The full-balance payment breaks them.
The firewall
Every payment is simulated before it is signed. A drain, an unknown contract or a payee planted in hidden text is refused.
The watchdog
If something still looks wrong after a payment, the watchdog can freeze the account and tells the owner why.