settlements subscription emits:
settlementwhen PolyNode detects a matching transaction, withstatusset topendingorconfirmedstatus_updatewhen a previously pending transaction is confirmed on-chain
Subscribe to settlements
- TypeScript
- Python
- Rust
snapshotCount / snapshot_count returns recent matching events before live delivery. Set it only when your application benefits from a warm start.
Filter at the server
Filters reduce bandwidth and work before events reach your process.
Example wallet filter:
- TypeScript
- Python
- Rust
Presets
The SDKs use the same subscription names:Acknowledgements
Do not assume a subscription is active before the SDK’s subscribe call resolves. The acknowledgement includes the server-assigned subscription ID and may include warnings. For Chainlink subscriptions it also reports the selected price source and explicit TWAP windows:- TypeScript
- Python
- Rust
Reconnect behavior
Automatic reconnect is enabled by default. After a disconnect, the SDK:- opens a replacement socket
- resubscribes each active subscription with its original filters
- adds a best-effort
sincecursor based on the latest accepted event - overlaps the cursor slightly and removes duplicate delivery in the client
- reports replay state to your application
- TypeScript
- Python
- Rust
Managed short-form streams also reconnect at every market boundary. That deliberate rotation is required to replace the old market slugs and connection-scoped Chainlink selection. See Short-form and TWAP.
Slow consumers
TypeScript and Python async iterators use a bounded per-subscription queue. Register an overflow callback if processing may fall behind:- TypeScript
- Python
- Rust
Forward-compatible events
New event types do not disappear merely because your SDK predates their typed model:- TypeScript emits an
unknownevent containingwire_event_type,raw, and an optional decode error. - Python yields
UnknownEventwith the complete raw payload. - Rust emits
WsMessage::UnknownEventorWsMessage::UnknownMessage.
Cleanup
Stop subscriptions and close their owning socket during shutdown:- TypeScript
- Python
- Rust

