code: def get_address_nonce(self, address, api_token):
          
          broadcast_url = self.base_url + '?module=proxy&action=eth_getTransactionCount'
          broadcast_url += '&address=%s' % address
          broadcast_url += '&tag=latest'
          if api_token:
              '&apikey=%s' % api_token
          response = requests.get(broadcast_url, )
          if int(response.status_code) == 200:
              # the int(res, 0) transforms the hex nonce to int
              nonce = int(response.json().get('result', None), 0)
              logging.info('Nonce check went correct: %s', response.json())
              return nonce
          else:
              logging.info('response error checking nonce')
          raise BroadcastError('Error checking the nonce through the Etherscan API. Error msg: %s', response.text)
docs: Looks up the address nonce of this address
          Neccesary for the transaction creation