docs: update get balance method

This commit is contained in:
Braydon Fuller 2016-04-13 09:17:28 -04:00
parent c2eda9b3c2
commit 848dc29777
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ var myNode = new bitcore.Node({
Now that you've loaded your services you can access them via `myNode.services.<service-name>.<method-name>`. For example if you wanted to check the balance of an address, you could access the address service like so.
```js
myNode.services.bitcoind.getBalance('1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v', false, function(err, total) {
myNode.services.bitcoind.getAddressBalance('1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v', false, function(err, total) {
console.log(total.balance); //Satoshi amount of this address
});
```