BS Update : Added ROBOT for transaction checking automatically
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
important link
- about bs
- consultation with country representatives
- BS update 1
- BS update 2
- BS update 3
- BS update 4
- BS update 5
- BS update 6
- BS update 7
Special thank
- PromoSteem Sponsor :
steemcurator01 , booming, @stephenkendal, @siz-official, @around-theworld - PromoSteem Team :
@arie.steem @ponpase @pojan - Country Representatives
@anroja @ernaerningsih @nazarul @radjasalman @heriadi
Good work, thanks for update your project !
u r welcome bro
Congratulations...!!! You Got Upvote 100 %
By: PromoSteem Community
50100200300400500
10002000300040005000
10000