Function getAccountInfoAndSubscribe
 
- getAccountInfoAndSubscribe(connection: Connection, publicKey: PublicKey, callback: ((acc: AccountInfo<Buffer>, context: Context) => void), commitment?: Commitment): Promise<number>
 
- 
Parameters
- 
connection: Connection
 
- 
publicKey: PublicKey
 
- 
callback: ((acc: AccountInfo<Buffer>, context: Context) => void)
- 
- (acc: AccountInfo<Buffer>, context: Context): void
 
- 
Parameters
- 
acc: AccountInfo<Buffer>
 
- 
context: Context
 
 
Returns void
 
 
 
- 
Optional commitment: Commitment
 
 
Returns Promise<number>
 
 
 
 
Fetch an account for the specified public key and subscribe a callback to be invoked whenever the specified account changes.
Returns
subscription id