0.8.10 • Published 3 years ago

golos-classic-js v0.8.10

Weekly downloads
108
License
MIT
Repository
github
Last release
3 years ago

Golos.js

Golos.js the JavaScript API for Golos blockchain

npm version

THIS LIBRARY IS DEPRECATED

Maximum supported Golos version is 0.25.4. Newer versions can break some operations and API methods.

Please use golos-lib-js (source code) instead.

Install

$ npm install golos-classic-js --save

Here is full documentation: https://github.com/golos-blockchain/golos-js/tree/master/doc

Browser

Online library minify js available in jsDelivr CND and Unpkg CDN.

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

WebSockets and HTTP transport

Library support 2 transport types: ws, wss for websocket and http, https for pure HTTP JSONRPC.

wss://api-golos.blckchnd.com/ws wss://api.aleksw.space/ws wss://golos.lexai.host/ws

https://api-golos.blckchnd.com/ https://api.aleksw.space/ https://golos.lexai.host/

golos.config.set('websocket','wss://golos.lexai.host/ws');

or

golos.config.set('websocket','https://golos.lexai.host/');

Examples

Broadcast Vote

var golos = require('golos');

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

Get Accounts

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

Other examples in the documentation.

Issues

When you find issues, please report them!

License

MIT

0.8.10

3 years ago

0.8.9

3 years ago

0.8.8

3 years ago

0.8.7

3 years ago

0.8.6

3 years ago

0.8.5

3 years ago

0.8.4

3 years ago

0.8.3

3 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.8.2

4 years ago

0.7.99

4 years ago

0.7.98

4 years ago

0.7.95

4 years ago

0.7.94

4 years ago

0.7.97

4 years ago

0.7.96

4 years ago

0.7.93

4 years ago

0.7.92

4 years ago

0.7.91

4 years ago

0.7.90

4 years ago

0.7.88

4 years ago

0.7.87

4 years ago

0.7.89

4 years ago

0.7.86

4 years ago

0.7.85

4 years ago

0.7.84

4 years ago

0.7.83

4 years ago

0.7.82

4 years ago

0.7.81

4 years ago

0.7.80

4 years ago

0.7.79

4 years ago

0.7.77

4 years ago

0.7.78

4 years ago

0.7.76

4 years ago

0.7.75

4 years ago

0.7.74

4 years ago

0.7.73

4 years ago

0.7.72

4 years ago

0.7.71

4 years ago

0.7.70

4 years ago

0.7.68

4 years ago

0.7.69

4 years ago

0.7.67

4 years ago

0.7.66

4 years ago

0.7.65

4 years ago

0.7.64

4 years ago

0.7.63

4 years ago

0.7.62

4 years ago

0.7.61

4 years ago

0.7.60

4 years ago

0.7.59

4 years ago

0.7.58

4 years ago

0.7.57

4 years ago

0.7.56

4 years ago

0.7.55

4 years ago

0.7.54

4 years ago

0.7.53

4 years ago

0.7.52

4 years ago

0.7.51

4 years ago

0.7.50

4 years ago

0.7.42

4 years ago

0.7.41

4 years ago

0.7.39

4 years ago

0.7.40

4 years ago

0.7.37

4 years ago

0.7.36

4 years ago

0.7.38

4 years ago

0.7.33

4 years ago

0.7.35

4 years ago

0.7.34

4 years ago

0.7.32

4 years ago

0.7.31

4 years ago

0.7.30

4 years ago

0.7.29

4 years ago

0.7.28

4 years ago

0.7.27

4 years ago

0.7.26

4 years ago

0.7.25

4 years ago

0.7.24

4 years ago

0.7.23

4 years ago

0.7.22

4 years ago

0.7.21

4 years ago

0.7.20

4 years ago

0.7.19

4 years ago

0.7.18

4 years ago

0.7.17

4 years ago

0.7.16

4 years ago

0.7.15

4 years ago

0.7.13

4 years ago

0.7.14

4 years ago

0.7.12

5 years ago

0.7.11

5 years ago

0.7.10

5 years ago

0.7.9

5 years ago