properties method

Future<Map<String, dynamic>> properties()

Returns the chain properties as a JSON object.

Properties typically include:

  • ss58Format: The SS58 address format prefix
  • tokenDecimals: Number of decimals for the native token
  • tokenSymbol: Symbol of the native token

Implementation

Future<Map<String, dynamic>> properties() async {
  final response = await _provider.send('chainSpec_v1_properties', const []);

  if (response.error != null) {
    throw Exception(response.error.toString());
  }

  return Map<String, dynamic>.from(response.result as Map);
}