ETHTransaction constructor
ETHTransaction({
- required int nonce,
- required BigInt gasLimit,
- required List<
int> data, - required BigInt value,
- required BigInt chainId,
- ETHAddress? from,
- ETHAddress? to,
- ETHTransactionType? type,
- AccessList? accessList,
- BigInt? gasPrice,
- BigInt? maxPriorityFeePerGas,
- BigInt? maxFeePerGas,
- ETHSignature? signature,
Factory constructor for creating an ETHTransaction.
Implementation
factory ETHTransaction(
{required int nonce,
required BigInt gasLimit,
required List<int> data,
required BigInt value,
required BigInt chainId,
ETHAddress? from,
ETHAddress? to,
ETHTransactionType? type,
AccessList? accessList,
BigInt? gasPrice,
BigInt? maxPriorityFeePerGas,
BigInt? maxFeePerGas,
ETHSignature? signature}) =>
ETHTransaction._(
type: type,
to: to,
from: from,
nonce: nonce,
gasLimit: gasLimit,
gasPrice: gasPrice,
maxPriorityFeePerGas: maxPriorityFeePerGas,
maxFeePerGas: maxFeePerGas,
data: data,
value: value,
chainId: chainId,
accessList: accessList,
signature: signature);