Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

newBlock

ChannelnewBlockserver → client · type newBlock

Tick the current block height once per second.

Subscribe · parameter-less action
{
  "method": "subscribe",
  "type": "newBlock"
}
Try it
WS wss://rpc.txflow-testnet.xyz/ws
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
  }
}