Example for a different (easy) crypto with Generalized Accounts and Spending Limit (Sophia Smart Contract)


i’d be interested in an example for a Sophia Smart Contract that checks the input data for its correctness. Does the Contract connected to the account only answers with true and false or is there some sort of additional output? True, if the input data got verified, fase if not, if true, a transaction gets triggered (as an example).

If so, how can the contract check for spending limits (the example mentioned here https://youtu.be/Co15shs-Xq4 ).

Hope it’s clear what i’m looking for i’ve difficulties to formulate my wish here :slight_smile: