Coda by Ian Macalinao
    Preparing search index...

    Interface AccountNode<TData, TPda, TDiscriminators>

    An on-chain account: its name, data structure, optional fixed size, optional PDA, and optional discriminators.

    interface AccountNode<
        TData extends
            NestedTypeNode<StructTypeNode> = NestedTypeNode<StructTypeNode>,
        TPda extends PdaLinkNode
        | undefined = PdaLinkNode | undefined,
        TDiscriminators extends
            DiscriminatorNode[] | undefined = DiscriminatorNode[] | undefined,
    > {
        data: TData;
        discriminators?: TDiscriminators;
        docs?: Docs;
        kind: "accountNode";
        name: CamelCaseString;
        pda?: TPda;
        size?: number;
    }

    Type Parameters

    Index
    data: TData

    The struct describing the account data.

    discriminators?: TDiscriminators

    Discriminators that distinguish this account from others in the program. When multiple are listed, they are combined with a logical AND.

    docs?: Docs

    Markdown documentation for the account.

    kind: "accountNode"

    The name of the account.

    pda?: TPda

    A link to the PDA the account is derived from, if applicable.

    size?: number

    The size of the account in bytes, when the data length is fixed.