getIdentity method

  1. @override
Future<BlockchainIdentity> getIdentity({
  1. required String address,
})
override

Gets the name and avatar of a provided address on the given chain

Implementation

@override
Future<BlockchainIdentity> getIdentity({required String address}) async {
  final url = _buildUrl('identity/$address');
  final response = await http.get(url, headers: _requiredHeaders);
  _core.logger.i('[$runtimeType] getIdentity $url => ${response.body}');

  return _handleResponse(
    response: response,
    parser: (body) => BlockchainIdentity.fromJson(jsonDecode(body)),
    errorContext: 'getIdentity',
  );
}