Modify transaction fields
Method
Type
Requirement
//Create the transaction and set the transaction properties
Transaction transaction = new AccountCreateTransaction() //Any transaction can be applied here
.setKey(publicKey)
.setInitialBalance(new Hbar(100))
.setMaxTransactionFee(new Hbar(2)) //Set the max transaction fee to 2 hbar
.setTransactionMemo("Transaction memo"); //Set the node ID to submit the transaction to
//v1.3.2//Create the transaction and set the transaction properties
const transaction = new AccountCreateTransaction() //Any transaction can be applied here
.setKey(publicKey)
.setInitialBalance(new Hbar(100))
.setMaxTransactionFee(new Hbar(2)) //Set the max transaction fee to 2 hbar
.setTransactionMemo("Transaction memo");
//v1.4.4Get transaction properties
Method
Type
Requirement
Last updated