//Create an unsigned transaction
transaction := hedera.NewAccountCreateTransaction().
SetKeyWithAlias(ecdsaPublicKey).
// DO NOT set an alias with your key if you plan to update/rotate keys in the future, Use .SetKeyWithoutAlias instead
// SetKeyWithoutAlias(ecdsaPublicKey)
SetInitialBalance(hedera.NewHbar(1)).
//Freeze the transaction for signing
//The transaction cannot be modified after this point
freezeTransaction, err := transaction.FreezeWith(client)
if err != nil {
panic(err)
}
println(freezeTransaction.String())
//v2.0.0