BS Update : Added ROBOT for transaction checking automatically by sogata

View this thread on steempeak.com
· @sogata ·
$6.82
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



![Screen Shot 2021-07-14 at 23.29.19.png](https://cdn.steemitimages.com/DQmW8Vd7UvPDtnF5xgPE3tACZGpJvffYgqVj9xvP7dhTzBv/Screen%20Shot%202021-07-14%20at%2023.29.19.png)

### important link 
- [about bs](https://steemit.com/hive-153176/@sogata/introducing-bs-steem-bank-buy-steem-and-sbd-easily)
- [consultation with country representatives](https://steemit.com/hive-153176/@sogata/bs-update-report-i-have-discussed-this-project-with-the-indonesian-country-representative-this-is-what-they-say)
- [BS update 1](https://steemit.com/hive-153176/@sogata/bs-update-report-i-have-discussed-this-project-with-the-indonesian-country-representative-this-is-what-they-say)
- [BS update 2](https://steemit.com/hive-153176/@sogata/bs-update-report-i-have-started-to-develop-the-main-page-for-bs)
- [BS update 3](https://steemit.com/hive-153176/@sogata/bs-update-created-login-app-authentication-with-phone-number)
- [BS update 4](https://steemit.com/hive-153176/@sogata/bs-update-added-live-price-of-steem-sbd-to-idr-and-vice-versa)
- [BS update 5](https://steemit.com/hive-153176/@sogata/bs-update-added-function-for-transaction-form)
- [BS update 6](https://steemit.com/hive-153176/@sogata/bs-update-added-history-transaction-page-finally-you-can-try-your-first-transaction-here)
- [BS update 7](https://steemit.com/hive-153176/@sogata/bs-update-added-admin-page-for-monitoring-transaction-so-far-i-get-2-transaction-in-bs)

### Special thank
- PromoSteem Sponsor :
steemcurator01 , booming, @stephenkendal, @siz-official, @around-theworld
- PromoSteem Team :
@arie.steem @ponpase @pojan
- Country Representatives
@anroja @ernaerningsih @nazarul @radjasalman @heriadi

<div class="pull-right">
kind Regards


@sogata
</div>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id92,612,726
authorsogata
permlinkbs-update-added-robot-for-transaction-checking-automatically
categoryhive-153176
json_metadata{"tags":["promo-steem","steemexlusive","steemit","steem"],"users":["sogata","stephenkendal","siz-official","around-theworld","arie.steem","ponpase","pojan","anroja","ernaerningsih","nazarul","radjasalman","heriadi"],"image":["https:\/\/cdn.steemitimages.com\/DQmW8Vd7UvPDtnF5xgPE3tACZGpJvffYgqVj9xvP7dhTzBv\/Screen%20Shot%202021-07-14%20at%2023.29.19.png"],"links":["https:\/\/steemit.com\/hive-153176\/@sogata\/introducing-bs-steem-bank-buy-steem-and-sbd-easily","https:\/\/steemit.com\/hive-153176\/@sogata\/bs-update-report-i-have-discussed-this-project-with-the-indonesian-country-representative-this-is-what-they-say","https:\/\/steemit.com\/hive-153176\/@sogata\/bs-update-report-i-have-started-to-develop-the-main-page-for-bs","https:\/\/steemit.com\/hive-153176\/@sogata\/bs-update-created-login-app-authentication-with-phone-number","https:\/\/steemit.com\/hive-153176\/@sogata\/bs-update-added-live-price-of-steem-sbd-to-idr-and-vice-versa","https:\/\/steemit.com\/hive-153176\/@sogata\/bs-update-added-function-for-transaction-form","https:\/\/steemit.com\/hive-153176\/@sogata\/bs-update-added-history-transaction-page-finally-you-can-try-your-first-transaction-here","https:\/\/steemit.com\/hive-153176\/@sogata\/bs-update-added-admin-page-for-monitoring-transaction-so-far-i-get-2-transaction-in-bs"],"app":"steemit\/0.2","format":"markdown"}
created2021-07-14 16:37:06
last_update2021-07-14 16:37:06
depth0
children3
net_rshares13,081,010,404,970
last_payout2021-07-21 16:37:06
cashout_time1969-12-31 23:59:59
total_payout_value3.414 SBD
curator_payout_value3.409 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3,668
author_reputation26,505,337,179,010
root_title"BS Update : Added ROBOT for transaction checking automatically"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (27)
@ponpase ·
Good work, thanks for update your project !
properties (22)
post_id92,631,183
authorponpase
permlinkqwajs4
categoryhive-153176
json_metadata{"app":"steemit\/0.2"}
created2021-07-15 14:48:09
last_update2021-07-15 14:48:09
depth1
children1
net_rshares0
last_payout2021-07-22 14:48:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length43
author_reputation477,407,116,864,047
root_title"BS Update : Added ROBOT for transaction checking automatically"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@sogata ·
u r welcome bro
properties (22)
post_id92,664,294
authorsogata
permlinkqwdcnt
categoryhive-153176
json_metadata{"app":"steemit\/0.2"}
created2021-07-17 03:07:09
last_update2021-07-17 03:07:09
depth2
children0
net_rshares0
last_payout2021-07-24 03:07:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length15
author_reputation26,505,337,179,010
root_title"BS Update : Added ROBOT for transaction checking automatically"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@promosteem.com ·
**Congratulations...!!!** You Got Upvote 100 %
By: PromoSteem Community

- [Join PromoSteem Community](https://steemit.com/trending/hive-153176)
- [Join Our Discord](https://discord.gg/JRtavg8)

<center>Alternative links delegates to @promosteem.com
[50](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=50%20SP)[100](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=100%20SP)[200](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=200%20SP)[300](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=300%20SP)[400](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=400%20SP)[500](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=500%20SP)
[1000](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=1000%20SP)[2000](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=2000%20SP)[3000](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=3000%20SP)[4000](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=4000%20SP)[5000](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=5000%20SP)
[10000](https://steemlogin.com/sign/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=10000%20SP)
</center>
properties (22)
post_id92,650,547
authorpromosteem.com
permlinkqwcapw
categoryhive-153176
json_metadata{"users":["promosteem.com"],"links":["https:\/\/steemit.com\/trending\/hive-153176","https:\/\/discord.gg\/JRtavg8","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=50%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=100%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=200%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=300%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=400%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=500%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=1000%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=2000%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=3000%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=4000%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=5000%20SP","https:\/\/steemlogin.com\/sign\/delegateVestingShares?delegator=&delegatee=promosteem.com&vesting_shares=10000%20SP"],"app":"steemit\/0.2"}
created2021-07-16 13:27:30
last_update2021-07-16 13:27:30
depth1
children0
net_rshares0
last_payout2021-07-23 13:27:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,666
author_reputation77,624,711,662,869
root_title"BS Update : Added ROBOT for transaction checking automatically"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000