ACCEL BaaS

Getting Started

Copy and paste the following snippet at the bottom of HTML, before other script tags.

<script src="https://techfund.io/ab/1.0/ab.js"></script>
<script>
  // Initialize ACCEL BaaS
  var config = {
    apiKey: "API_KEY"
  };
  ab.initializeApp(config);
</script>

*Sample code
https://github.com/TECHFUND/accel-baas-firstapp


*When executing locally, be sure to enter the following from the terminal/command-prompt.
Start up with chrome capable of https communication.

#mac
$ open /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir

#windows
> chrome.exe --disable-web-security --user-data-dir

Wallet

Create wallet

// Create wallet
blockchainAccess.createWallet(COMMENT, function(wallet, private_key) {
  console.log(wallet, private_key);
});

Get wallet

// Get wallet
blockchainAccess.getWallet(WALLET_ADDRESS, function(data) {
  console.log(data);
});

Transaction

Create transaction

// Create transaction
blockchainAccess.createTransaction(TO_WALLET_ADDRESS, AMOUNT, FROM_WALLET_ADDRESS, COMMENT, function(tid) {
  console.log(tid);
});

*If you need a test token, please apply from this form