ETHTransactionBuilder constructor
ETHTransactionBuilder({
- required ETHAddress from,
- required ETHAddress to,
- required BigInt value,
- required BigInt chainId,
- String? memo,
- 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);
}