11# Documentation
22
3- - [ Install] ( https://github.com/steemit/steem-js/tree/dev /doc#install )
4- - [ Browser] ( https://github.com/steemit/steem-js/tree/dev /doc#browser )
5- - [ Database API ] ( https://github.com/steemit/steem-js/tree/dev /doc#api )
6- - [ WebSocket ] ( https://github.com/steemit/steem-js/tree/dev /doc#websocket )
7- - [ Subscriptions] ( https://github.com/steemit/steem-js/tree/dev /doc#subscriptions )
8- - [ Tags] ( https://github.com/steemit/steem-js/tree/dev /doc#tags )
9- - [ Blocks and transactions] ( https://github.com/steemit/steem-js/tree/dev /doc#blocks-and-transactions )
10- - [ Globals] ( https://github.com/steemit/steem-js/tree/dev /doc#globals )
11- - [ Keys] ( https://github.com/steemit/steem-js/tree/dev /doc#keys )
12- - [ Accounts] ( https://github.com/steemit/steem-js/tree/dev /doc#accounts )
13- - [ Market] ( https://github.com/steemit/steem-js/tree/dev /doc#market )
14- - [ Authority / validation] ( https://github.com/steemit/steem-js/tree/dev /doc#authority--validation )
15- - [ Votes] ( https://github.com/steemit/steem-js/tree/dev /doc#votes )
16- - [ Content] ( https://github.com/steemit/steem-js/tree/dev /doc#content )
17- - [ Witnesses] ( https://github.com/steemit/steem-js/tree/dev /doc#witnesses )
18- - [ Login API] ( https://github.com/steemit/steem-js/tree/dev /doc#login )
19- - [ Follow API] ( https://github.com/steemit/steem-js/tree/dev /doc#follow-api )
20- - [ Broadcast API] ( https://github.com/steemit/steem-js/tree/dev /doc#broadcast-api )
21- - [ Broadcast] ( https://github.com/steemit/steem-js/tree/dev /doc#broadcast )
22- - [ Auth] ( https://github.com/steemit/steem-js/tree/dev /doc#auth )
3+ - [ Install] ( https://github.com/steemit/steem-js/tree/master /doc#install )
4+ - [ Browser] ( https://github.com/steemit/steem-js/tree/master /doc#browser )
5+ - [ Config ] ( https://github.com/steemit/steem-js/tree/master /doc#config )
6+ - [ Database API ] ( https://github.com/steemit/steem-js/tree/master /doc#api )
7+ - [ Subscriptions] ( https://github.com/steemit/steem-js/tree/master /doc#subscriptions )
8+ - [ Tags] ( https://github.com/steemit/steem-js/tree/master /doc#tags )
9+ - [ Blocks and transactions] ( https://github.com/steemit/steem-js/tree/master /doc#blocks-and-transactions )
10+ - [ Globals] ( https://github.com/steemit/steem-js/tree/master /doc#globals )
11+ - [ Keys] ( https://github.com/steemit/steem-js/tree/master /doc#keys )
12+ - [ Accounts] ( https://github.com/steemit/steem-js/tree/master /doc#accounts )
13+ - [ Market] ( https://github.com/steemit/steem-js/tree/master /doc#market )
14+ - [ Authority / validation] ( https://github.com/steemit/steem-js/tree/master /doc#authority--validation )
15+ - [ Votes] ( https://github.com/steemit/steem-js/tree/master /doc#votes )
16+ - [ Content] ( https://github.com/steemit/steem-js/tree/master /doc#content )
17+ - [ Witnesses] ( https://github.com/steemit/steem-js/tree/master /doc#witnesses )
18+ - [ Login API] ( https://github.com/steemit/steem-js/tree/master /doc#login )
19+ - [ Follow API] ( https://github.com/steemit/steem-js/tree/master /doc#follow-api )
20+ - [ Broadcast API] ( https://github.com/steemit/steem-js/tree/master /doc#broadcast-api )
21+ - [ Broadcast] ( https://github.com/steemit/steem-js/tree/master /doc#broadcast )
22+ - [ Auth] ( https://github.com/steemit/steem-js/tree/master /doc#auth )
2323
2424# Install
2525```
@@ -36,14 +36,24 @@ steem.api.getAccounts(['ned', 'dan'], function(err, response){
3636 </script >
3737```
3838
39- # API
40-
41- ## WebSocket
42-
43- ### Set WebSocket
39+ ## Config
40+ Default config should work with steem. however you can change it to work with golos
41+ as
42+ ``` js
43+ steem .config .set (' websocket' ,' wss://ws.golos.io' ); // assuming websocket is work at ws.golos.io
44+ steem .config .set (' address_prefix' ,' GLS' );
45+ steem .config .set (' chain_id' ,' 782a3039b478c839e4cb0c941ff4eaeb7df40bdd68bd441afd444b9da763de12' );
46+ ```
47+ ### set
4448```
45- steem.api.setWebSocket(url );
49+ steem.config.set('address_prefix','STM' );
4650```
51+ ### get
52+ ```
53+ steem.config.get('chain_id');
54+ ```
55+
56+ # API
4757
4858## Subscriptions
4959
0 commit comments