name method
name gets the name of the token
Implementation
Future<String> name() async {
final params = Args();
const targetFunction = "name";
final functionParameters = params.serialise();
const maximumGas = GasLimit.MAX_GAS_CALL;
final smartContracAddress = getTokenAddress(token, grpc.isBuildnet);
final response = await grpc.scReadOnlyCall(
maximumGas: maximumGas.value / 1e9,
smartContracAddress: smartContracAddress,
functionName: targetFunction,
functionParameters: functionParameters,
);
final responseArg = Args(initialData: response);
final name = responseArg.nextString();
return name;
}