symbol method
symbol gets the name of the token
Implementation
Future<String> symbol() async {
final params = Args();
const targetFunction = "symbol";
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;
}