Skip to main content
The execute() method submits a transaction to a Hedera network. This method will create the transaction ID from the client operator account ID, sign with the client operator private key, and pick a node from the defined network on the client to submit the transaction to. The transaction is also automatically signed with the client operator account private key. You do not need to manually sign transactions if this key is the required key on any given transaction. Once you submit the transaction, the response will include the following:
  • The transaction ID of the transaction
  • The node ID of the node the transaction was submitted to
  • The transaction hash
Transaction Signing Requirements
  • Please refer to the specific transaction type and defined key structure of the account, topic, token, file, or smart contract to understand the signing requirements
The example below uses setKeyWithAlias() to set the EVM Address from Public Key at account creation, the recommended pattern for EVM compatibility. See Create an Account for details, including the immutability behavior and when to use setKeyWithoutAlias() instead.