---
title: minimumLedgerSlot
description: >-
  Returns the lowest slot still present in this node's local ledger.
url: /docs/rpc/http/minimumledgerslot
type: reference
hideTableOfContents: true
---

Returns the lowest slot still present in this node's local ledger.

<Callout type="info" title="Source">
  [`minimum_ledger_slot`](https://github.com/anza-xyz/agave/blob/v3.1.8/rpc/src/rpc.rs#L1009)
</Callout>

<Callout type="info">
  This value may increase over time if the node is configured to purge older
  ledger data.
</Callout>

<APIMethod>

```jsonc !!request curl
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "minimumLedgerSlot"
}
```

```ts !!request title="Kit"
import { createSolanaRpc } from "@solana/kit";

const rpc_url = "https://api.devnet.solana.com";
const rpc = createSolanaRpc(rpc_url);

let minLedgerSlot = await rpc.minimumLedgerSlot().send();

console.log(minLedgerSlot);
```

```ts !!request title="web3.js"
import { Connection, clusterApiUrl } from "@solana/web3.js";

const connection = new Connection(clusterApiUrl("devnet"), "confirmed");

let minLedgerSlot = await connection.getMinimumLedgerSlot();

console.log(minLedgerSlot);
```

```rs !!request title="Rust"
use anyhow::Result;
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_commitment_config::CommitmentConfig;

#[tokio::main]
async fn main() -> Result<()> {
    let client = RpcClient::new_with_commitment(
        String::from("https://api.devnet.solana.com"),
        CommitmentConfig::confirmed(),
    );

    let min_ledger_slot = client.minimum_ledger_slot().await?;

    println!("{}", min_ledger_slot);

    Ok(())
}
```

### !params

### !!result

```jsonc !response
{
  "jsonrpc": "2.0",
  // !hover result
  "result": 1234,
  "id": 1
}
```

!type u64

The minimum ledger slot number

</APIMethod>
