Comparing version 0.2.1 to 0.2.2
258
lib/steem.js
@@ -14,3 +14,3 @@ var ws = require('ws'); | ||
var err = data.error || ''; | ||
callback(data.result, err); | ||
callback(err, data.result); | ||
}; | ||
@@ -31,4 +31,4 @@ | ||
'params': [cb, clearFilter] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -42,4 +42,4 @@ }; | ||
'params': [cb] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err,result); | ||
}); | ||
@@ -53,4 +53,4 @@ }; | ||
'params': [cb] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -63,4 +63,4 @@ }; | ||
'method': 'cancel_all_subscriptions' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -77,4 +77,4 @@ }; | ||
'params': [afterTag, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -88,4 +88,4 @@ }; | ||
'params': [query] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -99,4 +99,4 @@ }; | ||
'params': [query] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -110,4 +110,4 @@ }; | ||
'params': [query] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -121,4 +121,4 @@ }; | ||
'params': [query] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -132,4 +132,4 @@ }; | ||
'params': [query] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -143,4 +143,4 @@ }; | ||
'params': [query] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -154,4 +154,4 @@ }; | ||
'params': [query] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -165,4 +165,4 @@ }; | ||
'params': [query] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -179,4 +179,4 @@ }; | ||
'params': [blockNum] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -190,4 +190,4 @@ }; | ||
'params': [blockNum] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -201,4 +201,4 @@ }; | ||
'params': [path] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -212,4 +212,4 @@ }; | ||
'params': [after, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -223,4 +223,4 @@ }; | ||
'params': [after, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -234,4 +234,4 @@ }; | ||
'params': [after, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -245,4 +245,4 @@ }; | ||
'params': [after, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -258,4 +258,4 @@ }; | ||
'method': 'get_config', | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -268,4 +268,4 @@ }; | ||
'method': 'get_dynamic_global_properties' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -278,4 +278,4 @@ }; | ||
'method': 'get_chain_properties' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -288,4 +288,4 @@ }; | ||
'method': 'get_feed_history' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -298,4 +298,4 @@ }; | ||
'method': 'get_current_median_history_price' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -309,4 +309,4 @@ }; | ||
'params': [after, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -319,4 +319,4 @@ }; | ||
'method': 'get_hardfork_version' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -329,4 +329,4 @@ }; | ||
'method': 'get_next_scheduled_hardfork' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -343,4 +343,4 @@ }; | ||
'params': [key] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -357,4 +357,4 @@ }; | ||
'params': [names] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -368,4 +368,4 @@ }; | ||
'params': [accountId] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -379,4 +379,4 @@ }; | ||
'params': [accountNames] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -390,4 +390,4 @@ }; | ||
'params': [lowerBoundName, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -400,4 +400,4 @@ }; | ||
'method': 'get_account_count' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -411,4 +411,4 @@ }; | ||
'params': [accountName] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -422,4 +422,4 @@ }; | ||
'params': [account, from, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -433,4 +433,4 @@ }; | ||
'params': [account] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -444,4 +444,4 @@ }; | ||
'params': [account] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -458,4 +458,4 @@ }; | ||
'params': [limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -469,4 +469,4 @@ }; | ||
'params': [owner] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -480,4 +480,4 @@ }; | ||
'params': [startAccount, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -494,4 +494,4 @@ }; | ||
'params': [trx] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -505,4 +505,4 @@ }; | ||
'params': [trxId] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -516,4 +516,4 @@ }; | ||
'params': [trx, availableKeys] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -527,4 +527,4 @@ }; | ||
'params': [trx] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -538,4 +538,4 @@ }; | ||
'params': [trx] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -549,4 +549,4 @@ }; | ||
'params': [nameOrId, signers] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -563,4 +563,4 @@ }; | ||
'params': [author, permlink] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -574,4 +574,4 @@ }; | ||
'params': [voter] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -588,4 +588,4 @@ }; | ||
'params': [author, permlink] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -599,4 +599,4 @@ }; | ||
'params': [parent, parentPermlink] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -610,4 +610,4 @@ }; | ||
'params': [author, startPermlink, beforeDate, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -621,4 +621,4 @@ }; | ||
'params': [startAuthor, startPermlink, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -635,4 +635,4 @@ }; | ||
'params': [witnessIds] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -646,4 +646,4 @@ }; | ||
'params': [accountName] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -657,4 +657,4 @@ }; | ||
'params': [from, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -668,4 +668,4 @@ }; | ||
'params': [lowerBoundName, limit] | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -678,4 +678,4 @@ }; | ||
'method': 'get_witness_count' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -688,4 +688,4 @@ }; | ||
'method': 'get_active_witnesses' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -698,4 +698,4 @@ }; | ||
'method': 'get_miner_queue' | ||
}, function(result, err) { | ||
callback(result, err); | ||
}, function(err, result) { | ||
callback(err, result); | ||
}); | ||
@@ -716,3 +716,3 @@ }; | ||
current = blockId; | ||
callback(current); | ||
callback(null,current); | ||
} | ||
@@ -736,3 +736,3 @@ }; | ||
var last = ''; | ||
this.streamBlockNumber(function(id) { | ||
this.streamBlockNumber(function(err, id) { | ||
current = id; | ||
@@ -746,4 +746,4 @@ }); | ||
last = current; | ||
self.getBlock(current, function(result) { | ||
callback(result); | ||
self.getBlock(current, function(err,result) { | ||
callback(null,result); | ||
}); | ||
@@ -756,5 +756,5 @@ } | ||
Steem.prototype.streamTransactions = function(callback) { | ||
this.streamBlock(function(result) { | ||
this.streamBlock(function(err, result) { | ||
result.transactions.forEach(function (transaction) { | ||
callback(transaction); | ||
callback(null,transaction); | ||
}); | ||
@@ -765,6 +765,6 @@ }) | ||
Steem.prototype.streamOperations = function(callback) { | ||
this.streamBlock(function(result) { | ||
this.streamBlock(function(err, result) { | ||
result.transactions.forEach(function (transaction) { | ||
transaction.operations.forEach(function (operation) { | ||
callback(operation); | ||
callback(null,operation); | ||
}); | ||
@@ -771,0 +771,0 @@ }); |
{ | ||
"name": "steem", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "SteemJS the JavaScript API for Steem blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
244
README.md
@@ -15,4 +15,4 @@ # SteemJS | ||
steem.getAccounts(['ned', 'dan'], function(result, err) { | ||
console.log(result, err); | ||
steem.getAccounts(['ned', 'dan'], function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -24,4 +24,4 @@ ``` | ||
```js | ||
steem.setSubscribeCallback(cb, clearFilter, function(result, err) { | ||
console.log(result, err); | ||
steem.setSubscribeCallback(cb, clearFilter, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -31,4 +31,4 @@ ``` | ||
```js | ||
steem.setPendingTransactionCallback(cb, function(result, err) { | ||
console.log(result, err); | ||
steem.setPendingTransactionCallback(cb, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -38,4 +38,4 @@ ``` | ||
```js | ||
steem.setBlockAppliedCallback(cb, function(result, err) { | ||
console.log(result, err); | ||
steem.setBlockAppliedCallback(cb, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -45,4 +45,4 @@ ``` | ||
```js | ||
steem.cancelAllSubscriptions(function(result, err) { | ||
console.log(result, err); | ||
steem.cancelAllSubscriptions(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -54,4 +54,4 @@ ``` | ||
```js | ||
steem.getTrendingTags(afterTag, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getTrendingTags(afterTag, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -61,4 +61,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByTrending(query, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByTrending(query, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -68,4 +68,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByCreated(query, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByCreated(query, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -75,4 +75,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByActive(query, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByActive(query, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -82,4 +82,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByCashout(query, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByCashout(query, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -89,4 +89,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByPayout(query, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByPayout(query, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -96,4 +96,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByVotes(query, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByVotes(query, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -103,4 +103,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByChildren(query, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByChildren(query, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -110,4 +110,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByHot(query, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByHot(query, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -119,4 +119,4 @@ ``` | ||
```js | ||
steem.getBlockHeader(blockNum, function(result, err) { | ||
console.log(result, err); | ||
steem.getBlockHeader(blockNum, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -126,4 +126,4 @@ ``` | ||
```js | ||
steem.getBlock(blockNum, function(result, err) { | ||
console.log(result, err); | ||
steem.getBlock(blockNum, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -133,4 +133,4 @@ ``` | ||
```js | ||
steem.getState(path, function(result, err) { | ||
console.log(result, err); | ||
steem.getState(path, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -140,4 +140,4 @@ ``` | ||
```js | ||
steem.getTrendingCategories(after, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getTrendingCategories(after, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -147,4 +147,4 @@ ``` | ||
```js | ||
steem.getBestCategories(after, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getBestCategories(after, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -154,4 +154,4 @@ ``` | ||
```js | ||
steem.getActiveCategories(after, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getActiveCategories(after, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -161,4 +161,4 @@ ``` | ||
```js | ||
steem.getRecentCategories(after, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getRecentCategories(after, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -170,4 +170,4 @@ ``` | ||
```js | ||
steem.getConfig(function(result, err) { | ||
console.log(result, err); | ||
steem.getConfig(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -177,4 +177,4 @@ ``` | ||
```js | ||
steem.getDynamicGlobalProperties(function(result, err) { | ||
console.log(result, err); | ||
steem.getDynamicGlobalProperties(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -184,4 +184,4 @@ ``` | ||
```js | ||
steem.getChainProperties(after, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getChainProperties(after, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -191,4 +191,4 @@ ``` | ||
```js | ||
steem.getFeedHistory(function(result, err) { | ||
console.log(result, err); | ||
steem.getFeedHistory(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -198,4 +198,4 @@ ``` | ||
```js | ||
steem.getCurrentMedianHistoryPrice(function(result, err) { | ||
console.log(result, err); | ||
steem.getCurrentMedianHistoryPrice(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -205,4 +205,4 @@ ``` | ||
```js | ||
steem.getWitnessSchedule(function(result, err) { | ||
console.log(result, err); | ||
steem.getWitnessSchedule(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -212,4 +212,4 @@ ``` | ||
```js | ||
steem.getHardforkVersion(function(result, err) { | ||
console.log(result, err); | ||
steem.getHardforkVersion(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -219,4 +219,4 @@ ``` | ||
```js | ||
steem.getNextScheduledHardfork(function(result, err) { | ||
console.log(result, err); | ||
steem.getNextScheduledHardfork(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -228,4 +228,4 @@ ``` | ||
```js | ||
steem.getKeyReferences(key, function(result, err) { | ||
console.log(result, err); | ||
steem.getKeyReferences(key, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -237,4 +237,4 @@ ``` | ||
```js | ||
steem.getAccounts(names, function(result, err) { | ||
console.log(result, err); | ||
steem.getAccounts(names, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -244,4 +244,4 @@ ``` | ||
```js | ||
steem.getAccountReferences(accountId, function(result, err) { | ||
console.log(result, err); | ||
steem.getAccountReferences(accountId, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -251,4 +251,4 @@ ``` | ||
```js | ||
steem.lookupAccountNames(accountNames, function(result, err) { | ||
console.log(result, err); | ||
steem.lookupAccountNames(accountNames, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -258,4 +258,4 @@ ``` | ||
```js | ||
steem.lookupAccounts(lowerBoundName, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.lookupAccounts(lowerBoundName, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -265,4 +265,4 @@ ``` | ||
```js | ||
steem.getAccountCount(function(result, err) { | ||
console.log(result, err); | ||
steem.getAccountCount(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -272,4 +272,4 @@ ``` | ||
```js | ||
steem.getConversionRequests(accountName, function(result, err) { | ||
console.log(result, err); | ||
steem.getConversionRequests(accountName, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -279,4 +279,4 @@ ``` | ||
```js | ||
steem.getAccountHistory(account, from, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getAccountHistory(account, from, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -286,4 +286,4 @@ ``` | ||
```js | ||
steem.getOwnerHistory(account, function(result, err) { | ||
console.log(result, err); | ||
steem.getOwnerHistory(account, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -293,4 +293,4 @@ ``` | ||
```js | ||
steem.getRecoveryRequest(account, function(result, err) { | ||
console.log(result, err); | ||
steem.getRecoveryRequest(account, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -302,4 +302,4 @@ ``` | ||
```js | ||
steem.getOrderBook(limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getOrderBook(limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -309,4 +309,4 @@ ``` | ||
```js | ||
steem.getOpenOrders(owner, function(result, err) { | ||
console.log(result, err); | ||
steem.getOpenOrders(owner, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -316,4 +316,4 @@ ``` | ||
```js | ||
steem.getLiquidityQueue(startAccount, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getLiquidityQueue(startAccount, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -325,4 +325,4 @@ ``` | ||
```js | ||
steem.getTransactionHex(trx, function(result, err) { | ||
console.log(result, err); | ||
steem.getTransactionHex(trx, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -332,4 +332,4 @@ ``` | ||
```js | ||
steem.getTransaction(trxId, function(result, err) { | ||
console.log(result, err); | ||
steem.getTransaction(trxId, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -339,4 +339,4 @@ ``` | ||
```js | ||
steem.getRequiredSignatures(trx, availableKeys, function(result, err) { | ||
console.log(result, err); | ||
steem.getRequiredSignatures(trx, availableKeys, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -346,4 +346,4 @@ ``` | ||
```js | ||
steem.getPotentialSignatures(trx, function(result, err) { | ||
console.log(result, err); | ||
steem.getPotentialSignatures(trx, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -353,4 +353,4 @@ ``` | ||
```js | ||
steem.verifyAuthority(trx, function(result, err) { | ||
console.log(result, err); | ||
steem.verifyAuthority(trx, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -360,4 +360,4 @@ ``` | ||
```js | ||
steem.verifyAccountAuthority(nameOrId, signers, function(result, err) { | ||
console.log(result, err); | ||
steem.verifyAccountAuthority(nameOrId, signers, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -369,4 +369,4 @@ ``` | ||
```js | ||
steem.getActiveVotes(author, permlink, function(result, err) { | ||
console.log(result, err); | ||
steem.getActiveVotes(author, permlink, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -376,4 +376,4 @@ ``` | ||
```js | ||
steem.getAccountVotes(voter, function(result, err) { | ||
console.log(result, err); | ||
steem.getAccountVotes(voter, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -385,4 +385,4 @@ ``` | ||
```js | ||
steem.getContent(author, permlink, function(result, err) { | ||
console.log(result, err); | ||
steem.getContent(author, permlink, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -392,4 +392,4 @@ ``` | ||
```js | ||
steem.getContentReplies(parent, parentPermlink, function(result, err) { | ||
console.log(result, err); | ||
steem.getContentReplies(parent, parentPermlink, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -399,4 +399,4 @@ ``` | ||
```js | ||
steem.getDiscussionsByAuthorBeforeDate(author, startPermlink, beforeDate, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getDiscussionsByAuthorBeforeDate(author, startPermlink, beforeDate, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -406,4 +406,4 @@ ``` | ||
```js | ||
steem.getRepliesByLastUpdate(startAuthor, startPermlink, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getRepliesByLastUpdate(startAuthor, startPermlink, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -415,4 +415,4 @@ ``` | ||
```js | ||
steem.getWitnesses(witnessIds, function(result, err) { | ||
console.log(result, err); | ||
steem.getWitnesses(witnessIds, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -422,4 +422,4 @@ ``` | ||
```js | ||
steem.getWitnessByAccount(accountName, function(result, err) { | ||
console.log(result, err); | ||
steem.getWitnessByAccount(accountName, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -429,4 +429,4 @@ ``` | ||
```js | ||
steem.getWitnessesByVote(from, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.getWitnessesByVote(from, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -436,4 +436,4 @@ ``` | ||
```js | ||
steem.lookupWitnessAccounts(lowerBoundName, limit, function(result, err) { | ||
console.log(result, err); | ||
steem.lookupWitnessAccounts(lowerBoundName, limit, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -443,4 +443,4 @@ ``` | ||
```js | ||
steem.getWitnessCount(function(result, err) { | ||
console.log(result, err); | ||
steem.getWitnessCount(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -450,4 +450,4 @@ ``` | ||
```js | ||
steem.getActiveWitnesses(function(result, err) { | ||
console.log(result, err); | ||
steem.getActiveWitnesses(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -457,4 +457,4 @@ ``` | ||
```js | ||
steem.getMinerQueue(function(result, err) { | ||
console.log(result, err); | ||
steem.getMinerQueue(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
@@ -461,0 +461,0 @@ ``` |
26864