cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up WAVES Blockchain Custom Connector

The WAVES Blockchain Platform enables users to create their own tradeable token fast & cheap. WAVES functionality is found inside the WAVES Wallet for users convenience and ease of access.

Fortunately for us WAVES have also put in all the hard work in creating a comprehensive API and Postman Collection for us so it will be really easy for us to create a connector in Microsoft Flow thus enabling us to perform workflow automations from our very own cryptocurrency.

  1.  Go to https://documenter.getpostman.com/view/2733299/waves-full-node/RVnWiKZJ 
  2.  Click "Run In Postman"
    Waves Blog.png

  3. Which will launch the "WAVES Full Node" Collection in the Postman ProgramOn the left hand side, open the menu option for the "WAVES Full Node" Collection.

    Waves Blog.png
  4. Export to Version 1
    Waves Blog.png
  5.  Log into your Microsoft Flow Account and Click on Settings Cog Wheel Icon and select Custom Connectors:

    Waves Blog.png
  6.  Create a Custom Connector using Import from a Postman Collection
    Waves Blog.png
  7.  Input name of your choice I used "WAVES Blockchain" and find the file location of the WAVES full node Postman collection file (ensure to change the filetype to all files instead of JSON)

    Waves Blog.png
  8. Click Continue
    Waves Blog.png

  9. Optional task you can upload icon and set the background colour of the connector. I found via this link an appropriate logo of WAVES Platform that I feel suits found here  and included the background colour to be white, so added the color code "#FFFFFF"
    Waves Blog.png
  10.  Change the Host to "nodes.wavesnodes.com" which is a public node that will connect to all the end points listed in the Postman collection.
    Waves Blog.png
  11. Click on security and as long as "No authentication" is listed click on definition

    Waves Blog.png
  12. This bit is the time consuming task, the Postman Collection seems to have many duplicate Operation ID which is not allowable for Microsoft Flow as each Action must have a unique name. We therefore need to update each of the Actions which have been marked as a Red Alert for us:

    Waves Blog.png


  13.  For example the first duplicate ID is "State", so I changed it to "StateMinerDebug" as this is what this particular Action ID is referring to:
    Waves Blog.png

     







    After changing the Operation ID to a unique name the Red Alert error is now gone. It is also a good idea at the same time to update the Summary field as this is what will show up when using the Connector for your Flows.
    Waves Blog.png

  14. In actual fact it would be a good idea to go through each Action to make sure the name makes sense to you as you may prefer different names to match API end point. HINT:  If you are ever confused what name to use, review the default description and the web address to give you some ideas.

    Waves Blog.pngWaves Blog2.PNG
  15. Some errors are not due to duplication but the use of illegal characters such as ":"

    Waves Blog.pngWaves Blog2.PNG
  16. Check you have cleared all the Red Alert Errors by scrolling through the Action End Points on the left hand side and checking there is no Red Alert Symbols showing:
    Waves Blog.png

  17. Click on "Create Connector"
    Waves Blog.png
  18. Click "Test" at the bottom right to proceed to next step:
    Waves Blog.png

  19. Click on "New Connection" which details of the new connection should automatically pop up:

    Waves Blog.png
  20. Some Action steps require you to input details or an API key (if using private messages) however there are many others which you can use to simply extract data from the Public Blockchain. These ones you should be able to "Test Operation" and a green tick will appear if working.

    Waves Blog.png
    Waves Blog.png
    Waves Blog.png

  21. Then click Close (you do not need to test every API end point) to finalise.
    Waves Blog.png
  22. You should now see your WAVES Connection in the Custom Connectors.
    Waves Blog.png
  23. To confirm this is an active connection on your list of connections when building your Flows, you should be able to see it listed under Connections:

    Waves Blog.png
    Waves Blog.png
    (I am not sure why the logo doesn't appear but it does show up when building Flows)
  24. When it comes to building your Flows you should see the connection available like all the others
    Waves Blog.png

  25. You are now ready to build Blockchain Workflow Automations Smiley Surprised !

    Waves Blog.png


If the above is too many steps for you, I have even made it easier. I have created a swagger file that includes the above changes. 

I did this by clicking download on my custom connection

Waves Blog.png

The steps to quickly create your own WAVES Blockchain Connection is:

  1. Download the Swagger File HERE
  2. Create Custom Connector via OpenAPIfile
    Waves Blog.png
  3. Give the Connection a Title and Select the Swagger file recently downloaded
    Waves Blog.png
  4. Unfortunately the logo is not in the file, so you will need to complete Optional Task from Step 9 above if you want the logo.
  5.  Click Create Connector on Top Right
    Waves Blog.png
  6. The connection needs to be established so once connector has been created go back to your Custom Connections and click "+" for add connection

    Waves Blog.png
  7. Now the connector is ready to be used

    Waves Blog.pngWaves Blog.png













 

 

 

What use cases can you come up with now you can create automations from WAVES Blockchain data? 

I will be exploring use cases in upcoming articles, so stay tuned for more!

If you wish to submit your own use case please email me on davidplaut@wlas.com.au I will share it amongst the WAVES community.


David Plaut is a Chartered Accountant, Chartered Tax Advisor and National Ambassador for WAVES Blockchain in Australia. David, is a specialist in business advisory and automation for over 12 years and currently owner & operator of White Label Accounting Solutions, a boutique Accounting Practice specalising in small business advisory and  a platform for Bookkeepers to join for opportunity to offer holistic client advisory services. 

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)
>