minimumLedgerSlot

Returns the lowest slot that the node has information about in its ledger.

minimumLedgerSlot

POSThttps://mainnet.helius-rpc.com/?api-key=<api-key>
Body
jsonrpcenum

The JSON-RPC protocol version.

Example: "2.0"
2.0
idstring

A unique identifier for the request.

Example: "1"
methodenum

The name of the RPC method to invoke.

Example: "minimumLedgerSlot"
minimumLedgerSlot
paramsarray

No parameters are required for this method.

Response

Successfully retrieved the minimum ledger slot number.

Body
jsonrpcenum

The JSON-RPC protocol version.

Example: "2.0"
2.0
idstring

Identifier matching the request.

Example: "1"
resultinteger

Minimum ledger slot number.

Example: 1234
Request
const response = await fetch('https://mainnet.helius-rpc.com/?api-key=<api-key>', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "jsonrpc": "2.0",
      "id": 1,
      "method": "minimumLedgerSlot"
    }),
});
const data = await response.json();
Response
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": 1234
}

Last updated