> ## Documentation Index
> Fetch the complete documentation index at: https://developers.stellar.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Methods

> All you need to know about available RPC methods, parameters and responses, and making RPC requests.

> [card] [getEvents](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getEvents.md)
>
> Returns contract events

> [card] [getFeeStats](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getFeeStats.md)
>
> Returns statistics about charged inclusion fees for Soroban transactions and Stellar transactions

> [card] [getHealth](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getHealth.md)
>
> Returns node health

> [card] [getLatestLedger](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getLatestLedger.md)
>
> Returns latest known ledger

> [card] [getLedgerEntries](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getLedgerEntries.md)
>
> Returns ledger entries

> [card] [getLedgers](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getLedgers.md)
>
> Returns list of ledgers

> [card] [getNetwork](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getNetwork.md)
>
> Returns network config

> [card] [getTransaction](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getTransaction.md)
>
> Returns transaction details

> [card] [getTransactions](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getTransactions.md)
>
> Returns list of transactions

> [card] [getVersionInfo](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getVersionInfo.md)
>
> Returns version information

> [card] [queryEvents](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/queryEvents.md)
>
> Returns events for a ledger range, ascending or descending, with cursors that do not expire (beta)

> [card] [sendTransaction](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/sendTransaction.md)
>
> Submits a transaction

> [card] [simulateTransaction](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/simulateTransaction.md)
>
> Submits a trial contract invocation transaction

Don't know which endpoint you need to get what you want? A lot of the returned fields are deeply-nested [XDR structures](https://developers.stellar.org/docs/learn/fundamentals/data-format/xdr.md#more-about-xdr), so it can be hard to figure out what kind of information is available in each of these. Here's a bit of a dive into what the "workhorse" endpoints provide, in decreasing order of granularity:

* [`getLedgers`](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getLedgers) operates at the block level, providing you with the full, complete details of what occurred during application of that ledger (known as "ledger metadata", defined in the protocol by the [`LedgerCloseMeta`](https://github.com/stellar/stellar-xdr/blob/v22.0/Stellar-ledger.x#L539) union, specifically the `V1` iteration). Each of the subsequent endpoints is just a microscope into a subset of the data available provided by this endpoint. Metadata includes things like:
  * Details for recreating the blockchain's state (see [Ledger Headers](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/ledgers.md#ledger-headers) for more).
  * The consensus information that led to the block closing (see [Stellar Consensus Protocol](https://developers.stellar.org/docs/learn/fundamentals/stellar-consensus-protocol.md)).
  * The set of transactions, their respective operations, and the results of applying those transactions in this block (see [Transactions](https://developers.stellar.org/docs/learn/fundamentals/transactions/operations-and-transactions.md)).
* [`getTransaction(s)`](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getTransactions) operates across a span of ledgers or on a single transaction hash depending on the variant. The structured data here includes details such as:
  * The exact transaction structure ("envelope") that was submitted.
  * Results for each of the operations within the transaction.
  * All side-effects to ledger state that occurred as a result of this transaction.
* [`getEvents`](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getEvents) lets you search for events that occurred over a ledger range. Events are emitted by the system and by smart contracts to communicate meaningful state changes to off chain indexers (see [Events](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/events.md) for more). Each event is made up of topics (which you can filter on) and data which are `ScVal`s, Stellar's generic "value" type (see [Contract Development](https://developers.stellar.org/docs/learn/fundamentals/contract-development/types/built-in-types.md) for more).
* [`queryEvents`](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/queryEvents) is the successor to `getEvents`. It adds descending order and stateless cursors. It is in beta and only runs on RPC nodes that enable it's new storage engine, so it lives in a separate beta spec and not in the main OpenRPC spec.
* [`getLedgerEntries`](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getLedgerEntries), in contrast to the above endpoints, provides information about **live** on-chain state rather than historical actions. The [getLedgerEntries](https://developers.stellar.org/docs/data/apis/rpc/api-reference/methods/getLedgerEntries.md) page itself goes into detail on the different kinds of state stored on chain and how to fetch them.

If you still aren't sure what you're looking for, remember that you can pass `xdrFormat: "json"` as a parameter to each of these endpoints to get a fully unpacked, human-readable JSON version of the XDR structures returned. You can look through these until you find what you need and go back to the Base64+unpack variation in your app. Equipped with an understanding of how to traverse XDR, the structure of the protocol, and your [favorite SDK](https://developers.stellar.org/docs/tools/sdks), you should be able to find anything you want about the Stellar network with these endpoints.
