Set `rebranded_api` to `true` for connecting to eclipse (hf24) RPC nodes.
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
```
```
hive.config.set('address_prefix','STM');
hive.config.set('address_prefix','STM');
...
@@ -1001,5 +1018,10 @@ Note: this will update the config too based on the result.
...
@@ -1001,5 +1018,10 @@ Note: this will update the config too based on the result.
var apiVersion = await hive.utils.autoDetectApiVersion();
var apiVersion = await hive.utils.autoDetectApiVersion();
console.log(apiVersion);
console.log(apiVersion);
// => { rebranded_api: true }
// => { 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)