docs: update get balance method
This commit is contained in:
parent
c2eda9b3c2
commit
848dc29777
@ -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.
|
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
|
```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
|
console.log(total.balance); //Satoshi amount of this address
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user