Get Transaction Detail By Username - Steemit SDS API.

in Steem Devlast year (edited)

IMG-20230528-WA0003.jpg

Hello Steemians!

How are you all, I hope you will be good, by the grace of God, I am also well. Today I am here with new development on steemwatcher.com that I have completed today. In the previous development, i have develop a tool for getting transection history by MemoID. The aim of this tool is too catch those users that get reward by using more than one account. many cases have been resolved by using this tool.

In this development phase, I develop new transection history tool that will show the transection history of accounts by username. This tool is live on sw portal. some user have multiple links with ither steemit user so it is necessary to make this tool for inspection these types of cases.

IMG-20230528-WA0002.jpg

Transaction History by Username

The user interface of both transection tool is same. i just change the SDS Api from tye backend. in the above screenshort i get the transection of my account by entering the steemit username.

SDS API:

https://sds1.steemworld.org/transfers_api/getTransfersByTypeFrom/transfer

Screenshot_20230528_181301_Chrome~2.jpg

I have use the PhP, JavaScript on the backend. Html and css is use to make the front end. to make the mobile responsive, it is the main task, so i manage it by using media queries. Ajax is used to avoid the page reloading everytime. ajax help to make the single page application. i like to use this languages in our project. the core code is sharing with you for knowledge. developers can read and understand it easily. for general user, it is bit difficult to understand.

Core things in Code for this tool development.

$(document).ready(function() {
            $("form").submit(function(event) {
                event.preventDefault(); // prevent the form from submitting
                var Username = $("#Username").val(); 
                                
                $.ajax({
    url: "get1.php",
    method: "POST",
    data: { Username: Username },
    success: function(data) {
        var jsonData = JSON.parse(data);
        var dataa = jsonData.result.rows;
            var tableRows = "";
        
        for (var i = 0; i < dataa.length; i++) {
            var date = new Date(dataa[i][0] * 1000); // Convert the timestamp to milliseconds and create a Date object
            var formattedDate = date.toLocaleString(); // Format the date as a string
            tableRows += "<tr><td>" + formattedDate + "</td><td>" + dataa[i][1] + "</td><td>" + dataa[i][2] + "</td><td>" + dataa[i][3] + "</td><td>" + dataa[i][4] + "</td><td>" + dataa[i][5] + "</td></tr>";
        }
        $("#transfersTable").html(tableRows);
    }
});

            });
        });

This tool is base on SDS API. We are thankful to @steemchiller who provide such a amazing api.

BoC- line.png

If anyone have any suggestion, then must share with us in the comment section. we will focus on it and try to apply it if it will suitable.

Here is the Link of official Steemwatcher.
www.steemwatcher.com

Please cast witness vote to @bangla.Witness or set proxy to @rme.

_
Vote @bangla.witness as witness
Set Proxy @rme as proxy

Special Thanks.

Cc: @rme
Cc: @hungry-griffin
Cc: @steemcurator01

Thanks for giving your precious time to my post.
Follow | Upvote | Share | Comments
Follow me on Instagram.
Instagram

🆃🅷🅰️🅽🅺 🆈🅾️🆄

Sort:  

This post has been featured in the latest edition of Steem News...

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.029
BTC 57839.82
ETH 3132.70
USDT 1.00
SBD 2.43