call method
Implementation
@override
Future<String> call(
TransactionRequest transaction, {
BlockTag? blockTag,
}) async {
// TODO: check transaction valid.
final bt = blockTag?.toParam() ?? const BlockTag.latest().toParam();
return await _makeRPCCall<String>('eth_call', [
{
'to': transaction.to,
'data': transaction.data,
if (transaction.from != null) 'from': transaction.from,
},
bt,
]);
}