ETHTransactionBuilder constructor

ETHTransactionBuilder({
  1. required ETHAddress from,
  2. required ETHAddress to,
  3. required BigInt value,
  4. required BigInt chainId,
  5. String? memo,
  6. ETHTransactionType? transactionType,
})

Factory constructor for creating a basic transaction.

Implementation

factory ETHTransactionBuilder(
    {required ETHAddress from,
    required ETHAddress to,
    required BigInt value,
    required BigInt chainId,
    String? memo,
    ETHTransactionType? transactionType}) {
  final List<int> data = memo == null ? [] : StringUtils.toBytes(memo);
  return ETHTransactionBuilder._(
      to, from, value, data, transactionType, null, null, chainId);
}