Function getBatchSessionTxParams

  • getBatchSessionTxParams

    Retrieves the transaction parameters for a batched session.

    Parameters

    • transactions: Transaction[]

      An array of Transactions.

    • correspondingIndexes: null | number[]

      An array of indexes for the transactions corresponding to the relevant session. If not provided, the last {transaction.length} sessions are used.

    • conditionalSession: SessionSearchParam

      SessionSearchParam The session data that contains the sessionID and sessionSigner. If not provided, The default session storage (localStorage in browser, fileStorage in node backend) is used to fetch the sessionIDInfo

    • chain: Chain

      The chain.

    Returns Promise<BatchSessionParamsPayload>

    Promise<BatchSessionParamsPayload> - session parameters.