0.6.72 • Published 7 years ago

wehelpjs v0.6.72

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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

0.6.72

7 years ago

0.6.71

7 years ago

0.6.70

7 years ago

0.6.69

7 years ago

0.6.67

7 years ago

0.6.66

7 years ago

0.6.65

7 years ago

0.6.64

7 years ago

0.6.63

7 years ago

0.6.62

7 years ago

0.6.61

7 years ago

0.6.59

7 years ago

0.6.58

7 years ago

0.6.57

7 years ago

0.6.56

7 years ago

0.6.55

7 years ago

0.6.54

7 years ago

0.6.53

7 years ago

0.6.51

7 years ago

0.6.50

7 years ago

0.6.49

7 years ago

0.6.45

7 years ago

0.6.44

7 years ago

0.6.43

7 years ago

0.6.42

7 years ago

0.6.41

7 years ago

0.6.40

7 years ago

0.6.39

7 years ago

0.6.38

7 years ago

0.6.37

7 years ago

0.6.36

7 years ago

0.6.35

7 years ago

0.6.34

7 years ago

0.6.33

7 years ago

0.6.32

7 years ago

0.6.31

7 years ago

0.6.10

7 years ago

0.6.9

7 years ago

0.6.8

7 years ago

0.6.7

7 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.22

7 years ago

0.6.29

7 years ago

0.6.28

7 years ago

0.6.27

7 years ago

0.6.21

7 years ago

0.6.20

7 years ago

0.6.19

7 years ago

0.6.18

7 years ago

0.6.17

7 years ago

0.6.16

7 years ago

0.6.15

7 years ago

0.6.14

7 years ago

0.6.13

7 years ago

0.6.12

7 years ago

0.6.11

7 years ago

1.1.11111111

7 years ago

1.1.1111111

7 years ago

1.1.111111

7 years ago

1.1.11111

7 years ago

1.1.1111

7 years ago

1.1.1

7 years ago

0.7.112

7 years ago