Ironfish Wasm
UsageProtocol

chain/followChainStream

Follows the chain from a given sequence and streams blocks from chain connects and disconnects. If wait is set to false the stream will end when it reaches the head of the chain (true by default).

Request #

{
  head?: string | null
  serialized?: boolean
  wait?: boolean
} | undefined

Response #

{
  type: 'connected' | 'disconnected' | 'fork'
  head: {
    sequence: number
  }
  block: RpcBlock & {
    /**
     * @deprecated this can be derived from the type
     */
    main: boolean
  }
}

RPC Objects:

View on Github

Join our newsletter and stay up to date with privacy and crypto.

Discover our impactful presence — read our blog.