minimumledgerslot

Solana RPC

Archive Method

Only on the full archive nodes. Complex queries might take longer and incur additional cost

How to Use It

// yarn add @tatumio/tatum

import { TatumSDK, Solana, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Solana>({ network: Network.SOLANA })

const res = await tatum.rpc.minimumLedgerSlot()

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

Overview

The minimumLedgerSlot method returns the lowest slot number that the node has information about in its ledger. This is useful when tracking the node's ledger history, such as for auditing, ledger analysis, or understanding the node's data retention policies.

Note: This value may change over time if the node is configured to purge older ledger data, meaning that older data may no longer be accessible.

Parameters

This method does not require any parameters.

Return Object

The method returns an integer that represents the minimum ledger slot number.

JSON-RPC Request Example

{
  "jsonrpc":"2.0",
  "id":1,
  "method":"minimumLedgerSlot"
}

JSON-RPC Response Example

{
  "jsonrpc": "2.0",
  "result": 1234,
  "id": 1
}