|
The following flow chart shows the cryptocurrency-based vending machine service algorithm. The biggest difference from the existing vending machine service algorithm is that a module for cryptocurrency transactions similar to card transactions is added for cryptocurrency transactions, and the exchange API to synchronize the market price must be included inside the vending machine due to the nature of cryptocurrency that the market price changes from time to time. to be. First, check the buyer's wallet address with a QR code through a QR code reader before the transaction.
After that, a script is created in the vending machine, a transaction that transfers money to the seller's wallet address, and a smart contract that operates when the transaction is not performed normally and broadcasts it to the blockchain network.
If it is normally broadcast on the blockchain network, the product is delivered to the buyer.
|