The following example sends Ethereum from an account to an endpoint:
var domainId = "";
var txOrderId = "";
var endpointId = "";
var fromAccountId = "";
var maxFee = "";
var amount = "";
var data = "";
var transactionDestination = TransactionDestination.EndpointDestination
.builder()
.endpointId(endpointId)
.build();
var createTransactionOrder = Transactions.CreateTransactionOrder.builder()
.id(txOrderId)
.fromAccountId(fromAccountId)
.parameters(EthereumTransactionOrderParameters.builder()
.toDestination(transactionDestination)
.maximumFee(maxFee)
.priorityLow()
.amount(amount)
.data(data)
.build()
)
.build();
harmonize.transactions(domainId)
.create(createTransactionOrder, Expire.hours(24))
.waitForSucceed(Timeout.minutes(1));