transaction - corda

corda / net.corda.testing.node / transaction

# transaction

`@JvmOverloads fun ServiceHub.transaction(notary: Party = TestIdentity.fresh("transaction notary").party, script: TransactionDSL<TransactionDSLInterpreter>.() -> EnforceVerifyOrFail): LedgerDSL<TestTransactionDSLInterpreter, TestLedgerDSLInterpreter>`

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

See Also

LedgerDSLInterpreter._transaction