@lightprotocol/compressed-token - v0.23.0-beta.8
    Preparing search index...

    Function deriveSplInterfaceInfo

    • Derive SplInterfaceInfo for an SPL interface that will be initialized in the same transaction. Use this when you need to create an SPL interface and compress in a single transaction.

      Parameters

      • mint: PublicKey

        The mint of the SPL interface

      • tokenProgramId: PublicKey

        The token program (TOKEN_PROGRAM_ID or TOKEN_2022_PROGRAM_ID)

      • poolIndex: number = 0

        The pool index. Default 0.

      Returns SplInterfaceInfo

      SplInterfaceInfo for the to-be-initialized interface