SteemJS: Explore Steem blockchain! New update with full database API methods coverage
I've just finish the version 2 and I'm proud to announce you that SteemJS is now covering all the available method of the Steem blockchain database API. JavaScript lovers plug it on your site and make it rocks!
https://www.npmjs.com/package/steem
https://github.com/adcpm/steem
Here is the new shorten documentation :
Install
$ npm install steem --save
Usage
var Steem = require('steem');
var steem = new Steem();
steem.getAccounts(['ned', 'dan'], function(err, result) {
console.log(err, result);
});
Login
steem.login(username, password, callback);
Subscriptions
steem.setSubscribeCallback(cb, clearFilter, callback);
steem.setPendingTransactionCallback(cb, callback);
steem.setBlockAppliedCallback(cb, callback);
steem.cancelAllSubscriptions(callback);
Tags
steem.getTrendingTags(afterTag, limit, callback);
steem.getDiscussionsByTrending(query, callback);
steem.getDiscussionsByCreated(query, callback);
steem.getDiscussionsByActive(query, callback);
steem.getDiscussionsByCashout(query, callback);
steem.getDiscussionsByPayout(query, callback);
steem.getDiscussionsByVotes(query, callback);
steem.getDiscussionsByChildren(query, callback);
steem.getDiscussionsByHot(query, callback);
Blocks And Transactions
steem.getBlockHeader(blockNum, callback);
steem.getBlock(blockNum, callback);
steem.getState(path, callback);
steem.getTrendingCategories(after, limit, callback);
steem.getBestCategories(after, limit, callback);
steem.getActiveCategories(after, limit, callback);
steem.getRecentCategories(after, limit, callback);
Globals
steem.getConfig(callback);
steem.getDynamicGlobalProperties(callback);
steem.getChainProperties(after, limit, callback);
steem.getFeedHistory(callback);
steem.getCurrentMedianHistoryPrice(callback);
steem.getWitnessSchedule(callback);
steem.getHardforkVersion(callback);
steem.getNextScheduledHardfork(callback);
Keys
steem.getKeyReferences(key, callback)
Accounts
steem.getAccounts(names, callback);
steem.getAccountReferences(accountId, callback);
steem.lookupAccountNames(accountNames, callback);
steem.lookupAccounts(lowerBoundName, limit, callback);
steem.getAccountCount(callback);
steem.getConversionRequests(accountName, callback);
steem.getAccountHistory(account, from, limit, callback);
steem.getOwnerHistory(account, callback);
steem.getRecoveryRequest(account, callback);
Market
steem.getOrderBook(limit, callback);
steem.getOpenOrders(owner, callback);
steem.getLiquidityQueue(startAccount, limit, callback);
Authority / Validation
steem.getTransactionHex(trx, callback);
steem.getTransaction(trxId, callback);
steem.getRequiredSignatures(trx, availableKeys, callback);
steem.getPotentialSignatures(trx, callback);
steem.verifyAuthority(trx, callback);
steem.verifyAccountAuthority(nameOrId, signers, callback);
Votes
steem.getActiveVotes(author, permlink, callback);
steem.getAccountVotes(voter, callback);
Content
steem.getContent(author, permlink, callback);
steem.getContentReplies(parent, parentPermlink, callback);
steem.getDiscussionsByAuthorBeforeDate(author, startPermlink, beforeDate, limit, callback);
steem.getRepliesByLastUpdate(startAuthor, startPermlink, limit, callback);
Witnesses
steem.getWitnesses(witnessIds, callback);
steem.getWitnessByAccount(accountName, callback);
steem.getWitnessesByVote(from, limit, callback);
steem.lookupWitnessAccounts(lowerBoundName, limit, callback);
steem.getWitnessCount(callback);
steem.getActiveWitnesses(callback);
steem.getMinerQueue(callback);
Stream
steem.streamBlockNumber(callback);
steem.streamBlock(callback);
steem.streamTransactions(callback);
steem.streamOperations(callback);
To-Do
- Connect all the others API
Get full documentation on https://www.npmjs.com/package/steem
You have some suggestions? Let me know on Slack https://steem.slack.com/ channel #steemjs
Also I will have a good news soon for all non-JavaScript dev so be prepared!
Leave SteemJS: Explore Steem blockchain! New update with full database API methods coverage to:
Read more # posts
Best Posts From Fabien
We have not curated any of fabien's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Fabien
- Proposal #37: SteemConnect continued improvements
- SteemConnect 3, beta release looking for testers
- SteemConnect: Deprecation notice for the "metadata" feature
- Major incoming changes on SteemConnect
- SteemConnect interface is now on app.steemconnect.com
- A new start for SteemConnect
- Byteball.js: The JavaScript library for Byteball is out!
- SteemConnect: Deprecation notice for "v2" subdomain
- Leaving my CTO role at Busy.org for focus on SteemConnect and new projects
- SteemConnect: Login with memo key is now disabled
- SteemConnect v1 is depreciated please update your code
- Avatar and cover images for your Steem apps
- Steem Script: An Open JSON Standard for Trusted Workflows [Proposal]
- Steem.js: Comment, upvote, downvote, transfert. You wanted it, you got it.
- Steem.js Update: Vote method added (tutorial inside)
- Steem.js Update v0.3: Added Formatters and Examples
- SteemJS: Now the package available on client side!
- Steem API: Now Released!
- SteemJS: Explore Steem blockchain! New update with full database API methods coverage
- Test