UniquenessProvider

A service that records input states of the given transaction and provides conflict information if any of the inputs have already been used in another transaction.

Types

Link copied to clipboard
sealed class Result

The outcome of committing and signing a transaction.

Functions

Link copied to clipboard
abstract fun commit(states: List<StateRef>, txId: SecureHash, callerIdentity: Party, requestSignature: NotarisationRequestSignature, timeWindow: TimeWindow? = null, references: List<StateRef> = emptyList()): CordaFuture<UniquenessProvider.Result>

Commits all input states of the given transaction.

Link copied to clipboard
open fun getEta(numStates: Int): Duration

Estimated time of request processing. A uniqueness provider that is aware of their own throughput can return an estimate how long requests will be queued before they can be processed. Notary services use this information to potentially update clients with an expected wait time in order to avoid spamming by retries when the notary gets busy.