@lightprotocol/stateless.js - v0.22.1-alpha.1
    Preparing search index...

    Function packTreeInfos

    • Packs TreeInfos. Replaces PublicKey with index pointer to remaining accounts.

      Only use for MUT, CLOSE, NEW_ADDRESSES. For INIT, pass newAddressParamsPacked and outputStateTreeIndex to your program instead.

      Parameters

      • remainingAccounts: PublicKey[]

        Optional existing array of accounts to append to.

      • accountProofInputs: AccountProofInput[]

        Account proof inputs.

      • newAddressProofInputs: NewAddressProofInput[]

        New address proof inputs.

      Returns PackedTreeInfos

      Remaining accounts, packed state and address tree infos, state tree output index and address tree infos.