code: def get_account_history_page(address, page, hostport=None, proxy=None):
      
      assert proxy or hostport, 'Need proxy or hostport'
      if proxy is None:
          proxy = connect_hostport(hostport)
  
      page_schema = {
          'type': 'object',
          'properties': {
              'history': {
                  'type': 'array',
                  'items': {
                      'type': 'object',
                      'properties': ACCOUNT_SCHEMA_PROPERTIES,
                      'required': ACCOUNT_SCHEMA_REQUIRED,
                  },
              },
          },
          'required': [
              'history'
          ],
      }
  
      schema = json_response_schema(page_schema)
  
      try:
          resp = proxy.get_account_history(address, page)
          resp = json_validate(schema, resp)
          if json_is_error(resp):
              return resp
  
      except ValidationError as e:
          if BLOCKSTACK_DEBUG:
              log.exception(e)
  
          resp = {'error': 'Server response did not match expected schema.  You are likely communicating with an out-of-date Blockstack node.', 'http_status': 502}
          return resp
  
      except socket.timeout:
          log.error("Connection timed out")
          resp = {'error': 'Connection to remote host timed out.', 'http_status': 503}
          return resp
  
      except socket.error as se:
          log.error("Connection error {}".format(se.errno))
          resp = {'error': 'Connection to remote host failed.', 'http_status': 502}
          return resp
  
      except Exception as ee:
          if BLOCKSTACK_DEBUG:
              log.exception(ee)
  
          log.error("Caught exception while connecting to Blockstack node: {}".format(ee))
          resp = {'error': 'Failed to contact Blockstack node.  Try again with `--debug`.', 'http_status': 500}
          return resp
  
      return resp['history']
docs: Get a page of the account's history
      Returns the list of account operations on success
      Returns {'error': ...} on error