Actions are standalone functions that take a client: action(client, params). Each maps to one
REST route; see the REST API reference for response fields.
Local verification (verifyFilter, matchFilter, verifyMerkleBranch, verifyCheckpoint) is in
the Light client guide.
Events
watchEvents returns an async iterator over the node's SSE stream (/v1/events) or, with a
gateway client, /gateway/v1/stream. It reconnects on errors and both streams resume after
lastEventId (the node keeps its last 1,000 events and sends stream.reset for older gaps).
import { watchEvents } from 'arrekta-sdk'const controller = new AbortController()for await (const event of watchEvents(client, { signal: controller.signal })) { console.log(event.type, event.id)}