From 02210fb8d18317ea086c87111598369742f2f8cc Mon Sep 17 00:00:00 2001 From: Mihail Lavric Date: Wed, 10 Sep 2025 17:44:47 +0200 Subject: [PATCH 1/3] add id param to ws send_tx --- examples/ws_send_tx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ws_send_tx.py b/examples/ws_send_tx.py index 70871db..a0fad85 100644 --- a/examples/ws_send_tx.py +++ b/examples/ws_send_tx.py @@ -11,7 +11,7 @@ "0xed636277f3753b6c0275f7a28c2678a7f3a95655e09deaebec15179b50c5da7f903152e50f594f7b" ) ACCOUNT_INDEX = 65 -API_KEY_INDEX = 1 +API_KEY_INDEX = 3 async def ws_flow(tx_type, tx_info): @@ -24,6 +24,7 @@ async def ws_flow(tx_type, tx_info): { "type": "jsonapi/sendtx", "data": { + "id": f"my_random_id_{12345678}", "tx_type": tx_type, "tx_info": json.loads(tx_info), }, From 2c2071163aa35c6b6cc4d03ab32152ef606653f7 Mon Sep 17 00:00:00 2001 From: Mihail Lavric Date: Wed, 10 Sep 2025 17:52:15 +0200 Subject: [PATCH 2/3] add id param to ws send_tx_batch --- examples/ws_send_batch_tx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/ws_send_batch_tx.py b/examples/ws_send_batch_tx.py index 99fca8e..375d8fb 100644 --- a/examples/ws_send_batch_tx.py +++ b/examples/ws_send_batch_tx.py @@ -24,6 +24,7 @@ async def ws_flow(tx_types, tx_infos): { "type": "jsonapi/sendtxbatch", "data": { + "id": f"my_random_batch_id_{12345678}", # optional, helps id the response "tx_types": json.dumps(tx_types), "tx_infos": json.dumps(tx_infos), }, From 0edb6949c9cbea4dab4c2f349270adc1011f4d11 Mon Sep 17 00:00:00 2001 From: Mihail Lavric Date: Wed, 10 Sep 2025 17:53:04 +0200 Subject: [PATCH 3/3] add small comment --- examples/ws_send_tx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ws_send_tx.py b/examples/ws_send_tx.py index a0fad85..c120b83 100644 --- a/examples/ws_send_tx.py +++ b/examples/ws_send_tx.py @@ -24,7 +24,7 @@ async def ws_flow(tx_type, tx_info): { "type": "jsonapi/sendtx", "data": { - "id": f"my_random_id_{12345678}", + "id": f"my_random_id_{12345678}", # optional, helps id the response "tx_type": tx_type, "tx_info": json.loads(tx_info), },