I am retrieving data from mysql and looping through each row. up till here everything executes in the order I want it to. However in the same loop I need to call a smart contract function in order to verifyHash and return a value of true or false and then if true store data in an array of objects. However the call im using is asynchronous so it doesn't let it execute first before moving on, so its a complete confusion.
I would like to call the same method synchronously inside the for loop.
Thanks in advance.