Transaction.callContract constructor
Transaction.callContract({
- required DeployedContract contract,
- required ContractFunction function,
- required List parameters,
- EthereumAddress? from,
- BigInt? gas,
- BigInt? maxGas,
- BigInt? gasPrice,
- EtherAmount? value,
- int? nonce,
- BigInt? maxFeePerGas,
- BigInt? maxPriorityFeePerGas,
Constructs a transaction that can be used to call a contract function.
Implementation
Transaction.callContract({
required DeployedContract contract,
required ContractFunction function,
required List<dynamic> parameters,
this.from,
this.gas,
this.maxGas,
this.gasPrice,
this.value,
this.nonce,
this.maxFeePerGas,
this.maxPriorityFeePerGas,
}) : to = contract.address,
data = function.encodeCall(parameters);