call method

Future<String> call(
  1. TransactionRequest transaction, {
  2. BlockTag? blockTag,
})

Implementation

Future<String> call(
  TransactionRequest transaction, {
  BlockTag? blockTag,
}) async {
  if (provider == null) {
    throw 'missing provider';
  }
  // TODO: check transaction valid.
  return await provider!.call(transaction, blockTag: blockTag);
}