Coda by Ian Macalinao
    Preparing search index...

    Interface ProgramNode<TPdas, TAccounts, TInstructions, TDefinedTypes, TErrors, TEvents, TConstants>

    A Solana program: its identity, version, accounts, instructions, defined types, PDAs, events, errors, and constants.

    Diagram

    interface ProgramNode<
        TPdas extends PdaNode[]
        | undefined = PdaNode[] | undefined,
        TAccounts extends AccountNode[] | undefined = AccountNode[] | undefined,
        TInstructions extends
            InstructionNode[] | undefined = InstructionNode[] | undefined,
        TDefinedTypes extends
            DefinedTypeNode[]
            | undefined = DefinedTypeNode[] | undefined,
        TErrors extends ErrorNode[]
        | undefined = ErrorNode[] | undefined,
        TEvents extends EventNode[] | undefined = EventNode[] | undefined,
        TConstants extends ConstantNode[] | undefined = ConstantNode[] | undefined,
    > {
        accounts?: TAccounts;
        constants?: TConstants;
        definedTypes?: TDefinedTypes;
        docs?: Docs;
        errors?: TErrors;
        events?: TEvents;
        instructions?: TInstructions;
        kind: "programNode";
        name: CamelCaseString;
        origin?: ProgramOrigin;
        pdas?: TPdas;
        publicKey: string;
        version: `${number}.${number}.${number}`;
    }

    Type Parameters

    Index
    accounts?: TAccounts

    The accounts owned by the program.

    constants?: TConstants

    The constants exposed by the program.

    definedTypes?: TDefinedTypes

    The reusable types defined by the program.

    docs?: Docs

    Markdown documentation for the program.

    errors?: TErrors

    The errors returned by the program.

    events?: TEvents

    The events emitted by the program.

    instructions?: TInstructions

    The instructions exposed by the program.

    kind: "programNode"

    The name of the program.

    origin?: ProgramOrigin

    The toolchain that originally generated the program description, if known.

    pdas?: TPdas

    The PDAs derived by the program.

    publicKey: string

    The base58-encoded program ID.

    version: `${number}.${number}.${number}`

    The version of the program, in semver form.