SteemJS
Install
$ npm install steem --save
Usage
var steem = require('steem');
var Steem = new steem();
Steem.getAccount('steemit', function(result, err) {
console.log(result, err);
});
Send
var data = {
'id': 1,
'method': 'get_accounts',
'params': [['steemit']]
};
Steem.send(data, function(result, err) {
console.log(result, err);
});
http://piston.readthedocs.io/en/develop/lib.html#piston-api
Get Account Count
Steem.getAccountCount(function(result, err) {
console.log(result, err);
});
Get Accounts
Steem.getAccounts(['ned', 'dan'], function(result, err) {
console.log(result, err);
});
Get Account
Steem.getAccount('steemit', function(result, err) {
console.log(result, err);
});
Get Block
Steem.getBlock(3000000, function(result, err) {
console.log(result, err);
});
Streaming Block Number
Steem.streamBlockNumber(function(result) {
console.log(result);
});
Streaming Block
Steem.streamBlock(function(result) {
console.log(result);
});
Streaming Transactions
Steem.streamTransactions(function(result) {
console.log(result);
});
Streaming Operations
Steem.streamOperations(function(result) {
console.log(result);
});
TO-DO
License
MIT