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<Idl>
pubkey: PublicKey

Methods

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

    Returns Promise<any>

    A promise that resolves to the data.

    Throws

    if the account does not exist.

  • Parameters

    • params: {
          newKey: PublicKey;
          payer: PublicKey;
          queue: PublicKey;
      }
      • 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<Idl>

      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<Idl>
    • queue: PublicKey
    • authority: PublicKey

    Returns Promise<PublicKey>

Generated using TypeDoc