- Preparing search index...
- The search index is not available
API References
Function assertAccountExists
- assertAccountExists<T>(account: MaybeAccount<T>, name?: string, solution?: string): asserts account is AccountInfo & {
publicKey: PublicKey;
data: T;
} & {
exists: true;
}
-
Parameters
-
-
Optional
name: string
-
Optional
solution: string
Returns asserts account is AccountInfo & {
publicKey: PublicKey;
data: T;
} & {
exists: true;
}