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)
}
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.
^(0x)?[0-9a-fA-F]{64}$