Comparing version 0.2.15 to 0.2.16
@@ -856,3 +856,3 @@ var WebSocket = require('ws'); | ||
/* get_followers */ | ||
Steem.prototype.getFollowers = function(following, startFollower, limit, callback) { | ||
Steem.prototype.getFollowers = function(following, startFollower, followType, limit, callback) { | ||
var iterator = this.iterate(); | ||
@@ -869,3 +869,3 @@ this.send('follow_api', { | ||
/* get_following */ | ||
Steem.prototype.getFollowing = function(follower, startFollowing, limit, callback) { | ||
Steem.prototype.getFollowing = function(follower, startFollowing, followType, limit, callback) { | ||
var iterator = this.iterate(); | ||
@@ -872,0 +872,0 @@ this.send('follow_api', { |
{ | ||
"name": "steem", | ||
"version": "0.2.15", | ||
"description": "SteemJS the JavaScript API for Steem blockchain", | ||
"version": "0.2.16", | ||
"description": "Steem.js the JavaScript API for Steem blockchain", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
# SteemJS | ||
# Steem.js | ||
SteemJS the JavaScript API for Steem blockchain | ||
@@ -3,0 +3,0 @@ |
42
test.js
var Steem = require('./lib/steem'), | ||
steem = new Steem('wss://steemit.com/wspa'); | ||
steem.getAccounts(['dan', 'ned'], function(err, result) { | ||
console.log(err, result); | ||
steem.login('******', '****************', function(err, result) { | ||
console.log(result); | ||
var trx = { | ||
expiration: '2016-08-13T05:44:15', | ||
extensions: [], | ||
operations: [['vote', { | ||
voter: '******', | ||
author: 'calaber24p', | ||
permlink: '5zebtb-the-future-the-possibility-of-capturing-memories-and-reliving-them', | ||
weight: 100 | ||
}]], | ||
ref_block_num: 40289, | ||
ref_block_prefix: 3483617648, | ||
signatures: ['207b3ca86b4055c125a715eeb660f9ff66d10f7ce6fc9f5bc99fe789af9e464ff62e6b676622611abd22ed332f20649797b13e0ff85a1be1b72bc26f2ba0d4bf6e'] | ||
}; | ||
steem.broadcastTransaction(trx, function(err, result) { | ||
console.log(err, result); | ||
}); | ||
}); | ||
steem.getAccountCount(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
steem.getConfig(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
steem.getState('trending', function(err, result) { | ||
console.log(err, result); | ||
}); | ||
steem.streamBlockNumber(function(err, result) { | ||
console.log(err, result); | ||
}); | ||
steem.login('dan', '**********', function(err, result) { | ||
steem.getApiByName('network_broadcast_api', function(err, result) { | ||
console.log(err, result); | ||
}) | ||
}); |
79389