diff --git a/README.md b/README.md index 5b521c3a450de63996372310bfa890ab0268586e..29fe70f01b5c04d9056ee24e5bc4ab265203f853 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,9 @@ Hive.js the Official JavaScript API for Hive blockchain - [Broadcast API](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#broadcast-api) - [Broadcast](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#broadcast) - [Auth](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#auth) +- [Formatter](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#formatter) +- [Utils](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#utils) +- [Tutorials](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#tutorials) Here is full documentation: diff --git a/doc/README.md b/doc/README.md index c6f05b0b754e596b42afa17cf3d9f2b1d64e0107..97819aa8dd98326ceebc5fc437ff941daf4d684e 100644 --- a/doc/README.md +++ b/doc/README.md @@ -22,6 +22,8 @@ - [Broadcast](#broadcast) - [Auth](#auth) - [Formatter](#formatter) +- [Utils](#utils) +- [Tutorials](#tutorials) # Install ``` @@ -38,6 +40,12 @@ hive.api.getAccounts(['mahdiyari', 'hiveio'], function(err, response){ </script> ``` +## CDN +https://cdn.jsdelivr.net/npm/@hiveio/hive-js/dist/hive.min.js<br/> +```html +<script src="https://cdn.jsdelivr.net/npm/@hiveio/hive-js/dist/hive.min.js"></script> +``` + ## Config Default config should work with Hive. However you can change default config. as @@ -50,6 +58,15 @@ hive.config.set('alternative_api_endpoints', ['https://api.hive.blog', 'https:// ### rebranded_api Set `rebranded_api` to `true` for connecting to eclipse (hf24) RPC nodes. +**It is highly recommended to change this option in the config.json file!** + +OR + +``` +hive.config.set('rebranded_api','true'); +hive.broadcast.updateOperations(); // Necessary to update the already loaded operations +``` + ### set ``` hive.config.set('address_prefix','STM'); @@ -1001,5 +1018,10 @@ Note: this will update the config too based on the result. var apiVersion = await hive.utils.autoDetectApiVersion(); console.log(apiVersion); // => { rebranded_api: true } + +hive.broadcast.updateOperations(); // Necessary to update the already loaded operations ``` +## Tutorials +[How to use HiveJs on React Native](https://peakd.com/hive-139531/@stoodkev/how-to-use-hivejs-or-other-modules-referencing-core-node-js-modules-on-react-native) +