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.

    interface ProgramNode<
        TPdas extends PdaNode[] = PdaNode[],
        TAccounts extends AccountNode[] = AccountNode[],
        TInstructions extends InstructionNode[] = InstructionNode[],
        TDefinedTypes extends DefinedTypeNode[] = DefinedTypeNode[],
        TErrors extends ErrorNode[] = ErrorNode[],
        TEvents extends EventNode[] = EventNode[],
        TConstants extends ConstantNode[] = ConstantNode[],
    > {
        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.