Interface ProgramAccountSubscriber<T>
Methods
subscribe
- subscribe(onChange: ((accountId: PublicKey, data: T, context: Context, buffer: Buffer) => void)): Promise<void>
-
Parameters
-
onChange: ((accountId: PublicKey, data: T, context: Context, buffer: Buffer) => void)
-
- (accountId: PublicKey, data: T, context: Context, buffer: Buffer): void
-
Parameters
-
-
data: T
-
context: Context
-
buffer: Buffer
Returns void
Returns Promise<void>
unsubscribe
- unsubscribe(): Promise<void>
-
Returns Promise<void>