Skip to content
wehelpjs the official JavaScript library for the WeYouMe protocol
JavaScript Other
Branch: dev
Clone or download
Pull request Compare This branch is 79 commits ahead, 2 commits behind weyoume:dev.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
doc
examples
scripts
src
test
tmp
webpack
.babelrc
.dockerignore
.editorconfig
.env
.eslintrc
.gitignore
.npmignore
LICENSE
README.md
circle.yml
config.backup.json
config.json
node-4.dockerfile
node-6.dockerfile
package-lock.json
package.json
webpack.config.js

README.md

GitHub license

wehelpjs

wehelpjs the JavaScript API for WeYouMe blockchain

Documentation

Here is full documentation: https://github.com/WeYouMe/wehelpjs/tree/master/doc

Browser

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

CDN

https://cdn.WeYouMe.io/lib/latest/wehelpjs.min.js

<script src="//cdn.WeYouMe.io/lib/latest/wehelpjs.min.js"></script>

Webpack

Please have a look at the webpack usage example.

Server

Install

$ npm install --save wehelpjs

RPC Servers

https://api.WeYouMe.io By Default
https://peer0.WeYouMe.io:8090
https://peer0.WeYouMe.io:8091
https://peer0.WeYouMe.io:8092

Examples

Broadcast Vote

var wehelpjs = require('wehelpjs');

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

Get Accounts

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

Get State

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

Reputation Formatter

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

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 the WeYouMe Github

Issues

When you find issues, please report them!

License

MIT

You can’t perform that action at this time.