Class OneShotUserAccountSubscriber

Simple implementation of UserAccountSubscriber. It will fetch the UserAccount date on subscribe (or call to fetch) if no account data is provided on init. Expect to use only 1 RPC call unless you call fetch repeatedly.

Hierarchy

Implements

Constructors

Properties

callbackId?: string
commitment: Commitment
errorCallbackId?: string
eventEmitter: StrictEventEmitter<EventEmitter<DefaultEventMap>, UserAccountEvents, UserAccountEvents, "addEventListener" | "removeEventListener", "on" | "addListener" | "removeListener" | "once" | "emit">
isSubscribed: boolean
program: Program<Idl>
userAccountPublicKey: PublicKey

Methods

Generated using TypeDoc