Hive is a "consensus interpretation" layer for the Hive blockchain, maintaining the state of social features such as post feeds, follows, and communities. Written in Python, it synchronizes an SQL database with chain state, providing developers with a more flexible/extensible alternative to the raw hived API. This means that you can bypass hived and access data in a more traditional way, for example, with SQL. But you can't use SQL on hived. So Hivemind solves that problem. Hive does not support any queries to do with wallets, orders, escrow, keys, recovery, or account history.
Hivemind is a "consensus interpretation" layer for the Hive blockchain, maintaining the state of social features such as post feeds, follows, and communities. Written in Python, it synchronizes an SQL database with chain state, providing developers with a more flexible/extensible alternative to the raw hived API. This means that you can bypass hived and access data in a more traditional way, for example, with SQL. But you can't use SQL on hived. So Hivemind solves that problem. Hivemind does not support any queries to do with wallets, orders, escrow, keys, recovery, or account history.
<!-- A good source of additional information on hive and how to use it can be found in [this Hive article](https://hive.blog/hivemind/@inertia/hivemind-queries) by @inertia. -->
<!-- A good source of additional information on Hivemind and how to use it can be found in [this Hive article](https://hive.blog/hivemind/@inertia/hivemind-queries) by @inertia. -->
Also see non-hived methods backed by Hivemind: [bridge]({{'/apidefinitions/#apidefinitions-bridge' | relative_url }})
**Additional functions available within hivemind library**
**Additional functions available within hivemind library**
...
@@ -50,7 +57,7 @@ The majority of these functions are reliant on hived so any changes to hived wou
...
@@ -50,7 +57,7 @@ The majority of these functions are reliant on hived so any changes to hived wou
* get_hive_price
* get_hive_price
* get_blocks_range
* get_blocks_range
Detailed information on the hivemind library can be found in the [Hivemind repo](https://gitlab.syncad.com/hive/hivemind/-/blob/master/hive/steem/client.py).
Detailed information on the Hivemind library can be found in the [Hivemind repo](https://gitlab.syncad.com/hive/hivemind/-/blob/master/hive/steem/client.py).
#### Hivemind dependencies and setup
#### Hivemind dependencies and setup
...
@@ -60,7 +67,7 @@ If you would prefer to install Hivemind yourself you can do so following the bas
...
@@ -60,7 +67,7 @@ If you would prefer to install Hivemind yourself you can do so following the bas
This setup can be performed on an Ubuntu server.
This setup can be performed on an Ubuntu server.
There are two dependencies for setting up the dev environment on ubuntu for running hivemind:
There are two dependencies for setting up the dev environment on ubuntu for running Hivemind:
By default Hivemind will connect to the mainnet [https://api.hive.blog](https://api.hive.blog) but if required you can change this to connect to a testnet. To do this set the environment variable as described below.
By default Hivemind will connect to the mainnet [https://api.hive.blog](https://api.hive.blog) but if required you can change this to connect to a testnet. To do this set the environment variable as described below.
```bash
```bash
# Note as of 2021-05-14, hivemind still internally uses the environment variable called STEEMD_URL for this.
# Note as of 2021-05-14, Hivemind still internally uses the environment variable called STEEMD_URL for this.