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: {
hash: string
sequence: number
previous: string
graffiti: string
difficulty: string
size: number
timestamp: number
work: string
main: boolean
transactions: Array<{
serialized?: string
hash: string
size: number
fee: number
expiration: number
notes: Array<{
commitment: string
}>
spends: Array<{
nullifier: string
commitment: string
size: number
}>
mints: Array<{
id: string
metadata: string
name: string
creator: string
value: string
transferOwnershipTo: string | undefined
}>
burns: Array<{
id: string
value: string
}>
}>
}
}