EthereumRequestFunctionCall constructor

EthereumRequestFunctionCall({
  1. required String contractAddress,
  2. required AbiFunctionFragment function,
  3. List? params,
  4. String? from,
  5. BlockTagOrNumber? blockNumber = BlockTagOrNumber.latest,
})

Implementation

EthereumRequestFunctionCall(
    {required this.contractAddress,
    required this.function,
    List<dynamic>? params,
    this.from,
    super.blockNumber = BlockTagOrNumber.latest})
    : raw =
          BytesUtils.toHexString(function.encode(params ?? []), prefix: "0x");