dragonchain/lib/dto/bnb.py
def _fetch_account(self):
        """Fetch the account metadata for an address
        Returns:
            response containing account metadata
        """
        _log.info(f"[BINANCE] Fetching address metadata for {self.address}")
        path = f"account/{self.address}"  # params expected inside path string
        try:
            response = self._call_node_api(path)
            if response.status_code == 404:
                _log.warning("[BINANCE] 404 response from Binance node:")
                _log.warning("[BINANCE] Address not found -- likely has zero funds.")
                raise exceptions.BadRequest("[BINANCE] Error fetching metadata from 'account' endpoint.")
            return response.json()
        except exceptions.InterchainConnectionError:
            _log.warning("[BINANCE] Non 200 response from Binance node.")
            _log.warning("[BINANCE] May have been a 500 Bad Request or a 404 Not Found.")
            raise exceptions.InterchainConnectionError("[BINANCE] Error fetching metadata from 'account' endpoint.")
Fetch the account metadata for an address
        Returns:
            response containing account metadata
        
Fetch the account metadata for an address
Fetch the account metadata for an address
def _fetch_account(self):
        _log.info(f"[BINANCE] Fetching address metadata for {self.address}")
        path = f"account/{self.address}"  
        try:
            response = self._call_node_api(path)
            if response.status_code == 404:
                _log.warning("[BINANCE] 404 response from Binance node:")
                _log.warning("[BINANCE] Address not found -- likely has zero funds.")
                raise exceptions.BadRequest("[BINANCE] Error fetching metadata from 'account' endpoint.")
            return response.json()
        except exceptions.InterchainConnectionError:
            _log.warning("[BINANCE] Non 200 response from Binance node.")
            _log.warning("[BINANCE] May have been a 500 Bad Request or a 404 Not Found.")
            raise exceptions.InterchainConnectionError("[BINANCE] Error fetching metadata from 'account' endpoint.")
def _fetch_account ( self ) : _log . info ( f"[BINANCE] Fetching address metadata for {self.address}" ) path = f"account/{self.address}" try : response = self . _call_node_api ( path ) if response . status_code == 404 : _log . warning ( "[BINANCE] 404 response from Binance node:" ) _log . warning ( "[BINANCE] Address not found -- likely has zero funds." ) raise exceptions . BadRequest ( "[BINANCE] Error fetching metadata from 'account' endpoint." ) return response . json ( ) except exceptions . InterchainConnectionError : _log . warning ( "[BINANCE] Non 200 response from Binance node." ) _log . warning ( "[BINANCE] May have been a 500 Bad Request or a 404 Not Found." ) raise exceptions . InterchainConnectionError ( "[BINANCE] Error fetching metadata from 'account' endpoint." )
Fetch the account metadata for an address
Fetch the account metadata for an address
"""Fetch the account metadata for an address
        Returns:
            response containing account metadata
        """ # params expected inside path string
response containing account metadata
response containing account metadata
self