BS Update : Added ROBOT for transaction checking automatically

in Steem Marketing3 years ago

What is BS ?

BS ( Bank STEEM ) is a web-based swap application that I plan to develop in the near future. where later in this application, steemit users from Indonesia can easily buy steem or SBD with rupiah, and vice versa.

What is update today ?

after a week I just did an update for BS. this time I added a program to check STEEM and SBD delivery transactions to the @sogata account. when someone makes a transaction from STEEM to IDR or from SBD to IDR. then transfer to your sogata account, our program will check automatically and change the transaction status from pending to processing.

How to transaction from IDR to STEEM or SBD?

we have not made a program to check automatically. we check manually before processing the transaction.

why admin page only in local?

we deliberately do not host for security reasons. Because if in local no one can access except the admin only one.

Can we get the code from this application?

for the admin part I'm not sharing the code on github, I'm just giving a little code snippet. this is for security. for the code, you can see below.

var db=firebase.firestore().collection("/transactions");

    db.get().then(snap=>{
      snap.docs.forEach(s=>{
        if(s.data().status==='pending'){

          if(s.data().kind.split('-')[0]==='STEEM'|| s.data().kind.split('-')[0]==='SBD'){
            var memo=s.data().kind.split('-')[0]+'-'+s.data().uid;
            fetch('https://sds1.steemworld.org/transfers_api/getTransfers/%7B%22type%22:%22transfer%22,%22orderBy%22:%22time%22,%22orderDir%22:%22DESC%22,%22to%22:%22sogata%22,%22memo%22:%22'+memo+'%22%7D/250/0')
            .then(response=>response.json())
            .then((data)=>{
              if(data.result.rows.length>0){
               this.process(s.id)
              }
              
             
            })
          }else{
            // bank CHECK
          }

        }
      })
    })

Proof of Work

Screen Shot 2021-07-14 at 23.29.19.png

important link

Special thank

kind Regards

@sogata

Sort:  
 3 years ago 

Good work, thanks for update your project !

 3 years ago 

u r welcome bro

Congratulations...!!! You Got Upvote 100 %
By: PromoSteem Community

Alternative links delegates to @promosteem.com
50100200300400500
10002000300040005000
10000

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.029
BTC 62613.64
ETH 2438.01
USDT 1.00
SBD 2.67