Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface TransactionResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
TransactionResponse,TransactionResponse.Builder
@Generated
public interface TransactionResponseOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlonggetCost()* An approximate transaction fee.* A pre-consensus response code.int* A pre-consensus response code.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getNodeTransactionPrecheckCodeValue
int getNodeTransactionPrecheckCodeValue()* A pre-consensus response code. <p> This response SHALL represent the response of the individual node, and SHALL NOT represent the consensus of the network.
.proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1;- Returns:
- The enum numeric value on the wire for nodeTransactionPrecheckCode.
-
getNodeTransactionPrecheckCode
ResponseCodeEnum getNodeTransactionPrecheckCode()* A pre-consensus response code. <p> This response SHALL represent the response of the individual node, and SHALL NOT represent the consensus of the network.
.proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1;- Returns:
- The nodeTransactionPrecheckCode.
-
getCost
long getCost()* An approximate transaction fee. <p> This value SHALL be `0` unless the `nodeTransactionPrecheckCode` is `INSUFFICIENT_TX_FEE`.<br/> This value SHOULD be an amount, in tinybar, that _would have_ succeeded at the time the transaction was submitted.<br/> Note that this amount is not guaranteed to succeed in a future transaction due to uncontrolled variables, such as network congestion, but should be considered a close approximation.
uint64 cost = 2;- Returns:
- The cost.
-