From cf7c970038be0ce2734821ce0fbdd699b7b940e4 Mon Sep 17 00:00:00 2001 From: Mahdi Yari <m.yary16@gmail.com> Date: Tue, 3 Nov 2020 19:40:54 +0330 Subject: [PATCH] add getSavingsWithdrawFrom --- doc/README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/README.md b/doc/README.md index 927ebe9..dcbdde8 100644 --- a/doc/README.md +++ b/doc/README.md @@ -2102,6 +2102,31 @@ hive.broadcast.fillTransferFromSavings(wif, from, to, amount, requestId, memo, f console.log(err, result); }); ``` +### Get Savings Withdraw From +Gets a list of savings withdraws from `account`. + +```js +hive.api.getSavingsWithdrawFrom(account, callback); +``` + +|Parameter|Datatype|Description| +|---------|--------|-----------| +|account|string|a hive username| +|callback|function|function(err, data) {/*code*/}| + + +Call Example: +```js +hive.api.getSavingsWithdrawFrom("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) { -- GitLab