Type Alias AccountNotificationsApi
AccountNotificationsApi: { accountNotifications( address: Address, config: Readonly<{ commitment?: Commitment }> & Readonly< { encoding: "base64" }, >, ): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>; accountNotifications( address: Address, config: Readonly<{ commitment?: Commitment }> & Readonly< { encoding: "base64+zstd" }, >, ): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>; accountNotifications( address: Address, config: Readonly<{ commitment?: Commitment }> & Readonly< { encoding: "jsonParsed" }, >, ): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>; accountNotifications( address: Address, config: Readonly<{ commitment?: Commitment }> & Readonly< { encoding: "base58" }, >, ): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>; accountNotifications( address: Address, config?: Readonly<{ commitment?: Commitment }>, ): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>;} Type declaration
accountNotifications:function
- accountNotifications(
address: Address,
config: Readonly<{ commitment?: Commitment }> & Readonly<
{ encoding: "base64" },
>,
): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }> - accountNotifications(
address: Address,
config: Readonly<{ commitment?: Commitment }> & Readonly<
{ encoding: "base64+zstd" },
>,
): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }> - accountNotifications(
address: Address,
config: Readonly<{ commitment?: Commitment }> & Readonly<
{ encoding: "jsonParsed" },
>,
): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }> - accountNotifications(
address: Address,
config: Readonly<{ commitment?: Commitment }> & Readonly<
{ encoding: "base58" },
>,
): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }> - accountNotifications(
address: Address,
config?: Readonly<{ commitment?: Commitment }>,
): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>
Subscribe to an account to receive notifications when the lamports or data for a given account public key changes.
The notification format is the same as seen in the
getAccountInfoRPC HTTP method.