code: def GET_prices_name( self, path_info, name ):
          
          if not check_name(name):
              return self._reply_json({'error': 'Invalid name'}, status_code=400)
  
          blockstackd_url = get_blockstackd_url()
          price_info = blockstackd_client.get_name_cost(name, hostport=blockstackd_url)
          if json_is_error(price_info):
              # error
              status_code = price_info.get('http_status', 502)
              return self._reply_json({'error': price_info['error']}, status_code=status_code)
  
          ret = {
              'amount': str(price_info['amount']),        # helps JS clients that can't parse big ints
              'units': price_info['units'],
          }
          if ret['units'] == 'BTC':
              # v1 compat
              ret['satoshis'] = price_info['amount']
  
          return self._reply_json({'name_price': ret})
docs: Get the price for a name in a namespace
          Reply the price as {'name_price': {'amount': str(...), 'units': str(...)}} (also, 'satoshis': ... if the name is in BT)
          Reply 404 if the namespace doesn't exist
          Reply 502 if we can't reach the server for whatever reason