//Create the transaction
transaction, err := hedera.NewContractExecuteTransaction().
SetContractID(newContractID).
SetGas(100000000).
SetFunction("setMessage", contractFunctionParams)
//Sign with the client operator private key to pay for the transaction and submit the query to a Hedera network
txResponse, err := transaction.Execute(client)
if err != nil {
panic(err)
}
//Request the receipt of the transaction
receipt, err := txResponse.GetReceipt(client)
if err != nil {
panic(err)
}
//Get the transaction consensus status
transactionStatus := receipt.Status
fmt.Printf("The transaction consensus status is %v\n", transactionStatus)
//v2.0.0