InvocationContext.newInstance - corda

corda / net.corda.core.context / InvocationContext / newInstance

# newInstance

`@JvmStatic @JvmOverloads fun newInstance(origin: InvocationOrigin, trace: Trace = Trace.newInstance(), actor: Actor? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?> = emptyList(), clientId: String? = null, serializedTelemetry: SerializedTelemetry? = null): InvocationContext`

Creates an InvocationContext with a Trace that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.