Skip to content
Snippets Groups Projects
Commit 9ffe6514 authored by Mahdi Yari's avatar Mahdi Yari
Browse files

add getSavingsWithdrawTo

parent cf7c9700
No related branches found
No related tags found
1 merge request!17update readme
......@@ -2127,6 +2127,31 @@ Return Example:
[ /* list of withdraws from savings */ ]
```
### Get Savings Withdraw To
Gets a list of savings withdraws from `account`.
```js
hive.api.getSavingsWithdrawTo(account, callback);
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|account|string|a hive username|
|callback|function|function(err, data) {/*code*/}|
Call Example:
```js
hive.api.getSavingsWithdrawTo("username", function(err, data) {
console.log(err, data);
});
```
Return Example:
```js
[ /* list of withdraws from savings */ ]
```
### Comment Payout
```js
hive.broadcast.commentPayout(wif, author, permlink, payout, function(err, result) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment