Package org.hyperledger.fabric.client
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
Modifier and TypeInterfaceDescriptionstatic interface
Builder used to create a new transaction proposal. -
Method Summary
Modifier and TypeMethodDescriptiondefault Transaction
endorse()
Send the proposal to peers to obtain endorsements.endorse
(UnaryOperator<CallOptions> options) Send the proposal to peers to obtain endorsements.default Transaction
endorse
(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
String getTransactionId()Get the transaction ID.- Returns:
- A transaction ID.
-
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)
.