Archive post
All You need to know about SPKNetwork's Union Indexer Node
With this post, let's talk about unsung hero - Union Indexer Node
Hello Hive Community Members,
With this post, let's talk about unsung hero - Union Indexer Node.
## What is a union indexer node?
The union indexer is focused on indexing multiple sources of social media posts.
At the moment the indexer supports:
- Off-chain Ceramic content
- HIVE content
Those who wants to develop dApps which supports both on-chain (hive-blockchain) and off-chain (ceramic content), I recommend them reading this article. With this post, they can set-up an indexer with which off-chain & on-chain data can be easily accessible.

Why call it "Union"? Because it's a union of off-chain & on-chain data.
## Do we have any union-indexer-node running?
- Yes. @spknetwork is running one union-indexer node
- https://union.us-02.infra.3speak.tv/api/v2/graphql
- DApp on which you're working, you can use that Endpoint, integrate graphQL APIs & you're all set.
## Who is using such union-indexer-node at the moment?
- Yes. There are 2 DApps already running union-indexer-nodes.
- 3Speak's new Beta web-app deployed here - https://3speak-nextjs-4vvcag584-spknetwork.vercel.app/
- 3Speak's Mobile app which you can download from PlayStore & AppStore.
## Did I (@sagarkothari88) run any indexer node?
- Yes. I was running a union indexer node.
- I took it down & utilising that computer for video-encoder-node.
- May be, in next post, I'll explain about how to setup a video-encoder-node.
## Why to run union-indexer node?
- By having your own union-indexer-node, you can easily integrate it in your dApp
- You can access to off-chain & on-chain data with ease
- Querying with union-indexer-node is much easier.
- Data storage & system config required is much lesser compare to Hive RPC node.
- More power to decentralisation
## How 3Speak Mobile app can switch & use different uninon-indexer-node?
- On 3Speak mobile app, you can easily switch union-indexer-node.
- Launch App, open quick access menu & tap on settings.
- Now from settings screen, tap on union indexer node, and you can select any union-indexer-node of your choice.
- Here is the reference image

## How to run a Union-indexer-node?
- Checkout following repository
- https://github.com/spknetwork/union-indexer-node
- Make sure you've docker & docker-compose installed - https://docs.docker.com/compose/install/
- From command-line/terminal, just run command - `docker compose up -d`, you're all set.
- In case if you wish to expose port to public IP, follow this guideline https://nginx.org/en/docs/beginners_guide.html
## How to use union-indexer-node?
- You can use GraphQL queries to get the data from union-indexer-node
- Check out this post to know more - https://peakd.com/hive-112019/@spknetwork/lgnldgjo
## Other problems to solve
- How do I restart the re-indexing from a specific block height?
- How can I process more blocks at a time?
- How to restart indexer?
- @vaultec & @techcoderx suggested some ideas about this. I (@sagarkothari88) will share more details once I've more clarity on this.
### Who am I?
- I'm a hive witness
- 3Speak App Developer
- Founder of HiveCurators Community - @hive-185924
- I also contributed to mobile-app for HiveAuth
## Support me
- Please upvote my content to motivate me.
- Do you like the work I do?
- Do you want me to keep going?
- Please Reblog
- Please help me connect with more communities
- Please vote me as Hive Witness
### [Vote me as Hive Witness](https://hivesigner.com/sign/account-witness-vote?witness=sagarkothari88&approve=1)
[](https://hivesigner.com/sign/account-witness-vote?witness=sagarkothari88&approve=1)
#### About the SPK Network:
The SPK Network is a decentralised Web 3.0 protocol that rewards value creators and infrastructure providers appropriately and autonomously by distributing reward tokens so that every user, creator, and platform can earn rewards on a level playing field.
- Check out the SPK Network Light Paper: https://peakd.com/hive/@spknetwork/spk-network-light-paper
- Our Website: https://spk.network/
- Telegram Group: https://t.me/spknetwork
- Discord Server: https://discord.gg/JbhQ7dREsP
- SPK Network Linktree: https://linktr.ee/spknetwork
---

### Important Links:
|||
|:-:|:-:|
|[3Speak Linktree](https://linktr.ee/3speak)|[SPK Network Linktree](https://linktr.ee/spknetwork)|
| | | | |
|-|-|-|-|
|[3Speak.tv](https://3speak.tv)| [3Speak Twitter](https://twitter.com/3speakonline) | [3Speak Hive Blog](https://hive.blog/@threespeak) | [3Speak Telegram](https://t.me/threespeak) |
| [3Speak in Spanish](https://peakd.com/@threespeak-es/posts) | [Download Android App](https://play.google.com/store/apps/details?id=tv.threespeak.app) | [Download iOS App](https://apps.apple.com/us/app/3speak/id1614771373) | [Download Desktop App](https://github.com/spknetwork/3Speak-app/releases)
| [Join 3Speak Discord](https://discord.gg/NSFS2VGj83) | [Setup Encoder Node](https://ecency.com/hive-181335/@sagarkothari88/retfajht) | [Vote for SPK Network Proposal](https://peakd.com/hive-112019/@spknetwork/spk-network-funding-proposal-rhnv7e) | [Badge Recipients](https://peakd.com/b/badge-181335/recipients) |
|||
|:-:|:-:|
[](https://apps.apple.com/us/app/3speak/id1614771373) | [](https://play.google.com/store/apps/details?id=tv.threespeak.app)|
### [Vote for 3Speak as Witness](https://vote.hive.uno/@threespeak) - [](https://hivesigner.com/sign/account-witness-vote?witness=threespeak&approve=1)
### [Vote for Sagarkothari88 as Witness](https://vote.hive.uno/@sagarkothari88) - [](https://hivesigner.com/sign/account-witness-vote?witness=sagarkothari88&approve=1)
Posted Using [InLeo Alpha](https://inleo.io/@sagarkothari88/all-you-need-to-know-about-spknetworks-union-indexer-node)