corda / net.corda.testing.node / StartedMockNode / transaction

transaction

fun <T> transaction(statement: () -> T): T

Executes given statement in the scope of transaction.

Parameters

statement - to be executed in the scope of this transaction.