+ /**
+ * Encode and send a query to the RPC server.
+ *
+ * @note I'm not sure on the response type except that it may be either an object or array.
+ *
+ * @param string $method
+ * @param array|null $params
+ *
+ * @return object|array|bool
+ * @throws Exception
+ */
+ public function query(string $method, array|null $params = null): object|array|bool