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

TransactionStorage

@DoNotImplement interface TransactionStorage

Thread-safe storage of transactions.

Properties

updates

Get a synchronous Observable of updates. When observations are pushed to the Observer, the vault will already incorporate the update.

abstract val updates: Observable<SignedTransaction>

Functions

getTransaction

Return the transaction with the given id, or null if no such transaction exists.

abstract fun getTransaction(id: SecureHash): SignedTransaction?

track

Returns all currently stored transactions and further fresh ones.

abstract fun track(): DataFeed<List<SignedTransaction>, SignedTransaction>

trackTransaction

Returns a future that completes with the transaction corresponding to id once it has been committed

abstract fun trackTransaction(id: SecureHash): CordaFuture<SignedTransaction>