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
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 | SPK Network Linktree |
Vote for 3Speak as Witness -
Vote for Sagarkothari88 as Witness -
Posted Using InLeo Alpha