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 fetches each transaction identified by the given hashes from either disk or network, along with all their dependencies, and verifies them together using a single TransactionGroup. If no exception is thrown, then all the transactions have been successfully verified and inserted into the local database.

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 inserted. This way to use the protocol is helpful when resolving and verifying a finished but partially signed transaction.