callViewFuntion method

Future<Map> callViewFuntion(
  1. String methodName,
  2. String methodArgs
)

Calls contract view functions

Implementation

Future<Map<dynamic, dynamic>> callViewFuntion(
    String methodName, String methodArgs) async {
  List<int> bytes = utf8.encode(methodArgs);
  String base64MethodArgs = base64.encode(bytes);
  return await callerAccount.provider
      .callViewFunction(contractId, methodName, base64MethodArgs);
}