DappStoreWallet.js
Getting Started
Installation for HTML/JS Projects
<script src="https://www.dapp.com/js/DappStoreWallet.js" type="module"></script>
Using DappStoreWallet.js
Connecting to DappStoreWallet & Get Identity
// Open a window for user to authorization log in
 window.DappStoreWallet.connect(CLIENT_ID, CLIENT_SECRET).then(connected => {
  if(connected){
    // Get User Account Info
    window.DappStoreWallet.getIdentity().then(walltes => {
        console.log(walltes) 
    })
  }
})
Transfer & Withdraw
// Transfer to a contract or eos account
window.DappStoreWallet.transfer(TO_ADDRESS,'0.1000 EOS', MEMO).then(trx_id => {
    console.log(trx_id)
})
// Withdraw
window.DappStoreWallet.withdraw(TO_ADDRESS,'0.1000 EOS', MEMO).then(trx_id => {
    console.log(trx_id)
})
Manage CPU/NET/RAM
// Stake CPU
window.DappStoreWallet.stake_cpu('0.1000 EOS').then(trx_id => {
    console.log(trx_id)
})

// Reclaim CPU
window.DappStoreWallet.reclaim_cpu('0.1000 EOS').then(trx_id => {
    console.log(trx_id)
})

// Stake NET
window.DappStoreWallet.stake_net('0.1000 EOS').then(trx_id => {
    console.log(trx_id)
})

// Reclaim NET
window.DappStoreWallet.reclaim_net('0.1000 EOS').then(trx_id => {
    console.log(trx_id)
})

// Buy RAM
window.DappStoreWallet.buy_ram('0.1000 EOS').then(trx_id => {
    console.log(trx_id)
})

// Sell RAM
window.DappStoreWallet.sell_ram('2').then(trx_id => {
    console.log(trx_id)
})

Push Transcation
 let transaction = {
   "actions": [{
     "account": "eosio.token",
     "name": "transfer",
     "authorization": [{
       "actor": "dappcomdnjot",
       "permission": "active"
       }],
       "data": {
         "from": "account_from",
         "to": "account_to",
         "quantity": "0.0001 EOS",
         "memo": "Test",
         "transfer": false
         }
      }],
  "action": "push_transaction"
}


window.DappStoreWallet.push_transaction(TRANSACTION).then(trx_id => {
  console.log(trx_id)
})
Request Arbitrary Signature
// Data: Any Message
window.DappStoreWallet.request_arbitrary_signature(DATA).then(signature => {
    console.log(signature)
})