From 6cb97e6e2e1d83d234755b2b984320db5a482d23 Mon Sep 17 00:00:00 2001 From: brunneis Date: Mon, 21 Oct 2024 20:36:52 +0000 Subject: [PATCH] Add id parameter to JSON-RPC payload --- bit/network/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bit/network/services.py b/bit/network/services.py index 9578c63..67c3789 100644 --- a/bit/network/services.py +++ b/bit/network/services.py @@ -91,7 +91,7 @@ def __getattr__(self, rpc_method): return RPCMethod(new_method, self._host) def __call__(self, *args): - payload = json.dumps({"method": self._rpc_method, "params": list(args), "jsonrpc": "2.0"}) + payload = json.dumps({"method": self._rpc_method, "params": list(args), "jsonrpc": "2.0", "id": None}) try: response = self._host._session.post(self._host._url, headers=self._host._headers, data=payload) except requests.exceptions.ConnectionError: