cancel
Showing results for 
Search instead for 
Did you mean: 

Set Up Mobile and Email Notifications for Your WAVES Wallet

The WAVES Blockchain Platform is a new type of internet based communications infrastructure, currently mostly known as being in Top 50 Cryptocurrencies , the platform actually offers a lot more. Its strength is in its ability to easily create your own token and cost effectively add data to its Blockchain Database. This creates a whole new era of opportunity to create new workflow efficiencies and monetisation possibilities. With this this in mind that I believe Microsoft Flow and WAVES Blockchain Platform provide a perfect match for business owners to cost effectively implement Blockchain Solutions. In this article and future series I will be exploring the opportunities combination of Microsoft Flow and WAVES Blockchain Platform offer.

WAVES BLOCKCHAIN CONNECTOR:
Unfortunately WAVES Blockchain Platform does not have native connector in Microsoft Flow. Fortunately I have created one for you to download and upload as a Custom Connector. You can download the file here  and upload it under the Custom Connector "OpenAPI file":


Custom Connector WAVES.JPG

  
If you require further instructions on importing custom connector my previous step by step article on setting up WAVES connector maybe useful, this can be found here. Please note the previous article connector is based on the Public Postman Collection file made available by WAVES, however my connector above includes an additional feature being retrival of Asset (custom token) Details which will be required in the workflow steps in this article and most likely future articles hence please use my custom connector referenced in this article.

The workflow logic is as follows:

Trigger: Recurr Every 3 Minutes (the most my subscription allows)

Capture.JPG

Action: Get Transactions by Address (input your wallet address here) as well as how many recent transactions to retrieve. In this case I used 50 (check last 50 transactions every three minutes). 
Capture.JPG

Action: Parse the Data (this is required so we can access the Dynamic Content for future steps)
parsecap.JPG
You can copy the JSON structure from this file

This is where is get a little complicated the process is, so I have done a short video explaining these steps. Essentially the process is:



  1. WAVES has different data structures based on various functionalities (see example list here) in order to identify the dynamic content in each transaction type we need to inform Microsoft Flow of the JSON Schema for each transaction type. Therefore we need to identify the type of each transaction in the array of transaction items.
  2. Operate Switch Function based on the transaction type (i.e. number 3,4,7,10 or 11) Parse the JSON, the Schema for the transaction types can be found here.  
  3. In order to keep track of transactions already been processed I have utilised Google Sheets (at the moment there is an issue with MS Excel "locking up"  so using Google Sheets instead ) to keep record of some unique information about each transaction such as signature or proofs which is unique (or likely be unique in array of transactions to my wallet). Therefore next action is get rows within the Google Sheet.
  4. In order to be time effective I utilsied the filter array function to identify if the unique field (signature, proof) is listed in my Google Sheet. If it is the row will appear if not then the function will result in null.
  5. Therefore created condition, if filter array is null (this means the transaction was not recorded previously) which will then proceed to send the mobile notification & update the google sheets. 
  6. Unfortunately there is no Asset ID for WAVES, therefore before we need to include a condition before the mobile/email notification to check if the Asset ID is null or not. If it is null this means the Token is WAVES and can proceed with this, if the Asset ID is not null we can look up the Asset Details using the additional feature I have included in the above linked custom connector. Using the Asset Details we can include important details of the Asset (such as name, issuer, reissuable) in the mobile/email notificaiton.
  7. Once complete we need to update the "Apply to Item" to bypass the first array of the JSON Schema to "
    body('Parse_JSON')[0] "  See This Discussion Thread for More. Special Thanks to @Pieter_Veenstra for resolving this issue for me!

To help explain the above further I have prepared the following video:

 



 

A high level overview of the workflow logic is:

flow.JPG
 

This flow forms the basis for new opportunities such as:

1) Integration into Business Systems via the connectors with Microsoft Flow (when receive transfer -> input Wallet Address & Amount into Insightly (the popular CRM tool))
2) Utilise as a public broadcasting system
3)  No cost, no charge back (for the seller) - Electronic Funds Transfer System
4) New monetisation opportunities on communication (e.g. pay to send messages to directly to individual  or pay to broadcast your message to a particular channel or account). 
5) Anonymous whistleblowing 

 
If you would like a copy of this logic flow for your account, you can download it here and import it:

import.JPG

Meet Our Blog Authors
  • Co-founder of https://plumsail.com, Office 365 and SharePoint expert. Passionate about design and development of easy to use, convenient and flexible products.
  • Microsoft Business Apps MVP. Owner of ThriveFast, an Office 365 consulting company.
  • 7x Microsoft Business Solutions MVP (CRM)
  • Solution Architect with Slalom, and organizer of the Boston Office 365 User Group, and long term SharePoint/Office 365 veteren. Find more at http://www.davidlozzi.com. Follow @DavidLozzi
  • I'm keen in MS technologies, SharePoint, Office 365 and development for them
  • Michelle is an Office 365 solution architect in Twin Cities, MN. She has been delivering business collaboration solutions for years with her focus on SharePoint and Office 365. Michelle is a recent board member of the Minnesota Office 365 User Group and has been a member of the SharePoint community since 2009. She is a frequent speaker at MNSPUG and SharePoint Saturday and co-chaired the Legal SharePoint User Group for 4 years. Her most frequent projects have involved rolling out a large deployment of Office 365, SharePoint Online intranet, build of a "CHAMPS" Office 365 user adoption program and most recently, SharePoint On-Premise to Online Migration. Michelle is very excited about cloud technology as it is shifting her IT Pro focus to collaboration strategy and technical adoption.
  • I'm a Microsoft Office Servers and Services MVP with a special interest in SharePoint, Office 365, Microsoft Flow, Microsoft Teams and PowerApps. I work at Triad Group Plc ( https://triad.co.uk)
>