stellar, Stellar API Server, Stellar Blockchain, stellar node

HOW TO RUN STELLAR API SERVER?

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/

Standard
stellar, stellar node

HOW TO SETUP AND RUN STELLAR CORE NODE?

Stellar is an open-source network that connects multiple nodes. They are computers that maintain a shared distributed ledger. To validate and add transactions, the nodes communicate with one other. Stellar Core is an implementation the Stellar Consensus Protocol. It is used by nodes to keep in sync while they work on validating transactions, and then applying them to a ledger.

Types and types of nodes

Stellar nodes have the same basic functions: Stellar Core runs, connects to peers, handles transactions, stores the ledger’s status in SQL database, and keeps a copy of it in flat XDR file called buckets. Horizon is the Stellar API that all nodes support. Two key configuration options are what determine the behavior of a node. A node can:

  • Participate in consensus for transitions validity
  • Publishing an archive allows other nodes to access it and view its complete history.

Environment setup

Stellar core can be installed in many ways. You can configure it to join the network at different levels. Watcher, Basic Validator, or Full Validator. It does not matter how Stellar Core has been installed. All that is required is to connect to peer-to-peer networks, store the ledger’s status in the database, connect to the Stellar API and Horizon.

Calculate your requirements

Stellar Core PostgreSQL is well-suited for an m5.large AWS server with dual-core Intel Xenon processors and 8GB RAM. Storage wise, 1 TB is suggested as sufficient.

Network access

Stellar Core connects via peer-to-peer networks to keep the ledger synchronized. This means that each node must have specific TCP ports open for outbound and inbound communication.

Inbound:

Stellar Core’s node allows IPs to connect over TCP to its PEER_PORT. Stellar Core allows you to specify a port while configuring it, but the default (11625), will be used.

Outbound:

Stellar Core will need to connect with other nodes via PEER_PORT and TCP. Stellarbeat has information on other PEER_PORT nodes.

Read More : https://www.leewayhertz.com/run-stellar-core-node/

Standard