From a89cc112c01cb87b2b123cf6d8ca445d941e47d5 Mon Sep 17 00:00:00 2001
From: Mahdi Yari <m.yary16@gmail.com>
Date: Tue, 3 Nov 2020 19:47:57 +0330
Subject: [PATCH] params for estimateAccountValue

---
 doc/README.md | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/doc/README.md b/doc/README.md
index 2186a43..2f14e4b 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -2287,14 +2287,14 @@ Return Example:
 ```
 
 ### Create Suggested Password
-```
+```js
 var password = hive.formatter.createSuggestedPassword();
 console.log(password);
 // => 'GAz3GYFvvQvgm7t2fQmwMDuXEzDqTzn9'
 ```
 
 ### Comment Permlink
-```
+```js
 var parentAuthor = 'hiveio';
 var parentPermlink = 'announcing-the-launch-of-hive-blockchain';
 var commentPermlink = hive.formatter.commentPermlink(parentAuthor, parentPermlink);
@@ -2302,10 +2302,23 @@ console.log(commentPermlink);
 ```
 
 ### Estimate Account Value
-```
+```js
 var hivePower = hive.formatter.estimateAccountValue(account);
 ```
 
+|Parameter|Datatype|Description|
+|---------|--------|-----------|
+|account|object|a hive user object|
+
+
+Call Example:
+```js
+hive.api.getAccounts(["username"], function(e1, accounts) {
+  var accountValueInUSD = hive.formatter.estimateAccountValue(accounts[0])
+    .catch(function (err) { console.log(err); })
+    .then(function (data) { console.log(data); });
+});
+
 ### Reputation
 ```
 var reputation = hive.formatter.reputation(3512485230915);
-- 
GitLab