<commit_before>node-blockchain-wallet
======================

An unofficial node.js client for the [blockchain.info wallet api](http://blockchain.info/api/blockchain_wallet_api).

## Installation

```
npm install blockchain-api
```

## Usage

```javascript
var BlockchainApi = require('blockchain-wallet'),
    blockChain = new BlockchainApi(); // Basic

var wallet = blockChain.wallet('pass1', '<PASSWORD>');

wallet.balance(function(err, data){
  
});

blockChain.receive('Adrress', 'url', function(err, data){
  
});

blockChain.createWallet({
  password :'<PASSWORD>' 
}, function(err, data){
  
});

blockChain.query().getreceivedbyaddres('address', function(err, data){
  
});

blockChain.chart('typeChart',{
  format :'json'
}, function(err, data){
  
});

blockChain.api().address([
  'addr1',
  'addr2',
  'addr3',
  'addr4',
], function(err, data){
  
});

var wallet = blockChain.wallet("YourGuid", "YourPassword", "<PASSWORD>");

wallet.list(function(err, data) {
  if(err) {
    throw err;
  }

  console.log(data);
});

// Send a donation to blockchain.info.
wallet.payment("1JArS6jzE3AJ9sZ3aFij1BmTcpFGgN86hA", 500, {"note": "Thanks"}, function(err, data) {
  if(err) {
    throw err;
  }

  console.log(data);
});
```<commit_msg>edit readme<commit_after>node-blockchain-wallet
======================

An unofficial node.js client for the [blockchain.info wallet api](http://blockchain.info/api/blockchain_wallet_api).

## Installation

```
npm install blockchain-api
```

## Usage

```javascript
var BlockchainApi = require('blockchain-wallet'),
    blockChain = new BlockchainApi(); // Basic

blockChain.receive('Adrress', 'url', function(err, data){
  
});

blockChain.createWallet({
  password :'<PASSWORD>' 
}, function(err, data){
  
});

blockChain.query().getreceivedbyaddres('address', function(err, data){
  
});

blockChain.chart('typeChart',{
  format :'json'
}, function(err, data){
  
});

blockChain.api().address([
  'addr1',
  'addr2',
  'addr3',
  'addr4',
], function(err, data){
  
});

// Wallet
var wallet = blockChain.wallet("YourGuid", "YourPassword", "<PASSWORD>");

wallet.list(function(err, data) {
  if(err) {
    throw err;
  }

  console.log(data);
});

// Send a donation to blockchain.info.
wallet.payment("1JArS6jzE3AJ9sZ3aFij1BmTcpFGgN86hA", 500, {"note": "Thanks"}, function(err, data) {
  if(err) {
    throw err;
  }

  console.log(data);
});
```
{'fraction_non_alphanumeric': 0.2005838198498749, 'fraction_numerical': 0.01292743953294412, 'mean_word_length': 4.808716707021792, 'pattern_counts': {'":': 2, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3326802', 'n_tokens_mistral': 887, 'n_tokens_neox': 852, 'n_words': 154}