clause method

RClause clause(
  1. Contract contract,
  2. String funcName,
  3. List funcParams,
  4. String to, {
  5. BigInt? value,
})

There are two types of calls:

  1. Function call on a smart contract Build a clause according to the function name and params. raise Exception when function is not found by name.
  2. Pure transfer of VET Set the contract, func_name, and funcParams to None Parameters

contract : Contract On which contract the function is sitting. func_name : str Name of the function. funcParams : List Function params supplied by users. to : str Address of the contract. value : int, optional VET sent with the clause in Wei, by default 0

Implementation

RClause clause(Contract contract, String funcName, List funcParams, String to,
    {BigInt? value}) {
  value ??= BigInt.zero;
  return RClause(to,
      contract: contract,
      functionName: funcName,
      functionParameters: funcParams,
      value: value);
}