On-chain account data returned by Solana RPC.

1.0.0

interface AccountInfo<D> {
    data: D;
    executable: boolean;
    lamports: Lamports;
    owner: never;
    rentEpoch: Epoch;
    space: number;
}

Type Parameters

  • D = string

    The encoding type for account data (string, Buffer, parsed JSON).

Properties

data: D

Account data in the requested encoding.

executable: boolean

Whether this account contains an executable program.

lamports: Lamports

Account balance in lamports.

owner: never

Owner program of this account.

rentEpoch: Epoch

Rent epoch for this account.

space: number

Account data size in bytes.