Added documentation on client.cmd

This commit is contained in:
Bill Casarin 2012-01-03 09:22:46 -05:00
parent ac6afe2d30
commit 61a9e28f98

View File

@ -6,6 +6,15 @@ The API is equivalent to the API document [here](https://en.bitcoin.it/wiki/Orig
The methods are exposed as lower camelcase methods on the `bitcoin.Client`
object.
You can choose to ignore the helper methods and call the api directly like so:
```js
client.cmd('getbalance', '*', 6, function(err, balance){
if (err) return console.log(err);
console.log('Balance:', balance);
});
```
## Install
`npm install bitcoin`