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

  • Parameters

    • program: Program
    • pubkey: PublicKey

    Returns LutMap

Properties

program: Program
pubkey: PublicKey

Methods

  • Loads the data for this LutMap account from on chain.

    Returns Promise<any>

    A promise that resolves to the data.

    if the account does not exist.

  • Returns Promise<[PublicKey, AddressLookupTableState]>

  • Parameters

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

    Returns Promise<TransactionInstruction>

  • Parameters

    • feeds: PublicKey[]

    Returns Promise<void>

  • 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>