public class WireTransaction
extends BaseTransaction
A transaction ready for serialisation, without any signatures attached. A WireTransaction is usually wrapped
by a class SignedTransaction that carries the signatures over this payload. The hash of the wire transaction is
the identity of the transaction, that is, it's possible for two class SignedTransactions with different sets of
signatures to have the same identity hash.
class SignedTransaction,
class SignedTransaction| Modifier and Type | Class and Description |
|---|---|
static class |
WireTransaction.Companion |
| Modifier and Type | Field and Description |
|---|---|
static WireTransaction.Companion |
Companion |
| Constructor and Description |
|---|
WireTransaction(java.util.List<net.corda.core.contracts.StateRef> inputs,
java.util.List<? extends net.corda.core.crypto.SecureHash> attachments,
java.util.List<? extends net.corda.core.contracts.TransactionState<? extends net.corda.core.contracts.ContractState>> outputs,
java.util.List<net.corda.core.contracts.Command> commands,
Party notary,
java.util.List<? extends net.corda.core.crypto.CompositeKey> signers,
TransactionType type,
Timestamp timestamp)
A transaction ready for serialisation, without any signatures attached. A WireTransaction is usually wrapped
by a
class SignedTransaction that carries the signatures over this payload. The hash of the wire transaction is
the identity of the transaction, that is, it's possible for two class SignedTransactions with different sets of
signatures to have the same identity hash. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.util.List<net.corda.core.crypto.SecureHash> |
getAllLeavesHashes() |
java.util.List<net.corda.core.crypto.SecureHash> |
getAttachments()
Hashes of the ZIP/JAR files that are needed to interpret the contents of this wire transaction.
|
MerkleTree |
getCachedTree() |
java.util.List<net.corda.core.contracts.Command> |
getCommands()
Ordered list of
|
SecureHash |
getId() |
java.util.List<net.corda.core.contracts.StateRef> |
getInputs()
Pointers to the input states on the ledger,
|
MerkleTree |
getMerkleTree() |
SerializedBytes<net.corda.core.transactions.WireTransaction> |
getSerialized() |
int |
hashCode() |
<T extends ContractState> |
outRef(int index)
Returns a
class StateAndRef for the given output index. |
<T extends ContractState> |
outRef(ContractState state)
Returns a
class StateAndRef for the requested output state, or throws IllegalArgumentException if not found. |
void |
setCachedTree(MerkleTree p) |
LedgerTransaction |
toLedgerTransaction(ServiceHub services)
Looks up identities and attachments from storage to generate a
class LedgerTransaction. A transaction is expected to
have been fully resolved using the resolution flow by this point. |
java.lang.String |
toString() |
checkInvariants, equals, getInputs, getMustSign, getNotary, getOutputs, getTimestamp, getType, hashCodegetIdpublic static WireTransaction.Companion Companion
public WireTransaction(java.util.List<net.corda.core.contracts.StateRef> inputs,
java.util.List<? extends net.corda.core.crypto.SecureHash> attachments,
java.util.List<? extends net.corda.core.contracts.TransactionState<? extends net.corda.core.contracts.ContractState>> outputs,
java.util.List<net.corda.core.contracts.Command> commands,
Party notary,
java.util.List<? extends net.corda.core.crypto.CompositeKey> signers,
TransactionType type,
Timestamp timestamp)
A transaction ready for serialisation, without any signatures attached. A WireTransaction is usually wrapped
by a class SignedTransaction that carries the signatures over this payload. The hash of the wire transaction is
the identity of the transaction, that is, it's possible for two class SignedTransactions with different sets of
signatures to have the same identity hash.
inputs - Pointers to the input states on the ledger,identified by(tx identity hash,output index).attachments - Hashes of the ZIP/JAR files that are needed to interpret the contents of this wire transaction.commands - Ordered list of(interface CommandData,PublicKey)pairs that instruct the contracts what to do.class SignedTransaction,
class SignedTransactionpublic SerializedBytes<net.corda.core.transactions.WireTransaction> getSerialized()
public java.util.List<net.corda.core.crypto.SecureHash> getAllLeavesHashes()
public MerkleTree getCachedTree()
public void setCachedTree(MerkleTree p)
public MerkleTree getMerkleTree()
public SecureHash getId()
public <T extends ContractState> StateAndRef<T> outRef(int index)
Returns a class StateAndRef for the given output index.
class StateAndRefpublic <T extends ContractState> StateAndRef<T> outRef(ContractState state)
Returns a class StateAndRef for the requested output state, or throws IllegalArgumentException if not found.
class StateAndRef,
IllegalArgumentExceptionpublic LedgerTransaction toLedgerTransaction(ServiceHub services)
Looks up identities and attachments from storage to generate a class LedgerTransaction. A transaction is expected to
have been fully resolved using the resolution flow by this point.
class LedgerTransactionpublic java.lang.String toString()
public boolean equals(java.lang.Object other)
public int hashCode()
public java.util.List<net.corda.core.contracts.StateRef> getInputs()
Pointers to the input states on the ledger,
identified by(tx identity hash,output index).
public java.util.List<net.corda.core.crypto.SecureHash> getAttachments()
Hashes of the ZIP/JAR files that are needed to interpret the contents of this wire transaction.
public java.util.List<net.corda.core.contracts.Command> getCommands()
Ordered list of
(interface CommandData,PublicKey)pairs that instruct the contracts what to do.
interface CommandData,
PublicKey