com.r3corda.protocols / ResolveTransactionsProtocol / <init>

# <init>

`ResolveTransactionsProtocol(stx: SignedTransaction, otherSide: Party)`
`ResolveTransactionsProtocol(wtx: WireTransaction, otherSide: Party)`

Resolve the full history of a transaction and verify it with its dependencies.

`ResolveTransactionsProtocol(txHashes: Set<SecureHash>, otherSide: Party)`

This protocol is used to verify the validity of a transaction by recursively checking the validity of all the dependencies. Once a transaction is checked its inserted into local storage so it can be relayed and wont be checked again.

A couple of constructors are provided that accept a single transaction. When these are used, the dependencies of that transaction are resolved and then the transaction itself is verified. Again, if successful, the results are inserted into the database as long as a SignedTransaction was provided. If only the WireTransaction form was provided then this isnt enough to put into the local database, so only the dependencies are checked and inserted. This way to use the protocol is helpful when resolving and verifying a finished but partially signed transaction.

The protocol returns a list of verified LedgerTransaction objects, in a depth-first order.