angular module for bitcore-wallet-client
Clone or download
Latest commit 33c1066 May 6, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Angular module for bitcore-wallet-client Mar 9, 2015
LICENSE Initial commit Mar 9, 2015
Makefile fix dependencies, make file Mar 12, 2015
README.md Update README.md Nov 19, 2015
angular-bitcore-wallet-client.js Bump v5.1.2 May 6, 2017
angular-bitcore-wallet-client.min.js Bump v5.1.2 May 6, 2017
bower.json Update version for bower May 6, 2017
index.js Update version for bower May 6, 2017
package.json Fix dependencies May 6, 2017

README.md

angular-bitcore-wallet-client

THIS PACKAGE IS NOT LONGER MAINTAINED, SINCE IT WAS INTEGRATIONS INTO COPAY. IF YOU NEED IT, UPDATING BWC VERSION SHOULD BE STRAIGTH FORWARD. =-

AngularJS module for bitcore-wallet-client

Get started

bower install angular-bitcore-wallet-client

Add javascript to index.html after angular.js:

<script src="bower_components/angular-bitcore-wallet-client/angular-bitcore-wallet-client.min.js"></script>

Add to your array of AngularJS modules:

var modules = [
  'bwcModule'
];

var myApp = angular.module('myApp', modules);

Use

See the API referece for more details.

angular.module('myApp').factory('myService', 
  function(bwcService) {
    var walletClient = bwcService.getClient();
    walletClient.createWallet('Personal Wallet', 'me', 1, 1, 'livenet', function(err) {
    
      // Store in
      save(walletClient.export());

      // Read other wallet
      var wallet2 = read(...);
      var walletClient2 = bwcService(getClient(wallet2));
      
      walletClient2.getStatus(function(err, status) {
         console.log(status);
      });
    });
  }
);

See Complete API at Bitcore Wallet Client Readme