docs: def req(self, method, params=()):
          """send request to ppcoind"""
  
          response = self.session.post(
              self.url,
              data=json.dumps({"method": method, "params": params, "jsonrpc": "1.1"}),
          ).json()
  
          if response["error"] is not None:
              return response["error"]
          else:
              return response["result"]