Research Article
IoT-Based Autonomous Pay-As-You-Go Payment System with the Contract Wallet
Input: usage amount | Output: none | (1) | if a transaction issuer in the IoT registration list then | (2) | Run the function Calculation in the control contract tied to the issuer EOA | (3) | if determine if the value obtained by function Calculation is greater than the value of deposit then | (4) | Transfer assets for the value obtained from the calculation to the company EOA, which is linked to the issuer EOA | (5) | Emit the event | (6) | else | (7) | Run the function Operation in the control contract | (8) | end if | (9) | Error handling | (10) | end if |
|