newBlock
ChannelnewBlockserver → client · type
newBlockTick the current block height once per second.
Subscribe · parameter-less action
{
"method": "subscribe",
"type": "newBlock"
}Try it
Subscription parameters
No parameters. Subscribe with the top-level
type / action shown above — there is no subscription object.Server message
channelstring
"newBlock"dataNewBlockPayload
blockNuminteger
Message example
{
"channel": "newBlock",
"data": {
"blockNum": 0
}
}