angular-bitcore-wallet-client-dash

1.1.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i angular-bitcore-wallet-client-dash

Weekly Downloads

3

Version

1.1.6

License

none

Last publish

Collaborators

  • alex-werner
  • snogcel