Swig TS — API References
    Preparing search index...

    Function compactInstructions

    • Convert TransactionInstructions to CompactInstructions

      Type Parameters

      • T extends [AccountMeta, AccountMeta, ...AccountMeta[]]

      Parameters

      • swigAccount: PublicKey

        Swig account

      • accounts: T

        SignInstruction AccountMetas

      • innerInstructions: TransactionInstruction[]

        Transaction instructions to convert

      • OptionalsubAccount: PublicKey

      Returns { accounts: T; compactIxs: CompactInstruction[] }

      Object with Combined AccountMetas (accounts) & CompactInstructions (compactIxs)