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

params for estimateAccountValue

parent 0e7c6a79
No related branches found
No related tags found
1 merge request!17update readme
......@@ -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);
......
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