@startuml title "P2U Wallet API" boundary User_Page as up participant Frontend_Server as fe participant Backend_Server as be autonumber note over up (1) GetBalance end note up->fe: MyBalance of MyPage or Checkout Page note over fe request { "TokenType": "MSQXP" } end note fe->be: /p2u-balance-get note over be Get Current Balance for Tokens end note be->fe: current accout balance note over fe response {"Balance": "13l4343000000000", "UnitPoint": "12, "DecimalPoint":"2" "TokenType": "MSQXP" } !! Balance should be string because doesn't have bigNumber Format end note fe->up: show account balance note over up: note over up: note over up (2) Token Transfer end note up->fe: Checkout Page note over fe request { "TokenType": "MSQXP" "FromAddr": "13l4343000000000", "ToAddr": "13l4343000000000", "TransactionAmt":"12340331000" } end note fe->be: /p2u-transfer note over be Transger Tokens end note be->fe: Deduced accout balance note over fe response {"Balance": "13l4343000000000", "UnitPoint": "12, "DecimalPoint":"2" "TokenType": "MSQXP" } end note fe->up: show transger result and deduced balance @enduml