ETHTransaction constructor

ETHTransaction({
  1. required int nonce,
  2. required BigInt gasLimit,
  3. required List<int> data,
  4. required BigInt value,
  5. required BigInt chainId,
  6. ETHAddress? from,
  7. ETHAddress? to,
  8. ETHTransactionType? type,
  9. AccessList? accessList,
  10. BigInt? gasPrice,
  11. BigInt? maxPriorityFeePerGas,
  12. BigInt? maxFeePerGas,
  13. 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);