Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ContractCallTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<ContractCallTransactionBody,ContractCallTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<ContractCallTransactionBody,ContractCallTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.ContractCallTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ContractCallTransactionBodyOrBuilder
@Generated
public final class ContractCallTransactionBody
extends com.google.protobuf.GeneratedMessageLite<ContractCallTransactionBody,ContractCallTransactionBody.Builder>
implements ContractCallTransactionBodyOrBuilder
*
Call a function of a given smart contract, providing function parameter
inputs as needed.
Resource ("gas") charges SHALL include all relevant fees incurred by the
contract execution, including any storage required.<br/>
The total transaction fee SHALL incorporate all of the "gas" actually
consumed as well as the standard fees for transaction handling, data
transfers, signature verification, etc...<br/>
The response SHALL contain the output returned by the function call.
### Block Stream Effects
A `CallContractOutput` message SHALL be emitted for each transaction.
Protobuf type proto.ContractCallTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Call a function of a given smart contract, providing function parameter inputs as needed.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) long* An amount of tinybar sent via this contract call.* The ID of a smart contract to call.static ContractCallTransactionBodycom.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.newBuilder(ContractCallTransactionBody prototype) static ContractCallTransactionBodyparseDelimitedFrom(InputStream input) static ContractCallTransactionBodyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractCallTransactionBodyparseFrom(byte[] data) static ContractCallTransactionBodyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractCallTransactionBodyparseFrom(com.google.protobuf.ByteString data) static ContractCallTransactionBodyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractCallTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input) static ContractCallTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractCallTransactionBodyparseFrom(InputStream input) static ContractCallTransactionBodyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContractCallTransactionBodyparseFrom(ByteBuffer data) static ContractCallTransactionBodyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ContractCallTransactionBody> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
CONTRACTID_FIELD_NUMBER
public static final int CONTRACTID_FIELD_NUMBER- See Also:
-
GAS_FIELD_NUMBER
public static final int GAS_FIELD_NUMBER- See Also:
-
AMOUNT_FIELD_NUMBER
public static final int AMOUNT_FIELD_NUMBER- See Also:
-
FUNCTIONPARAMETERS_FIELD_NUMBER
public static final int FUNCTIONPARAMETERS_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasContractID
public boolean hasContractID()* The ID of a smart contract to call.
.proto.ContractID contractID = 1;- Specified by:
hasContractIDin interfaceContractCallTransactionBodyOrBuilder- Returns:
- Whether the contractID field is set.
-
getContractID
* The ID of a smart contract to call.
.proto.ContractID contractID = 1;- Specified by:
getContractIDin interfaceContractCallTransactionBodyOrBuilder- Returns:
- The contractID.
-
getGas
public 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;- Specified by:
getGasin interfaceContractCallTransactionBodyOrBuilder- Returns:
- The gas.
-
getAmount
public 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;- Specified by:
getAmountin interfaceContractCallTransactionBodyOrBuilder- Returns:
- The amount.
-
getFunctionParameters
public 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;- Specified by:
getFunctionParametersin interfaceContractCallTransactionBodyOrBuilder- Returns:
- The functionParameters.
-
parseFrom
public static ContractCallTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCallTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCallTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCallTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCallTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCallTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ContractCallTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ContractCallTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ContractCallTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ContractCallTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ContractCallTransactionBody,ContractCallTransactionBody.Builder>
-
getDefaultInstance
-
parser
-