Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface ContractCallTransactionBodyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
ContractCallTransactionBody,ContractCallTransactionBody.Builder
@Generated
public interface ContractCallTransactionBodyOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong* An amount of tinybar sent via this contract call.* The ID of a smart contract to call.com.google.protobuf.ByteString* The smart contract function to call.longgetGas()* A maximum limit to the amount of gas to use for this call.boolean* The ID of a smart contract to call.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasContractID
boolean hasContractID()* The ID of a smart contract to call.
.proto.ContractID contractID = 1;- Returns:
- Whether the contractID field is set.
-
getContractID
ContractID getContractID()* The ID of a smart contract to call.
.proto.ContractID contractID = 1;- Returns:
- The contractID.
-
getGas
long getGas()* A maximum limit to the amount of gas to use for this call. <p> The network SHALL charge the greater of the following, but SHALL NOT charge more than the value of this field. <ol> <li>The actual gas consumed by the smart contract call.</li> <li>`80%` of this value.</li> </ol> The `80%` factor encourages reasonable estimation, while allowing for some overage to ensure successful execution.
int64 gas = 2;- Returns:
- The gas.
-
getAmount
long getAmount()* An amount of tinybar sent via this contract call. <p> If this is non-zero, the function MUST be `payable`.
int64 amount = 3;- Returns:
- The amount.
-
getFunctionParameters
com.google.protobuf.ByteString getFunctionParameters()* The smart contract function to call. <p> This MUST contain The application binary interface (ABI) encoding of the function call per the Ethereum contract ABI standard, giving the function signature and arguments being passed to the function.
bytes functionParameters = 4;- Returns:
- The functionParameters.
-