Skip to main content

Module subscriptions

Module subscriptions 

Source

Structs§

AccountDiffContext
Slot context included in every account diff notification.
AccountDiffNotification
A single account diff notification delivered by accountDiffSubscribe.
AccountDiffSubscriptionHandle
Handle for a running account diff subscription background task.
ActionResultContext
ActionResultNotification
One scheduled-action result delivered by actionSubscribe.
ActionSubscriptionHandle
Handle for a running scheduled-action subscription background task.
ActionTransactionOutcome
One transaction’s result within a scheduled action’s sequence.
DiagnosticContext
DiagnosticNotification
One market’s /diagnostic sample at one size, delivered by diagnosticSubscribe: the router’s own pricing, not a fill the venue produced.
DiagnosticSubscriptionHandle
DirectFillNotification
One direct-fill probe’s result - the DirectFill shape of ReplacementNotification: a single hop re-priced through a direct-fill template, simulated against the state it would have traded on.
L1Score
What the original filled on L1, and how the shape carrying this scored against it.
LogSubscriptionHandle
Handle for a running log subscription background task.
OriginalNotification
One replayed original - the Original shape of ReplacementNotification: the historical transaction itself, re-run against the state it was quoted at, so the other two kinds are scored against a number produced the same way rather than against the chain’s.
ProbedHop
The hop a probe re-priced, as L1 and as the replay ran it.
ReplacementContext
The slot the payload was produced at, in the shape every other subscription’s context takes.
ReplacementCore
The identity and ending every replacement payload carries, whatever kind it is.
RequoteNotification
One rerouted transaction’s simulation result - the Requote shape of ReplacementNotification. The historical original still executed; this is the counterfactual, committed nowhere.
RerouteLegNotification
One re-quoted swap within a rerouted transaction’s simulation.
RoutedAccountDiffNotification
A routed account diff notification tied to the subscribed account that produced it.
SubscriptionHandle
A unified subscription handle that can represent any subscription type.

Enums§

ReplacementNotification
What stood in for a historical swap, streamed over replacementSubscribe. Internally tagged on kind: three mechanisms answer different questions - metis re-routing a whole transaction, a probe re-pricing one hop, and the original replayed as its own baseline - so they carry different shapes rather than one union.
SubscriptionError
Error establishing a PubSub log subscription.
SubscriptionRuntimeError
UiAccountConversionError
Error decoding a serialized UiAccount into the wire AccountData shape.

Functions§

account_data_from_ui
Decode a serde-serialized UiAccount (the pre/post payload shape) into the wire AccountData shape. Only base64 data is supported; space falls back to the decoded data length when absent.
subscribe_account_diffs
Subscribe to account diff notifications and invoke a callback for each one.
subscribe_account_diffs_many
Subscribe to account diff notifications for many accounts over a single websocket.
subscribe_actions
Subscribe to scheduled-action results streamed over actionSubscribe.
subscribe_diagnostics
Subscribe to /diagnostic samples. Probes are registered in CreateSessionParams; this only attaches the consumer.
subscribe_program_diffs
Subscribe to account diff notifications for all accounts owned by a program.
subscribe_program_logs
Subscribe to program log notifications and invoke a callback for each one.
subscribe_replacements
Subscribe to replacement results streamed over replacementSubscribe.