A map of LUTs to their public keys.

Users can initialize to compact all oracle and feed keys they use into a single account, and then use the LUT to load all tx keys efficiently.

Constructors

Properties

program: Program
pubkey: PublicKey

Methods

  • Parameters

    • params: { newKey: PublicKey; payer: PublicKey; queue: PublicKey }

    Returns Promise<TransactionInstruction>

  • Creating a LUT map account will allow a user or protocol to easy manage and associate a common account grouping for their feeds to reduce the total number of transaction bytes taken by Switchboard. This will maximize the flexibility users have in their instructions.

    Parameters

    • program: Program

      The program that owns the LUT map account.

    • queue: PublicKey

      The queue account that the LUT map is associated with.

    • slot: BN

      The slot that the LUT map is associated with.

    Returns Promise<[LutMap, string]>

    A promise that resolves to the LUT map and the transaction signature.

  • The public key of the LUT map account.

    Parameters

    • program: Program
    • queue: PublicKey
    • authority: PublicKey

    Returns Promise<PublicKey>