This repository contains the official Go SDK for Stellar, maintained by the Stellar Development Foundation.
It provides all the tools developers need to build applications that integrate with the Stellar network, including APIs for Horizon and Stellar RPC, as well as foundational utilities and ingestion libraries for working with raw ledger data.
This repo previously served as the “Go Monorepo” for all SDF Go projects. As of October 2025, it has been refactored to focus exclusively on developer-facing SDK packages. Services that are still maintained have been moved to their own dedicated repositories.
Run the following command inside your Go project.
go get github.com/stellar/go@latest
| Package | Description |
|---|---|
| Transaction Builder | Builder for creating Stellar transactions and operations |
| Horizon API Client | Client for querying and submitting transactions via a Horizon instance |
| RPC API Client | Client for interacting with a Stellar RPC instance |
| Ingest SDK | Library for parsing raw ledger data from Captive Core, a Galexie Data Lake, or RPC |
| xdr / strkey | Core network primitives and encoding helpers |
| Processors Library | Reusable data abstractions and ETL-style processors |
The following services have been moved to their own repositories and are no longer built from this SDK:
| Service | New Repository | Description |
|---|---|---|
| Horizon | stellar-horizon | Full-featured API server for querying Stellar network data |
| Galexie | stellar-galexie | Ledger exporter that writes network data to external data stores |
| Friendbot | friendbot | Stellar's test network native asset faucet |
If you build or deploy these services from source, please use their new repositories. Pre-built Debian packages and Docker images continue to be distributed through the same channels.
As of tag stellar-go-2025-10-29_10-56-50, several legacy services have been deprecated and removed. They remain available in Git history for archival or fork purposes.
| Service | Description |
|---|---|
| Ticker | API server providing asset and market statistics |
| Keystore | Encrypted key-management API server |
| Federation Server | Address-lookup service for anchors and financial institutions |
Contributions are welcome! See CONTRIBUTING.md for more details.
The packages in this repository are tested against the two most recent major versions of Go, because only the two most recent major versions of Go receive security updates.
