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.

bdnBlocks is a stream of all new blocks as they are propagated in the BDN. The blocks published in the bdnBlocks stream may include blocks that will not be accepted on chain. This stream offers significant performance speed over the newBlocks stream (from the Gateway or the node).

Service available on both Cloud API and Gateway-API.

Stream Endpoint

  • Method: ping

  • Endpoint: https://tools.bloxroute.com

REQUEST

Method: ping

Parameters: None

Examples

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

RESPONSE

Result Fields

Result Field

Description

pong

The UTC time (in microsecond format) that WS server receives ping request.

Example

Last updated