OpenInfra.sh is now live - Solana infrastructure, included with every server. LEARN MORE HERE >

OpenInfra.shopeninfra.sh

getMaxRetransmitSlot

Returns the highest slot this node has observed in retransmit.

Request

Send a JSON-RPC 2.0 POST request with method: "getMaxRetransmitSlot". This method takes no parameters.

curl · JSON-RPCjson
{  "jsonrpc": "2.0",  "id": 1,  "method": "getMaxRetransmitSlot"}

@solana/kit

kit.tsts
import { createSolanaRpc } from "@solana/kit"; const rpc_url = "https://rpc.openinfra.sh";const rpc = createSolanaRpc(rpc_url); let maxRetransmitSlot = await rpc.getMaxRetransmitSlot().send(); console.log(maxRetransmitSlot);

Rust

main.rsrs
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://rpc.openinfra.sh"),        CommitmentConfig::confirmed(),    );     let max_retransmit_slot = client.get_max_retransmit_slot().await?;     println!("{:#?}", max_retransmit_slot);     Ok(())}

Response

response.jsonjson
{  "jsonrpc": "2.0",  "result": 1234,  "id": 1}

The result is a single u64 value — no wrapping object.

FieldTypeDescription
resultu64Highest slot observed by the node's retransmit stage.