References
Account Types
Minimal reference examples for Anchor account types.
Type | Example | Description |
---|---|---|
| Account container that checks ownership on deserialization | |
| AccountInfo can be used as a type but Unchecked Account should be used instead | |
| Type facilitating on demand zero copy deserialization | |
| Box type to save stack space | |
| Type validating that the account is one of a set of given Programs | |
| Account container that checks ownership on deserialization | |
| Option type for optional accounts | |
| Type validating that the account is the given Program | |
| Type validating that the account signed the transaction | |
| Type validating that the account is owned by the system program | |
| Type validating that the account is a sysvar and deserializing it | |
| Explicit wrapper for AccountInfo types to emphasize that no checks are performed |