symbol method

Future<String> symbol(
  1. String contractAdd
)

Gets the Symbol of the specified address.

Implementation

Future<String> symbol(String contractAdd) async {
  final EthereumAddress contractAddr = EthereumAddress.fromHex(contractAdd);
  final contract = DeployedContract(
      ContractAbi.fromJson(abiString, 'XRC20'), contractAddr);

  final tokenSymbol = contract.function('symbol');
  final symbol = await client
      .call(contract: contract, function: tokenSymbol, params: []);
  return '$symbol';
}