Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ContractCreateTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<ContractCreateTransactionBody,ContractCreateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<ContractCreateTransactionBody,ContractCreateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.ContractCreateTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ContractCreateTransactionBodyOrBuilder
@Generated
public final class ContractCreateTransactionBody
extends com.google.protobuf.GeneratedMessageLite<ContractCreateTransactionBody,ContractCreateTransactionBody.Builder>
implements ContractCreateTransactionBodyOrBuilder
* Create a new smart contract. If this transaction succeeds, the `ContractID` for the new smart contract SHALL be set in the transaction receipt.<br/> The contract is defined by the initial bytecode (or `initcode`). The `initcode` SHALL be stored either in a previously created file, or in the transaction body itself for very small contracts. As part of contract creation, the constructor defined for the new smart contract SHALL run with the parameters provided in the `constructorParameters` field.<br/> The gas to "power" that constructor MUST be provided via the `gas` field, and SHALL be charged to the payer for this transaction.<br/> If the contract _constructor_ stores information, it is charged gas for that storage. There is a separate fee in HBAR to maintain that storage until the expiration, and that fee SHALL be added to this transaction as part of the _transaction fee_, rather than gas. ### Block Stream Effects A `CreateContractOutput` message SHALL be emitted for each transaction.Protobuf type
proto.ContractCreateTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Create a new smart contract.static enumstatic 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 intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic 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) * Access control for modification of the smart contract after it is created.* The id of an account, in the same shard and realm as this smart contract, that has signed this transaction, allowing the network to use its balance, when needed, to automatically extend this contract's expiration time.* The initial lifetime, in seconds, for the smart contract, and the number of seconds for which the smart contract will be automatically renewed upon expiration.com.google.protobuf.ByteString* An array of bytes containing the EVM-encoded parameters to pass to the smart contract constructor defined in the smart contract init code provided.boolean* A flag indicating that this smart contract declines to receive any reward for staking its HBAR balance to help secure the network.* The source for the smart contract EVM bytecode.longgetGas()* A maximum limit to the amount of gas to use for the constructor call.getHookCreationDetails(int index) * Details of hooks to add immediately after creating this contract.int* Details of hooks to add immediately after creating this contract.* Details of hooks to add immediately after creating this contract.getHookCreationDetailsOrBuilder(int index) * Details of hooks to add immediately after creating this contract.List<? extends HookCreationDetailsOrBuilder> * Details of hooks to add immediately after creating this contract.com.google.protobuf.ByteString* The source for the smart contract EVM bytecode.long* The amount of HBAR to use as an initial balance for the account representing the new smart contract.int* The maximum number of tokens that can be auto-associated with this smart contract.getMemo()* A short memo for this smart contract.com.google.protobuf.ByteString* A short memo for this smart contract.* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> If a realm is used, it must already exist; we shouldn't be creating it without a separate transaction.</blockquote></blockquote> <p> This was intended to provide an admin key for any new realm created during the creation of the smart contract.<br/> This value is currently ignored.Deprecated.* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> Realm should be determined by node and network parameters.* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> Shard should be determined by the node the transaction is submitted to.* An account ID.long* The ID of a network node.boolean* Access control for modification of the smart contract after it is created.boolean* The id of an account, in the same shard and realm as this smart contract, that has signed this transaction, allowing the network to use its balance, when needed, to automatically extend this contract's expiration time.boolean* The initial lifetime, in seconds, for the smart contract, and the number of seconds for which the smart contract will be automatically renewed upon expiration.boolean* The source for the smart contract EVM bytecode.boolean* The source for the smart contract EVM bytecode.boolean* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> If a realm is used, it must already exist; we shouldn't be creating it without a separate transaction.</blockquote></blockquote> <p> This was intended to provide an admin key for any new realm created during the creation of the smart contract.<br/> This value is currently ignored.booleanDeprecated.boolean* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> Realm should be determined by node and network parameters.boolean* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> Shard should be determined by the node the transaction is submitted to.boolean* An account ID.boolean* The ID of a network node.newBuilder(ContractCreateTransactionBody 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<ContractCreateTransactionBody> 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
-
FILEID_FIELD_NUMBER
public static final int FILEID_FIELD_NUMBER- See Also:
-
INITCODE_FIELD_NUMBER
public static final int INITCODE_FIELD_NUMBER- See Also:
-
ADMINKEY_FIELD_NUMBER
public static final int ADMINKEY_FIELD_NUMBER- See Also:
-
GAS_FIELD_NUMBER
public static final int GAS_FIELD_NUMBER- See Also:
-
INITIALBALANCE_FIELD_NUMBER
public static final int INITIALBALANCE_FIELD_NUMBER- See Also:
-
PROXYACCOUNTID_FIELD_NUMBER
public static final int PROXYACCOUNTID_FIELD_NUMBER- See Also:
-
AUTORENEWPERIOD_FIELD_NUMBER
public static final int AUTORENEWPERIOD_FIELD_NUMBER- See Also:
-
CONSTRUCTORPARAMETERS_FIELD_NUMBER
public static final int CONSTRUCTORPARAMETERS_FIELD_NUMBER- See Also:
-
SHARDID_FIELD_NUMBER
public static final int SHARDID_FIELD_NUMBER- See Also:
-
REALMID_FIELD_NUMBER
public static final int REALMID_FIELD_NUMBER- See Also:
-
NEWREALMADMINKEY_FIELD_NUMBER
public static final int NEWREALMADMINKEY_FIELD_NUMBER- See Also:
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER- See Also:
-
MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER- See Also:
-
AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER
public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
STAKED_ACCOUNT_ID_FIELD_NUMBER
public static final int STAKED_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
STAKED_NODE_ID_FIELD_NUMBER
public static final int STAKED_NODE_ID_FIELD_NUMBER- See Also:
-
DECLINE_REWARD_FIELD_NUMBER
public static final int DECLINE_REWARD_FIELD_NUMBER- See Also:
-
HOOK_CREATION_DETAILS_FIELD_NUMBER
public static final int HOOK_CREATION_DETAILS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getInitcodeSourceCase
- Specified by:
getInitcodeSourceCasein interfaceContractCreateTransactionBodyOrBuilder
-
getStakedIdCase
- Specified by:
getStakedIdCasein interfaceContractCreateTransactionBodyOrBuilder
-
hasFileID
public boolean hasFileID()* The source for the smart contract EVM bytecode. <p> The file containing the smart contract initcode. A copy of the contents SHALL be made and held as `bytes` in smart contract state.<br/> The contract bytecode is limited in size only by the network file size limit.
.proto.FileID fileID = 1;- Specified by:
hasFileIDin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the fileID field is set.
-
getFileID
* The source for the smart contract EVM bytecode. <p> The file containing the smart contract initcode. A copy of the contents SHALL be made and held as `bytes` in smart contract state.<br/> The contract bytecode is limited in size only by the network file size limit.
.proto.FileID fileID = 1;- Specified by:
getFileIDin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The fileID.
-
hasInitcode
public boolean hasInitcode()* The source for the smart contract EVM bytecode. <p> The bytes of the smart contract initcode. A copy of the contents SHALL be made and held as `bytes` in smart contract state.<br/> This value is limited in length by the network transaction size limit. This entire transaction, including all fields and signatures, MUST be less than the network transaction size limit.
bytes initcode = 16;- Specified by:
hasInitcodein interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the initcode field is set.
-
getInitcode
public com.google.protobuf.ByteString getInitcode()* The source for the smart contract EVM bytecode. <p> The bytes of the smart contract initcode. A copy of the contents SHALL be made and held as `bytes` in smart contract state.<br/> This value is limited in length by the network transaction size limit. This entire transaction, including all fields and signatures, MUST be less than the network transaction size limit.
bytes initcode = 16;- Specified by:
getInitcodein interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The initcode.
-
hasAdminKey
public boolean hasAdminKey()* Access control for modification of the smart contract after it is created. <p> If this field is set, that key MUST sign this transaction.<br/> If this field is set, that key MUST sign each future transaction to update or delete the contract.<br/> An updateContract transaction that _only_ extends the topic expirationTime (a "manual renewal" transaction) SHALL NOT require admin key signature. <p> A contract without an admin key SHALL be immutable, except for expiration and renewal.
.proto.Key adminKey = 3;- Specified by:
hasAdminKeyin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* Access control for modification of the smart contract after it is created. <p> If this field is set, that key MUST sign this transaction.<br/> If this field is set, that key MUST sign each future transaction to update or delete the contract.<br/> An updateContract transaction that _only_ extends the topic expirationTime (a "manual renewal" transaction) SHALL NOT require admin key signature. <p> A contract without an admin key SHALL be immutable, except for expiration and renewal.
.proto.Key adminKey = 3;- Specified by:
getAdminKeyin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The adminKey.
-
getGas
public long getGas()* A maximum limit to the amount of gas to use for the constructor 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 constructor 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 = 4;- Specified by:
getGasin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The gas.
-
getInitialBalance
public long getInitialBalance()* The amount of HBAR to use as an initial balance for the account representing the new smart contract. <p> This value is presented in tinybar (10<sup><strong>-</strong>8</sup> HBAR).<br/> The HBAR provided here will be withdrawn from the payer account that signed this transaction.
int64 initialBalance = 5;- Specified by:
getInitialBalancein interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The initialBalance.
-
hasProxyAccountID
Deprecated.* Proxy account staking is handled via `staked_id`. <p> Former field to designate a proxy account for HBAR staking. This field MUST NOT be set.
.proto.AccountID proxyAccountID = 6 [deprecated = true];- Specified by:
hasProxyAccountIDin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the proxyAccountID field is set.
-
getProxyAccountID
Deprecated.* Proxy account staking is handled via `staked_id`. <p> Former field to designate a proxy account for HBAR staking. This field MUST NOT be set.
.proto.AccountID proxyAccountID = 6 [deprecated = true];- Specified by:
getProxyAccountIDin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The proxyAccountID.
-
hasAutoRenewPeriod
public boolean hasAutoRenewPeriod()* The initial lifetime, in seconds, for the smart contract, and the number of seconds for which the smart contract will be automatically renewed upon expiration. <p> This value MUST be set.<br/> This value MUST be greater than the configured MIN_AUTORENEW_PERIOD.<br/> This value MUST be less than the configured MAX_AUTORENEW_PERIOD.<br/>
.proto.Duration autoRenewPeriod = 8;- Specified by:
hasAutoRenewPeriodin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the autoRenewPeriod field is set.
-
getAutoRenewPeriod
* The initial lifetime, in seconds, for the smart contract, and the number of seconds for which the smart contract will be automatically renewed upon expiration. <p> This value MUST be set.<br/> This value MUST be greater than the configured MIN_AUTORENEW_PERIOD.<br/> This value MUST be less than the configured MAX_AUTORENEW_PERIOD.<br/>
.proto.Duration autoRenewPeriod = 8;- Specified by:
getAutoRenewPeriodin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The autoRenewPeriod.
-
getConstructorParameters
public com.google.protobuf.ByteString getConstructorParameters()* An array of bytes containing the EVM-encoded parameters to pass to the smart contract constructor defined in the smart contract init code provided.
bytes constructorParameters = 9;- Specified by:
getConstructorParametersin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The constructorParameters.
-
hasShardID
public boolean hasShardID()* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> Shard should be determined by the node the transaction is submitted to. </blockquote></blockquote> <p> The shard in which to create the new smart contract.<br/> This value is currently ignored.
.proto.ShardID shardID = 10;- Specified by:
hasShardIDin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the shardID field is set.
-
getShardID
* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> Shard should be determined by the node the transaction is submitted to. </blockquote></blockquote> <p> The shard in which to create the new smart contract.<br/> This value is currently ignored.
.proto.ShardID shardID = 10;- Specified by:
getShardIDin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The shardID.
-
hasRealmID
public boolean hasRealmID()* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> Realm should be determined by node and network parameters. </blockquote></blockquote> <p> The shard/realm in which to create the new smart contract.<br/> This value is currently ignored.
.proto.RealmID realmID = 11;- Specified by:
hasRealmIDin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the realmID field is set.
-
getRealmID
* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> Realm should be determined by node and network parameters. </blockquote></blockquote> <p> The shard/realm in which to create the new smart contract.<br/> This value is currently ignored.
.proto.RealmID realmID = 11;- Specified by:
getRealmIDin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The realmID.
-
hasNewRealmAdminKey
public boolean hasNewRealmAdminKey()* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> If a realm is used, it must already exist; we shouldn't be creating it without a separate transaction.</blockquote></blockquote> <p> This was intended to provide an admin key for any new realm created during the creation of the smart contract.<br/> This value is currently ignored. a new realm SHALL NOT be created, regardless of the value of `realmID`.
.proto.Key newRealmAdminKey = 12;- Specified by:
hasNewRealmAdminKeyin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the newRealmAdminKey field is set.
-
getNewRealmAdminKey
* <blockquote>Review Question<br/> <blockquote>Should this be deprecated?<br/> It's never been used and probably never should be used...<br/> If a realm is used, it must already exist; we shouldn't be creating it without a separate transaction.</blockquote></blockquote> <p> This was intended to provide an admin key for any new realm created during the creation of the smart contract.<br/> This value is currently ignored. a new realm SHALL NOT be created, regardless of the value of `realmID`.
.proto.Key newRealmAdminKey = 12;- Specified by:
getNewRealmAdminKeyin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The newRealmAdminKey.
-
getMemo
* A short memo for this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 13;- Specified by:
getMemoin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The memo.
-
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()* A short memo for this smart contract. <p> This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes` (default 100) bytes when encoded as UTF-8.
string memo = 13;- Specified by:
getMemoBytesin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The bytes for memo.
-
getMaxAutomaticTokenAssociations
public int getMaxAutomaticTokenAssociations()* The maximum number of tokens that can be auto-associated with this smart contract. <p> If this is less than or equal to `used_auto_associations` (or 0), then this contract MUST manually associate with a token before transacting in that token.<br/> Following HIP-904 This value may also be `-1` to indicate no limit.<br/> This value MUST NOT be less than `-1`.
int32 max_automatic_token_associations = 14;- Specified by:
getMaxAutomaticTokenAssociationsin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The maxAutomaticTokenAssociations.
-
hasAutoRenewAccountId
public boolean hasAutoRenewAccountId()* The id of an account, in the same shard and realm as this smart contract, that has signed this transaction, allowing the network to use its balance, when needed, to automatically extend this contract's expiration time. <p> If this field is set, that key MUST sign this transaction.<br/> If this field is set, then the network SHALL deduct the necessary fees from the designated auto renew account, if that account has sufficient balance. If the auto renew account does not have sufficient balance, then the fees for contract renewal SHALL be deducted from the HBAR balance held by the smart contract.<br/> If this field is not set, then all renewal fees SHALL be deducted from the HBAR balance held by this contract.
.proto.AccountID auto_renew_account_id = 15;- Specified by:
hasAutoRenewAccountIdin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the autoRenewAccountId field is set.
-
getAutoRenewAccountId
* The id of an account, in the same shard and realm as this smart contract, that has signed this transaction, allowing the network to use its balance, when needed, to automatically extend this contract's expiration time. <p> If this field is set, that key MUST sign this transaction.<br/> If this field is set, then the network SHALL deduct the necessary fees from the designated auto renew account, if that account has sufficient balance. If the auto renew account does not have sufficient balance, then the fees for contract renewal SHALL be deducted from the HBAR balance held by the smart contract.<br/> If this field is not set, then all renewal fees SHALL be deducted from the HBAR balance held by this contract.
.proto.AccountID auto_renew_account_id = 15;- Specified by:
getAutoRenewAccountIdin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The autoRenewAccountId.
-
hasStakedAccountId
public boolean hasStakedAccountId()* An account ID. <p> This smart contract SHALL stake its HBAR via this account as proxy.
.proto.AccountID staked_account_id = 17;- Specified by:
hasStakedAccountIdin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the stakedAccountId field is set.
-
getStakedAccountId
* An account ID. <p> This smart contract SHALL stake its HBAR via this account as proxy.
.proto.AccountID staked_account_id = 17;- Specified by:
getStakedAccountIdin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The stakedAccountId.
-
hasStakedNodeId
public boolean hasStakedNodeId()* The ID of a network node. <p> This smart contract SHALL stake its HBAR to this node. <p> <blockquote>Note: node IDs do fluctuate as node operators change. Most contracts are immutable, and a contract staking to an invalid node ID SHALL NOT participate in staking. Immutable contracts MAY find it more reliable to use a proxy account for staking (via `staked_account_id`) to enable updating the _effective_ staking node ID when necessary through updating the proxy account.</blockquote>
int64 staked_node_id = 18;- Specified by:
hasStakedNodeIdin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- Whether the stakedNodeId field is set.
-
getStakedNodeId
public long getStakedNodeId()* The ID of a network node. <p> This smart contract SHALL stake its HBAR to this node. <p> <blockquote>Note: node IDs do fluctuate as node operators change. Most contracts are immutable, and a contract staking to an invalid node ID SHALL NOT participate in staking. Immutable contracts MAY find it more reliable to use a proxy account for staking (via `staked_account_id`) to enable updating the _effective_ staking node ID when necessary through updating the proxy account.</blockquote>
int64 staked_node_id = 18;- Specified by:
getStakedNodeIdin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The stakedNodeId.
-
getDeclineReward
public boolean getDeclineReward()* A flag indicating that this smart contract declines to receive any reward for staking its HBAR balance to help secure the network. <p> If set to true, this smart contract SHALL NOT receive any reward for staking its HBAR balance to help secure the network, regardless of staking configuration, but MAY stake HBAR to support the network without reward.
bool decline_reward = 19;- Specified by:
getDeclineRewardin interfaceContractCreateTransactionBodyOrBuilder- Returns:
- The declineReward.
-
getHookCreationDetailsList
* Details of hooks to add immediately after creating this contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 20;- Specified by:
getHookCreationDetailsListin interfaceContractCreateTransactionBodyOrBuilder
-
getHookCreationDetailsOrBuilderList
* Details of hooks to add immediately after creating this contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 20; -
getHookCreationDetailsCount
public int getHookCreationDetailsCount()* Details of hooks to add immediately after creating this contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 20;- Specified by:
getHookCreationDetailsCountin interfaceContractCreateTransactionBodyOrBuilder
-
getHookCreationDetails
* Details of hooks to add immediately after creating this contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 20;- Specified by:
getHookCreationDetailsin interfaceContractCreateTransactionBodyOrBuilder
-
getHookCreationDetailsOrBuilder
* Details of hooks to add immediately after creating this contract.
repeated .com.hedera.hapi.node.hooks.HookCreationDetails hook_creation_details = 20; -
parseFrom
public static ContractCreateTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCreateTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCreateTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCreateTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCreateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContractCreateTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ContractCreateTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ContractCreateTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ContractCreateTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ContractCreateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ContractCreateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static ContractCreateTransactionBody.Builder newBuilder(ContractCreateTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ContractCreateTransactionBody,ContractCreateTransactionBody.Builder>
-
getDefaultInstance
-
parser
-