Skip to content
Snippets Groups Projects
Commit f5fa700b authored by Mahdi Yari's avatar Mahdi Yari
Browse files

remove rebranded_api and autoDetect helper from docs

parent 108fc9d3
No related branches found
No related tags found
1 merge request!15Remove hf23 references
...@@ -55,17 +55,6 @@ hive.config.set('address_prefix','STM'); ...@@ -55,17 +55,6 @@ hive.config.set('address_prefix','STM');
hive.config.set('chain_id','beeab0de00000000000000000000000000000000000000000000000000000000'); hive.config.set('chain_id','beeab0de00000000000000000000000000000000000000000000000000000000');
hive.config.set('alternative_api_endpoints', ['https://api.hive.blog', 'https://anyx.io']); hive.config.set('alternative_api_endpoints', ['https://api.hive.blog', 'https://anyx.io']);
``` ```
### 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 ### set
``` ```
...@@ -1010,18 +999,6 @@ hive.broadcast.witnessSetProperties('Private Signing Key', owner, witnessOps.pro ...@@ -1010,18 +999,6 @@ hive.broadcast.witnessSetProperties('Private Signing Key', owner, witnessOps.pro
}); });
``` ```
### Auto Detect API Version
Get API version and update `rebranded_api` in config.
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 ## 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) [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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment