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. ![image](https://www.docsvault.com/wordpress/wp-content/uploads/2017/01/document-indexing-400x266.jpg) 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 ![union-indexer-mobile-app.jpeg](https://files.peakd.com/file/peakd-hive/sagarkothari88/23t72X6zEqg8sjU8ixBxQCJ96LTZMSZ4MfufLY1XFbBuVseUYVMUFZr76KQtXp7USVhD9.jpeg) ## 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) [![Support @sagarkothari88](https://images.hive.blog/u/sagarkothari88/avatar)](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 --- ![color3speak.png](https://files.peakd.com/file/peakd-hive/threespeak/23tRvWvmwuE7SGkXfPhHY8GPxiwaVKnVtzAFwDjuXFM3gWtRS6dr2F4yK4vexmaUHERuK.png) ###
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) | ||| |:-:|:-:| [![appStore](https://i.imgur.com/enwTLng.png)](https://apps.apple.com/us/app/3speak/id1614771373) | [![GooglePlayStore](https://i.imgur.com/6K5fgGX.png)](https://play.google.com/store/apps/details?id=tv.threespeak.app)| ### [Vote for 3Speak as Witness](https://vote.hive.uno/@threespeak) - [![Support @threespeak](https://images.hive.blog/u/threespeak/avatar)](https://hivesigner.com/sign/account-witness-vote?witness=threespeak&approve=1) ### [Vote for Sagarkothari88 as Witness](https://vote.hive.uno/@sagarkothari88) - [![Support @sagarkothari88](https://images.hive.blog/u/sagarkothari88/avatar)](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)