Research Article

IoT-Based Autonomous Pay-As-You-Go Payment System with the Contract Wallet

Algorithm 4

Calculation.
ā€‰Input: usage amount
ā€‰Output: charge value
(1)Calculate the charge value from usage amount
(2)return value