corda / net.corda.testing.driver / driver


fun <A> driver(defaultParameters: DriverParameters = DriverParameters(), dsl: DriverDSL.() -> A): A

driver allows one to start up nodes like this: driver { val noService = startNode(providedName = val notary = startNode(providedName =



Note that DriverDSL.startNode does not wait for the node to start up synchronously, but rather returns a CordaFuture of the NodeInfo that may be waited on, which completes when the new node registered with the network map service or loaded node data from database.


defaultParameters - The default parameters for the driver. Allows the driver to be configured in builder style when called from Java code.

dsl - The dsl itself.

The value returned in the dsl closure.