Kit
Interfaces

BaseAccount

Defines the attributes common to all Solana accounts. Namely, it contains everything stored on-chain except the account data itself.

Example

const BaseAccount: BaseAccount = {
    executable: false,
    lamports: lamports(1_000_000_000n),
    programAddress: address('1111..1111'),
    space: 42n,
};

Properties

PropertyModifierType
executablereadonlyboolean
lamportsreadonlyLamports
programAddressreadonlyAddress
spacereadonlybigint

On this page