Beat2

(Websocket) Beats

get

Establish a websocket connection to receive blockchain beats, which contain a summary of new blocks and bloom filters composited with affected addresses.

Example:

const ws = new WebSocket('ws://localhost:8669/subscriptions/beat2')

ws.onmessage = (event) => {
  console.log(event.data)
}
Query parameters
posstringOptional

A saved block ID for resuming the subscription. If omitted, the best block ID is assumed.

Note: If the provided position is too far behind the best block, a 403 error will be thrown. The allowable difference depends on the configuration of each node.

See the argument api-backtrace-limit when starting a node.

Pattern: ^(0x)?[0-9a-fA-F]{64}$
Responses
200
OK
application/json
Responseall of
and
and
get
GET /subscriptions/beat2 HTTP/1.1
Host: vet.nownodes.io
Accept: */*
{
  "obsolete": false,
  "number": 325324,
  "id": "0x0004f6cc88bb4626a92907718e82f255b8fa511453a78e8797eb8cea3393b215",
  "parentID": "0x0004f6cb730dbd90fed09d165bfdf33cc0eed47ec068938f6ee7b7c12a4ea98d",
  "timestamp": 1533267900,
  "txsFeatures": 0,
  "bloom": "0x0424c1ff47029280",
  "k": 13,
  "gasLimit": 12000000
}