All Projects β†’ steemit β†’ Steem Js

steemit / Steem Js

Licence: mit
Steem.js the official JavaScript library for Steem blockchain

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Steem Js

Dtube
πŸ“Ί d.tube app. A full-featured video sharing website, decentralized.
Stars: ✭ 569 (+18.3%)
Mutual labels:  blockchain, steem
Vessel
Desktop wallet for the Hive blockchain
Stars: ✭ 116 (-75.88%)
Mutual labels:  blockchain, steem
Dtube Mobile Unofficial
D.tube client app for Android
Stars: ✭ 35 (-92.72%)
Mutual labels:  blockchain, steem
Steem
The blockchain for Smart Media Tokens (SMTs) and decentralized applications.
Stars: ✭ 1,915 (+298.13%)
Mutual labels:  blockchain, steem
Utopian.io
Utopian.io Frontend - Utopian wants to reward open-source contributors!
Stars: ✭ 101 (-79%)
Mutual labels:  blockchain, steem
Production
Production app for D.Tube
Stars: ✭ 354 (-26.4%)
Mutual labels:  blockchain, steem
Lets Build A Blockchain
A mini cryptocurrency in Ruby
Stars: ✭ 416 (-13.51%)
Mutual labels:  blockchain
Go Ethereum
Go language implementation of the original/classic design of the Ethereum protocol
Stars: ✭ 437 (-9.15%)
Mutual labels:  blockchain
Deeponion Legacy
Official Source Repo for DeepOnion - Anonymous Cryptocurrency on TOR Network (legacy)
Stars: ✭ 413 (-14.14%)
Mutual labels:  blockchain
Decentralized Internet
A SDK/library for decentralized web and distributing computing projects
Stars: ✭ 406 (-15.59%)
Mutual labels:  blockchain
Awesome Ethereum
⚑️ Awesome Ethereum Resources
Stars: ✭ 459 (-4.57%)
Mutual labels:  blockchain
Presto Ethereum
Presto Ethereum Connector -- SQL on Ethereum
Stars: ✭ 450 (-6.44%)
Mutual labels:  blockchain
Smart Contract Best Practices
A guide to smart contract security best practices
Stars: ✭ 4,784 (+894.59%)
Mutual labels:  blockchain
Tendermint
⟁ Tendermint Core (BFT Consensus) in Go
Stars: ✭ 4,491 (+833.68%)
Mutual labels:  blockchain
Substrate
Substrate: The platform for blockchain innovators
Stars: ✭ 6,275 (+1204.57%)
Mutual labels:  blockchain
Synthetix
Synthetix Solidity smart contracts
Stars: ✭ 412 (-14.35%)
Mutual labels:  blockchain
Scatterdesktop
Connect to applications on EOS, Ethereum, and Tron. Exchange tokens with ease. Manage your assets safely. All in a simple to use interface.
Stars: ✭ 459 (-4.57%)
Mutual labels:  blockchain
Ios App
πŸ“±iOS private messenger, crypto wallet and light node to the Mixin Network
Stars: ✭ 406 (-15.59%)
Mutual labels:  blockchain
Blockchainstore
πŸ’° Retail Store that runs on Ethereum
Stars: ✭ 425 (-11.64%)
Mutual labels:  blockchain
Caliper
A blockchain benchmark framework to measure performance of multiple blockchain solutions https://wiki.hyperledger.org/display/caliper
Stars: ✭ 447 (-7.07%)
Mutual labels:  blockchain

GitHub license Steem.js channel on steemit.chat

Steem.js

Steem.js the JavaScript API for Steem blockchain

Documentation

Here is full documentation: https://github.com/steemit/steem-js/tree/master/doc

Browser

<script src="./steem.min.js"></script>
<script>
steem.api.getAccounts(['ned', 'dan'], function(err, response){
    console.log(err, response);
});
</script>

CDN

https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js

<script src="https://cdn.jsdelivr.net/npm/steem/dist/steem.min.js"></script>

Webpack

Please have a look at the webpack usage example.

Server

Install

$ npm install steem --save

RPC Servers

https://api.steemit.com By Default
https://node.steem.ws
https://this.piston.rocks

Examples

Broadcast Vote

var steem = require('steem');

var wif = steem.auth.toWif(username, password, 'posting');
steem.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
	console.log(err, result);
});

Get Accounts

steem.api.getAccounts(['ned', 'dan'], function(err, result) {
	console.log(err, result);
});

Get State

steem.api.getState('/trends/funny', function(err, result) {
	console.log(err, result);
});

Reputation Formatter

var reputation = steem.formatter.reputation(user.reputation);
console.log(reputation);

Steem Testnet

Steem-js requires some configuration to work on the public Steem testnet.

You need to set two Steem API options, address_prefix and chain_id.

steem.api.setOptions({
  address_prefix: 'TST',
  chain_id: '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32',
  useTestNet: true,
});

The Chain ID could change. If it does, it may not be reflected here, but will be documented on any testnet launch announcements.

Contributions

Patches are welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them. If you would like to contribute, but don't know what to work on, check the issues list or on Steemit Chat channel #steemjs https://steemit.chat/channel/steemjs.

Issues

When you find issues, please report them!

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].