transaction

fun transaction(type: ConsistencyLevel, body: TransactionBody): Transaction

Creates a transaction.

Parameters

body

the transaction body function.

type

the desired consistency level.