An incoming message sent from the Krist server to a websocket client.

Hierarchy

Properties

block: KristBlock

The block that was just mined.

error?: string

If ok is false, the error code from the Krist API.

event: "block"
message?: string

If ok is false, a human-readable error message from the Krist API.

new_work: number

The new Krist work (difficulty).

ok: boolean

Whether the request succeeded.

parameter?: string

If ok is false, the parameter that caused the error (if available).

type: "event"

The type of incoming message.

Generated using TypeDoc