Transaction.callContract constructor
Transaction.callContract({
- required DeployedContract contract,
- required ContractFunction function,
- required List parameters,
- XCBAddress? from,
- int? maxEnergy,
- XCBAmount? energyPrice,
- XCBAmount? value,
- int? nonce,
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.maxEnergy,
this.energyPrice,
this.value,
this.nonce,
}) : to = contract.address,
data = function.encodeCall(parameters);