IEEE/ICACT20210248 Slide.19        [Big Slide]       [YouTube] Oral Presentation
The next pre-QnA is about "What is example code of the LwTx Vending Machine Service?". The following code indicates simple vending machine operation using node js. rpcfunction.js has include function via api on the LwTx client. rpcfunction.js lines 4 through 14 represent a function for transferring PTCs. The amount paid to the address of the recipient is transferred. This code has no exception handling, but only simple remittance processing is implemented. app.js is a brief description of the vending machine server code. From line 22, when an event occurs, the pay_pyongtaekcoin() function is executed and a notification message is output if it is settled normally.

[Go to Next Slide]
Select Voice: