Skip to content

Update all Stellar How-To guides to use RPC instead of Horizon #1529

Open
11 of 11 issues completed
Open

Description

@mollykarcher

What problem does your feature solve?

We'd like to encourage use of RPC over Horizon, but all of our intro content is centered around Horizon's API

What would you like to see?

The of the content and tutorials in https://developers.stellar.org/docs/build can all do the same series of steps, but against RPC's API instead of Horizon's.

Sub-issues

Sub-issues

11 of 11 Issues completed
Loading 11 sub-issues

Activity

  1. changed the title [-]Update all Stellar Basics guides to use RPC instead of Horizon[/-] [+]Update all Stellar How-To guides to use RPC instead of Horizon[/+] on Sep 9, 2025
  2. JFWooten4 commented on Sep 23, 2025

    @JFWooten4
    Contributor

    I'm wrapping up a few code example translations (from JS), which were touched by @karthikiyer56's first 2 PRs, before my own merging. What's the inspiration for moving to RPCs over Horizon?1 I've only built with Horizon for the past four years, and I love how it lowers the bar to experimenting with new users, as shown by the API guides with call builders in the form of a composable URL.

    Footnotes

    1. I mean, I understand maybe fundamentally what we're getting at here, but I think it's worth spelling it out for a more open conversation rather than a stark "We'd like to "—with every bit of due respect. I've seen a lot of this blunt directive diction in early SDF GitHub developments, but I don't think it makes a ton of sense nowadays as we expand open-sourcing decentralization efforts. ↩

  3. mollykarcher commented on Sep 23, 2025

    @mollykarcher
    ContributorAuthor

    It’s fair criticism that I should have included more context in the issue description. More broadly, the Horizon → RPC shift is something we need to communicate and discuss more openly than we have so far, and our team will make that a near-term priority.

    The shift is driven by the same goals you mentioned—strengthening decentralization and encouraging open-source contributions. SDF has historically run a free, public version of Horizon, and this means we've effectively cut the ecosystem off at it's knees from a decentralization perspective; most of the entire ecosystem is centralized around a single service that SDF hosts. Our truncation announcement included some of this context.

    That naturally raises the question: why not simply stop hosting Horizon instead of deprecating it? In practice Horizon is extremely hard and expensive to operate. Even companies that typically run their own RPC nodes on other chains often can’t justify running Horizon, so they depend on third-party infrastructure providers. Those providers, in turn, are disincentivized from supporting Horizon because of how much it costs to run and the fact that the market is almost nonexistent due to SDF providing a free one (which is why SDF choose not to host a free pubnet Stellar RPC instance). These problems will only be exacerbated when the TPS of the network is increased significantly in the coming years.

    Why not just make Horizon cheaper or easier to run? Its broad functionality is both its strength (why end-users love it) and its challenge. Horizon functions more like a full-featured indexer or backend API than a standard blockchain RPC node. This has trained developers to rely on it as their application backend rather than managing or parsing their own data, which further dampens decentralization. For example, if Horizon hadn’t provided a path-finding endpoint or built-in account/offer indexing, independent projects might have emerged to fill those gaps. In fact, no major indexers appeared until Smart Contracts arrived—largely because Horizon itself doesn’t support them—illustrating how Horizon’s very existence has stifled competition.

    Stellar RPC, by contrast, deliberately offers a minimal API aligned with cross-chain standards. This encourages developers and companies to differentiate themselves and removes the dynamic where they’re effectively competing with SDF for users.

  4. added a commit that references this issue on Sep 23, 2025
  5. added
    documentation
    on Jul 13, 2026
  6. kaankacar commented on Sep 7, 2026

    @kaankacar
    Contributor

    🤖 Automated message from Kaan's Automated Triage Bot.

    I am looking at this issue now. I will report what I find.

  7. kaankacar commented on Sep 7, 2026

    @kaankacar
    Contributor

    🤖 Automated message from Kaan's Automated Triage Bot.

    Decision needed: does this epic close when PR #2760 merges, or does it grow to cover the guides that never got a sub-issue?

    The scoped work is nearly done. Of the 11 sub-issues, 10 are closed as completed.

    Only #1743 (Verify Trustlines) is open. @wmendes is assigned and PR #2760 is open. @sreuland handed that issue off on 2026-07-13. So no work waits on this epic.

    I scanned every page under docs/build/guides for Horizon (2026-09-07). Three pages sit outside the sub-issue list:

    • transactions/path-payments.mdx is the real gap. It runs entirely on Horizon: Horizon.Server, loadAccount and submitTransaction. It never got a sub-issue. It uses no path finding, so RPC can serve it. PR Add path payment example #1636 added those snippets in 2025.
    • transactions/send-and-receive-c-accounts.mdx teaches Horizon and RPC side by side on purpose. That is a scope choice, not a leftover.
    • transactions/create-account.mdx line 9 still sends readers to "inspect responses from Horizon via the Endpoint Explorer". Sub-issue Update Create Account Guide to use RPC instead of Horizon #1741 migrated the code below that line.

    Six other pages mention Horizon correctly: basics/classic-transition.mdx (the page is about the move), basics/automate-reset-data.mdx (Horizon in a list of services that testnet resets clear), transactions/signing-soroban-invocations.mdx (a warning against Horizon URLs), and three pages whose Lab deep links carry a horizonUrl parameter.

    Options:

    1. Close this epic when Update Verify Trustlines guide to use RPC instead of Horizon #2760 merges. Track path-payments.mdx on its own.
    2. Add a sub-issue for path-payments.mdx and hold the epic open. The bot can write that migration in JavaScript, the only language the page uses today.
    3. Also settle the Horizon half of send-and-receive-c-accounts.mdx. Options 1 and 2 both leave that page as it is.

    One note, so nobody does it twice. path-payments.mdx line 77 calls SERVER.submitTransaction, and SERVER is undefined. Issue #2562 already lists that fix and @oceans404 is assigned, so I left it alone.

    @kaankacar @ElliotFriend please pick an option.

  8. added
    bot:needs-decision
    on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot:needs-decisiondocumentationrpc

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions