Skip to content
Snippets Groups Projects

Remove hf23 references

Merged Mahdi Yari requested to merge remove-hf23-refrences into master
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
+ 0
23
@@ -55,17 +55,6 @@ hive.config.set('address_prefix','STM');
hive.config.set('chain_id','beeab0de00000000000000000000000000000000000000000000000000000000');
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
```
@@ -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
[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)
Loading