Anchor
Conventions the Anchor framework layers on top of raw accounts and instructions — discriminators, space, and rent.
Anchor Account Discriminator
Anchor framework · 8 bytes
The 8-byte prefix Anchor stamps on every account it owns, derived from the account's struct name. It's how an Anchor program tells its own account types apart.
Explore
Anchor init & Account Space
Anchor framework
How Anchor's
Explore
Anchor Instruction Discriminator
Anchor framework · 8 bytes
The 8-byte prefix on every Anchor instruction's data, derived from the instruction name. It's how an Anchor program routes incoming instructions to the right handler.
Explore