> For the complete documentation index, see [llms.txt](https://docs.bloxroute.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bloxroute.com/bsc/submit-transactions/ping.md).

# Ping

Cloud-API and Go Gateway provide a WebSocket **`ping`** request that can be used to measure the latency from the endpoint and to keep the WebSocket connection alive.

Service available on both Cloud API and Gateway-API.

## Stream Endpoint

* Method: `ping`
* Endpoint: `wss://api.blxrbdn.com/ws`

### REQUEST

**Method:** ping

**Parameters:** None

#### Examples

{% tabs %}
{% tab title="Cloud-API" %}

```bash
wscat -c wss://api.blxrbdn.com/ws --header "Authorization: <YOUR-AUTHORIZATION-HEADER>"
> {"id": 1, "method": "ping", "params": null}
< ......

```

{% endtab %}

{% tab title="Go Gateway" %}

```bash
wscat -c ws://127.0.0.1:28333/ws --header "Authorization: <YOUR-AUTHORIZATION-HEADER>"
> {"id": 1, "method": "ping", "params": null}
< ......

```

We assume that the Gateway IP is 127.0.0.1 with ws port 28333
{% endtab %}
{% endtabs %}

### RESPONSE

#### Result Fields

| Result Field | Description                                                                |
| ------------ | -------------------------------------------------------------------------- |
| **`pong`**   | The UTC time (in microsecond format) that WS server receives ping request. |

#### Example

```bash
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "pong": "2021-10-20 17:53:54.950292"
  }
}

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bloxroute.com/bsc/submit-transactions/ping.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
