corda / net.corda.testing.node / transaction

transaction

fun <ERROR CLASS>.transaction(notary: <ERROR CLASS> = TestIdentity.fresh("transaction notary").party, script: TransactionDSL<TransactionDSLInterpreter>.() -> EnforceVerifyOrFail): <ERROR CLASS>

Creates a ledger with a single transaction, built by the passed in dsl.

See Also

LedgerDSLInterpreter._transaction