Function createLedgerContext

  • Create a [[LedgerContext]]. One should use this function, instead of the default [[DamlLedger]], where one needs to be able to nest ledger interactions, by different parties or connections, within one React application.

    Parameters

    • contextName: string = "DamlLedgerContext"

      Used to refer to a context in case of errors.

    Returns LedgerContext