Let me try to specify my question with an example:
Consider that there are two accounts(AccountA
and AccountB
), and AccountA
wants to send some ether to AccountB
when a specific condition is met(i.e. if balance of AccountA
is greater than 100).
If i were try to implement this case with centralized way, i would do following:
AccountA
accepts an agreement(above condition)- When
AccountB
requests to receive ether(based on agreement), centralized app checks condition and if condition is true the app gives ether toAccountB
(withoutAccountA
's permission).
So my question:
Can i implement above case via smart contracts
?
If i can, how?