---
updatedAt: 2026-05-13T16:18:36.000Z
---

Fetch the complete documentation index at: https://docs.blockdaemon.com/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# Stellar

### Supported Networks & History Retention

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Network
      </th>

      <th style={{ textAlign: "left" }}>
        Node Type
      </th>

      <th style={{ textAlign: "left" }}>
        History Retention
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        Mainnet
      </td>

      <td style={{ textAlign: "left" }}>
        Horizon Full History
      </td>

      <td style={{ textAlign: "left" }}>
        Full ledger history
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        Testnet
      </td>

      <td style={{ textAlign: "left" }}>
        Horizon Node
      </td>

      <td style={{ textAlign: "left" }}>
        History available **since the most recent testnet reset**

        Testnet resets typically occur on a quarterly basis. Historical data prior to the reset is no longer available via the Horizon API after each reset.
      </td>
    </tr>
  </tbody>
</Table>

***

**Step 1:** To access Stellar, use the following native access endpoint:

* **Network:** Stellar Mainnet/Testnet
* **Request Type:** GET / POST

```
https://svc.blockdaemon.com/stellar/mainnet/native
```

**Step 2:** Authenticate your request using your API key. You can include the API key using either of the following headers:

```curl Bearer Token
Authorization: Bearer YOUR_API_KEY
```

```curl X-API-Key
X-API-Key: YOUR_API_KEY
```

**Step 3:** Specify a Stellar method at the end of the query:

> Learn more about Stellar methods [here](https://docs.blockdaemon.com/reference/stellar-methods-rpc-api).

```
https://svc.blockdaemon.com/stellar/mainnet/native/YOUR_METHOD
```

**Step 4:** For POST requests, specify the required data in the request body.

### Example Request

Here is a cURL example for using **[ledgers](https://developers.stellar.org/docs/learn/fundamentals/stellar-data-structures/ledgers)** to list all ledgers in Stellar Mainnet:

```curl
curl -X GET \
https://svc.blockdaemon.com/stellar/mainnet/native/ledgers \
-H 'Authorization: Bearer YOUR_API_KEY'
```

The following is a typical response you will get:

```json
{
    "_links": {
        "self": {
            "href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers?cursor=&limit=10&order=asc"
        },
        "next": {
            "href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers?cursor=47244640256&limit=10&order=asc"
        },
        "prev": {
            "href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers?cursor=8589934592&limit=10&order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2"
                    },
                    "transactions": {
                        "href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2/transactions{?cursor,limit,order}",
                        "templated": true
                    },
                    "operations": {
                        "href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2/operations{?cursor,limit,order}",
                        "templated": true
                    },
                    "payments": {
                        "href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2/payments{?cursor,limit,order}",
                        "templated": true
                    },
                    "effects": {
                        "href": "https://ubiquity-fullnode-2-mainnet.stellar.bdnodes.net/ledgers/2/effects{?cursor,limit,order}",
                        "templated": true
                    }
                },
                "id": "fe0f6bea5f341344fdb5bc6fc4ad719dd63071d9203e9a1e7f17c68ea1ecebde",
                "paging_token": "8589934592",
                "hash": "fe0f6bea5f341344fdb5bc6fc4ad719dd63071d9203e9a1e7f17c68ea1ecebde",
                "prev_hash": "39c2a3cd4141b2853e70d84601faa44744660334b48f3228e0309342e3f4eb48",
                "sequence": 2,
                "successful_transaction_count": 0,
                "failed_transaction_count": 0,
                "operation_count": 0,
                "tx_set_operation_count": 0,
                "closed_at": "2015-09-30T16:46:54Z",
                "total_coins": "100000000000.0000000",
                "fee_pool": "0.0000000",
                "base_fee_in_stroops": 100,
                "base_reserve_in_stroops": 100000000,
                "max_tx_set_size": 500,
                "protocol_version": 1,
                "header_xdr": "AAAAATnCo81BQbKFPnDYRgH6pEdEZgM0tI8yKOAwk0Lj9OtIzUjr/foF3Zu1Snl7gIUXUGqhoUJG2tzUKbNoPAsFhpEAAAAAVgwR/gAAAAIAAAAIAAAAAQAAAAEAAAAIAAAAAwAAAfQAAAAA3z9hmASpL9tAVxktxD3XSOp3itxSvEmM6AUkwBS4ERmR2QgH0N3bkOnEnemuBV73KfTL2fMONrNcU1pXRKIkMgAAAAIN4Lazp2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAX14QAAAAH0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
            },
            { ...more items... }
        ]
    }
}
```

## 👋 Need Help?

Contact us through [email](mailto:support@blockdaemon.com) or our [support page](https://www.blockdaemon.com/support) for any issues, bugs, or assistance you may need.