TransactionRequest constructor

TransactionRequest({
  1. String? to,
  2. String? from,
  3. BigInt? value,
  4. BigInt? gasLimit,
  5. BigInt? gasPrice,
  6. int? nounce,
  7. String? data,
  8. BigInt? maxFeePerGas,
  9. BigInt? maxPriorityFeePerGas,
  10. AccessList? accessList,
})

Implementation

factory TransactionRequest({
  String? to,
  String? from,
  BigInt? value,
  BigInt? gasLimit,
  BigInt? gasPrice,
  int? nounce,
  String? data,
  BigInt? maxFeePerGas,
  BigInt? maxPriorityFeePerGas,
  AccessList? accessList,
}) {
  return TransactionRequest._(
    _TransactionRequestImpl(
      to: to,
      from: from,
      data: data,
      value: value?.toBigNumber,
      nonce: nounce,
      gasLimit: gasLimit?.toBigNumber,
      gasPrice: gasPrice?.toBigNumber,
      accessList: accessList?.impl,
      maxFeePerGas: maxFeePerGas?.toBigNumber,
      maxPriorityFeePerGas: maxPriorityFeePerGas?.toBigNumber,
    ),
  );
}