
Stellar is a decentralised and open money transport and storage network. Jed McCaleb, the founder of Stellar, created the platform with the goal of making it simple for users to convert their fiat currency to cryptocurrency.
Developers who use Stellar SDKs in their preferred programming languages to build apps on top of the Stellar network. SDKs then communicate with the Horizon, Stellar-network API. Horizon allows you to check your accounts, sign up for events, and submit transactions.
This article explains how to set up and run the Stellar API server in detail. This article’s basic flow is as follows:
- Prerequisites
- Installation
- Configuration
- Running
- Monitoring
Horizon is the API server for the Stellar ecosystem. It connects Stellar Core to the Stellar network’s applications. It also exposes data from the Stellar network via an HTTP API. It re-serves data from the Stellar network in an easy-to-consume format.
Horizon’s use of your infrastructure has a number of advantages:
- Have complete operational control over your business without being reliant on the Stellar Development Foundation.
- For scalability and redundancy, manage numerous instances
- For guaranteed network access, disable request rate-limiting.
Prerequisites
Horizon is reliant on the PostgreSQL database server for storing data ingested and processed by Stellar Core. Horizon requires PostgreSQL version 9.5 or above.
Captive Core’s in-memory database, which is around 3 GB in size, requires additional RAM. The quantity of network history served from your Horizon instance determines the secondary requirement. For the whole absorbed ledger history, it may be anywhere from a few GBs to tens of TBs.
Read More : https://www.leewayhertz.com/run-stellar-api-server/
