Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ContractDeleteTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<ContractDeleteTransactionBody,ContractDeleteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<ContractDeleteTransactionBody,ContractDeleteTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ContractDeleteTransactionBodyOrBuilder
@Generated
public final class ContractDeleteTransactionBody
extends com.google.protobuf.GeneratedMessageLite<ContractDeleteTransactionBody,ContractDeleteTransactionBody.Builder>
implements ContractDeleteTransactionBodyOrBuilder
* Delete a smart contract, and transfer any remaining HBAR balance to a designated account. If this call succeeds then all subsequent calls to that smart contract SHALL execute the `0x0` opcode, as required for EVM equivalence. ### Requirements - An account or smart contract MUST be designated to receive all remaining account balances. - The smart contract MUST have an admin key set. If the contract does not have `admin_key` set, then this transaction SHALL fail and response code `MODIFYING_IMMUTABLE_CONTRACT` SHALL be set. - If `admin_key` is, or contains, an empty `KeyList` key, it SHALL be treated the same as an admin key that is not set. - The `Key` set for `admin_key` on the smart contract MUST have a valid signature set on this transaction. - The designated receiving account MAY have `receiver_sig_required` set. If that field is set, the receiver account MUST also sign this transaction. - The field `permanent_removal` MUST NOT be set. That field is reserved for internal system use when purging the smart contract from state. Any user transaction with that field set SHALL be rejected and a response code `PERMANENT_REMOVAL_REQUIRES_SYSTEM_INITIATION` SHALL be set. ### Block Stream Effects NoneProtobuf type
proto.ContractDeleteTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Delete a smart contract, and transfer any remaining HBAR balance to a designated account.static enumNested 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) * The id of the contract to be deleted.boolean* A flag indicating that this transaction is "synthetic"; initiated by the node software.* An Account ID recipient.* A contract ID recipient.boolean* The id of the contract to be deleted.boolean* An Account ID recipient.boolean* A contract ID recipient.newBuilder(ContractDeleteTransactionBody prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ContractDeleteTransactionBody> 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:
-
TRANSFERACCOUNTID_FIELD_NUMBER
public static final int TRANSFERACCOUNTID_FIELD_NUMBER- See Also:
-
TRANSFERCONTRACTID_FIELD_NUMBER
public static final int TRANSFERCONTRACTID_FIELD_NUMBER- See Also:
-
PERMANENT_REMOVAL_FIELD_NUMBER
public static final int PERMANENT_REMOVAL_FIELD_NUMBER- See Also:
-
-
Method Details
-
getObtainersCase
- Specified by:
getObtainersCasein interfaceContractDeleteTransactionBodyOrBuilder
-
hasContractID
public boolean hasContractID()* The id of the contract to be deleted. <p> This field is REQUIRED.
.proto.ContractID contractID = 1;- Specified by:
hasContractIDin interfaceContractDeleteTransactionBodyOrBuilder- Returns:
- Whether the contractID field is set.
-
getContractID
* The id of the contract to be deleted. <p> This field is REQUIRED.
.proto.ContractID contractID = 1;- Specified by:
getContractIDin interfaceContractDeleteTransactionBodyOrBuilder- Returns:
- The contractID.
-
hasTransferAccountID
public boolean hasTransferAccountID()* An Account ID recipient. <p> This account SHALL receive all HBAR and other tokens still owned by the contract that is removed.
.proto.AccountID transferAccountID = 2;- Specified by:
hasTransferAccountIDin interfaceContractDeleteTransactionBodyOrBuilder- Returns:
- Whether the transferAccountID field is set.
-
getTransferAccountID
* An Account ID recipient. <p> This account SHALL receive all HBAR and other tokens still owned by the contract that is removed.
.proto.AccountID transferAccountID = 2;- Specified by:
getTransferAccountIDin interfaceContractDeleteTransactionBodyOrBuilder- Returns:
- The transferAccountID.
-
hasTransferContractID
public boolean hasTransferContractID()* A contract ID recipient. <p> This contract SHALL receive all HBAR and other tokens still owned by the contract that is removed.
.proto.ContractID transferContractID = 3;- Specified by:
hasTransferContractIDin interfaceContractDeleteTransactionBodyOrBuilder- Returns:
- Whether the transferContractID field is set.
-
getTransferContractID
* A contract ID recipient. <p> This contract SHALL receive all HBAR and other tokens still owned by the contract that is removed.
.proto.ContractID transferContractID = 3;- Specified by:
getTransferContractIDin interfaceContractDeleteTransactionBodyOrBuilder- Returns:
- The transferContractID.
-
getPermanentRemoval
public boolean getPermanentRemoval()* A flag indicating that this transaction is "synthetic"; initiated by the node software. <p> The consensus nodes create such "synthetic" transactions to both to properly manage state changes and to communicate those changes to other systems via the Block Stream.<br/> A user-initiated transaction MUST NOT set this flag.
bool permanent_removal = 4;- Specified by:
getPermanentRemovalin interfaceContractDeleteTransactionBodyOrBuilder- Returns:
- The permanentRemoval.
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ContractDeleteTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ContractDeleteTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ContractDeleteTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static ContractDeleteTransactionBody.Builder newBuilder(ContractDeleteTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ContractDeleteTransactionBody,ContractDeleteTransactionBody.Builder>
-
getDefaultInstance
-
parser
-