For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

JSON-RPC API

note

Calls to Stellar are routed to partner infrastructure providers.

Infura supports the standard Stellar RPC methods.

Pass parameters as a named object. For example, getTransaction takes params.hash.

XDR fields are base64-encoded strings unless you set xdrFormat to json. Do not rely on a stable schema for the JSON form, because it changes when the underlying XDR changes.

Stellar RPC keeps a bounded history of recent ledgers. Call getHealth to read oldestLedger, latestLedger, and ledgerRetentionWindow for the range currently available.