Transaction constructor
Transaction({
- EthereumAddress? from,
- EthereumAddress? to,
- dynamic maxGas,
- EtherAmount? gasPrice,
- EtherAmount? value,
- Uint8List? data,
- int? nonce,
- EtherAmount? maxFeePerGas,
- EtherAmount? maxPriorityFeePerGas,
Implementation
Transaction({
this.from,
this.to,
dynamic maxGas,
this.gasPrice,
this.value,
this.data,
this.nonce,
this.maxFeePerGas,
this.maxPriorityFeePerGas,
}) : maxGas = maxGas == null
? null
: (maxGas is int ? BigInt.from(maxGas) : maxGas as BigInt);