@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / reactivity / ReactivityNotification

Interface: ReactivityNotification

Defined in: packages/sdk/src/reactivity/index.ts:130

What watch's onData is actually called with.

NOTE the nesting: viem's WebSocket transport unwraps the JSON-RPC envelope before handing it over, so the payload is at notification.result — not notification.params.result, which upstream's README and type docs still describe (verified against a live node).

ts
onData: (n: ReactivityNotification) => console.log(n.result.simulationResults)

Properties

subscription

subscription: string

Defined in: packages/sdk/src/reactivity/index.ts:132

The node's subscription id this notification belongs to.


result

result: ReactivityEvent

Defined in: packages/sdk/src/reactivity/index.ts:134

The matched log + its atomic call results.