https://github.com/bitpay/angular-bitcore-wallet-client
angular module for bitcore-wallet-client
https://github.com/bitpay/angular-bitcore-wallet-client
Last synced: about 1 year ago
JSON representation
angular module for bitcore-wallet-client
- Host: GitHub
- URL: https://github.com/bitpay/angular-bitcore-wallet-client
- Owner: bitpay
- License: mit
- Created: 2015-03-09T18:12:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T09:03:17.000Z (over 3 years ago)
- Last Synced: 2025-03-24T03:54:53.079Z (about 1 year ago)
- Language: JavaScript
- Size: 17.2 MB
- Stars: 16
- Watchers: 10
- Forks: 48
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/bitpay/bitcore-wallet-client)
## Get started
```
bower install angular-bitcore-wallet-client
```
Add javascript to `index.html` after *angular.js*:
```html
```
Add to your array of AngularJS modules:
```
var modules = [
'bwcModule'
];
var myApp = angular.module('myApp', modules);
```
## Use
See the [API referece](https://github.com/bitpay/bitcore-wallet-client) for more details.
```javascript
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](https://github.com/bitpay/bitcore-wallet-client)