Interface Proposal
- All Superinterfaces:
Signable
A Fabric Gateway transaction proposal, which can be used to evaluate a transaction to query ledger state, or obtain
endorsements so that the transaction can be submitted to update ledger state. Supports off-line signing flow using
Gateway.newSignedChaincodeEventsRequest(byte[], byte[]).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder used to create a new transaction proposal. -
Method Summary
Modifier and TypeMethodDescriptiondefault Transactionendorse()Send the proposal to peers to obtain endorsements.endorse(UnaryOperator<CallOptions> options) Send the proposal to peers to obtain endorsements.default Transactionendorse(CallOption... options) Deprecated.default byte[]evaluate()Evaluate the proposal and return the transaction result.byte[]evaluate(UnaryOperator<CallOptions> options) Evaluate the proposal and return the transaction result.default byte[]evaluate(CallOption... options) Deprecated.Replaced byevaluate(UnaryOperator).Get the transaction ID.
-
Method Details
-
getTransactionId
-
evaluate
Evaluate the proposal and return the transaction result. The transaction is not submitted to the orderer and is not committed to the ledger.- Returns:
- Transaction result.
- Throws:
GatewayException- if the gRPC service invocation fails.
-
evaluate
Evaluate the proposal and return the transaction result. The transaction is not submitted to the orderer and is not committed to the ledger.- Parameters:
options- Function that transforms call options.- Returns:
- Transaction result.
- Throws:
GatewayException- if the gRPC service invocation fails.
-
evaluate
Deprecated.Replaced byevaluate(UnaryOperator).Evaluate the proposal and return the transaction result. The transaction is not submitted to the orderer and is not committed to the ledger.- Parameters:
options- Call options.- Returns:
- Transaction result.
- Throws:
GatewayException- if the gRPC service invocation fails.
-
endorse
Send the proposal to peers to obtain endorsements. Successful endorsement results in a transaction that can be submitted to the orderer to be committer to the ledger.- Returns:
- An endorsed transaction.
- Throws:
EndorseException- if the gRPC service invocation fails.
-
endorse
Send the proposal to peers to obtain endorsements. Successful endorsement results in a transaction that can be submitted to the orderer to be committer to the ledger.- Parameters:
options- Function that transforms call options.- Returns:
- An endorsed transaction.
- Throws:
EndorseException- if the gRPC service invocation fails.
-
endorse
Deprecated.Replaced byendorse(UnaryOperator).Send the proposal to peers to obtain endorsements. Successful endorsement results in a transaction that can be submitted to the orderer to be committer to the ledger.- Parameters:
options- Call options.- Returns:
- An endorsed transaction.
- Throws:
EndorseException- if the gRPC service invocation fails.
-
endorse(UnaryOperator).