balanceOf method

Future<BigInt> balanceOf({
  1. required String address,
})

Implementation

Future<BigInt> balanceOf({required String address}) async {
  final function = abi.functions[5];
  assert(function.functionSelectorHex == "70a08231");
  final response = await readSafe(
    function: function.addValues(values: []),
  );
  return response.outputs.first.castValue<BigInt>();
}