-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
watchAccount(address)
Add a watcher inside @gillsdk/core for a single account that streams updates via WebSocket and falls back to polling
watchAccount(address: PublicKey, opts?: { commitment?: Commitment; transport?: WsTransport })
use makeDurableWs by default - fallback to polling if WS transport is not available
emit { slot, accountInfo } on change
remember to handle disconnects/reconnects cleanly!
watchProgramLogs(programId)
add a watcher for program logs, with reconnect + filtering support
watchProgramLogs(programId: PublicKey, opts?: { filter?: 'all'|'error'|'success'; transport?: WsTransport }
parse logs into { signature, slot, logs[] }
allow for filtering and expose an unsubscribe function
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels