Interface DataSource

Hierarchy

  • DataSource

Methods

  • Closes the data source and all programs within it.

    Returns Promise<void>

  • Insert a program into the data source.

    Type Parameters

    • Accounts extends Record<string, Account>

    • IDL extends Idl

    Parameters

    • program: ListenProgram<Accounts, IDL>

      The program to add.

    • startupCommitment: TransactionConfirmationStatus | "recent"

      The commitment level to use when fetching accounts on startup.

    Returns Promise<InsertProgramReturn>

    A function that can be called to remove the program from the data source.

  • Repeat startup for all programs.

    Returns Promise<void>

Generated using TypeDoc