# getMaxRetransmitSlot – Solana

{% hint style="success" %}
The **getMaxRetransmitSlot** RPC Solana method provides insight into the highest slot number seen during the retransmit stage.
{% endhint %}

The getMaxRetransmitSlot method returns **the highest slot that the node has retransmitted to the network**. It helps developers monitor node behavior, assess data propagation, and analyze the effectiveness of Solana’s block transmission process.

### Supported Networks

This method is available on the following API endpoints:

* Mainnet

### Parameters

{% hint style="info" %}
The getMaxRetransmitSlot request does not require any parameters.
{% endhint %}

### Result

The response returns a single `u64` value, representing **the maximum slot seen from the retransmit stage**.

### Request Example

#### API Endpoints

```json
https://go.getblock.io/<ACCESS-TOKEN>/
```

#### cURL Example

{% tabs %}
{% tab title="curl" %}

```json
curl --location "https://go.getblock.io/<ACCESS-TOKEN>/" -XPOST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getMaxRetransmitSlot"
}'
```

{% endtab %}
{% endtabs %}

### Response

A successful request returns the highest slot number observed from the retransmit stage.

#### Example Response

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

### Error Handling

Common getMaxRetransmitSlot error scenarios:

* Network errors: Connectivity issues with the Solana JSON-RPC API endpoints.
* Invalid request format: Sending a malformed JSON request.

#### Example Error Response

```json
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32602,
    "message": "Invalid request format"
  },
  "id": 1
}
```

### Use Cases

The Solana **getMaxRetransmitSlot** method is useful for:

* **Validators and nodes**: Monitoring the slot retransmit stage for block propagation efficiency;
* **Web3 analytics tools**: Tracking real-time slot dissemination;
* **Blockchain infrastructure**: Understanding slot propagation trends to optimize network performance.

### Code getMaxRetransmitSlot Example – Web3 Integration

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const axios = require('axios');

const url = "https://go.getblock.io/<ACCESS-TOKEN>/"; 
const headers = { "Content-Type": "application/json" };

const payload = {
  jsonrpc: "2.0",
  id: 1,
  method: "getMaxRetransmitSlot"
};

const fetchMaxRetransmitSlot = async () => {
  try {
    const response = await axios.post(url, payload, { headers });

    if (response.status === 200 && response.data.result !== undefined) {
      console.log("Max Retransmit Slot:", response.data.result);
    } else {
      console.error("Unexpected response:", response.data);
    }
  } catch (error) {
    console.error("getMaxRetransmitSlot error:", error.response?.data || error.message);
  }
};

fetchMaxRetransmitSlot();

```

{% endtab %}
{% endtabs %}

### Integration with Web3

By integrating Web3 **getMaxRetransmitSlot** into Solana’s Core API, developers can track network slot propagation, monitor block dissemination, and improve transaction confirmation strategies. The JSON-RPC request structure allows seamless retrieval of retransmit slot data, ensuring efficient blockchain operations for dApps, validators, and infrastructure providers.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getblock.io/api-reference/solana-sol/getmaxretransmitslot-solana.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
