net.corda.core.node.services / TransactionStorage / addTransaction

# addTransaction

`abstract fun addTransaction(transaction: SignedTransaction): Boolean`

Add a new transaction to the store. If the store already has a transaction with the same id it will be overwritten.

### Parameters

`transaction` - The transaction to be recorded.

Return
true if the transaction was recorded successfully, false if it was already recorded.